India PyCon 2009
Quick wallpaper changer
Load testing with Grinder
Adding namespace to XML
Opera RSS to OPML
« Joy of Python: Classes and Dictionaries
» SQLite and Python
Python is a great language that was designed with documentation in mind from the ground up. Which means, you can always get documentation from Python's interpreter.
Here’s how it proves helpful.
PythonWin 2.2.1 (#34, Apr 15 2002, 09:51:39)...
>>> import string
>>> dir(string)
['_StringType', '__builtins__', '__doc__',...]
>>> help(string)
Help on module string:
NAME
string - A collection of string operations (most are no longer used in Python 1.6).
FILE
d:\python22\lib\string.py
DESCRIPTION
Warning: most of the code you see here isn’t normally used nowadays. With
Python 1.6, many of these functions are implemented as methods on the
standard string object.
...
>>> from pprint import pprint
>>> pprint(dir(string))
['_StringType',
'__builtins__',
'__doc__',
'__file__',
...
Very easy, is it not?
Easy to forget those functions exist. And yes, easy. Thanks lots.