1. Home
  2. Computing & Technology
  3. Python

ScripTips

Some people do not need to create complex software platforms. Everyone, at some point, needs to do some batch jobs or other repetetive task. These tutorials talk about doing simple tasks in Python.

Backup Your Gmail With poplib

Getting your Google mail through POP3 is easy with Python's poplib library. Here is how to use getpass and poplib to script your Gmail retrieval and to make a local backup of your mailbox.

Working On Files With Python

When computers are not reading code, they are processing data from or to files. These tips show you how to do some common tasks related to file input and output.

Python 2.5's 'with' Statement

One of the new features that was released with Python 2.5 last month is the 'with' statement. For those of you who are used to Python's try...except statement, you may find this to be the biggest boon of upgrading.

Searching Data Faster

One of the most powerful methods of searching data is the use of a binary search tree. By halving the number of steps to an answer at each step of the search, the time gained increases with the number of items to be searched. Put concretely, a list of 1000 items can be searched in 1/10 the time of a linear search by using data structured as a binary tree.

Classes and Objects

One of the most important elements of Python programming is the use of classes . It behooves you to know well how to form classes and how to initiate objects in Python. In addition to my own discussion on the subject , this page forms a gentle introduction to the topic.
Explore Python
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Python
  4. ScripTips

©2009 About.com, a part of The New York Times Company.

All rights reserved.