I am interested in platform-independent programming in Python, in particular file and directory manipulations.
os.path module implements functions on pathnames. This module uses the following modules in different systems i.e. posixpath, ntpath, macpath, os2emxpath.
Thursday 28 May 2009
Wednesday 6 May 2009
Python Programmatic Compilation
To ensure all your pyc's are up-to-date:
import compileall
compileall.compile_dir( 'code/'. force=True)
compileall is the module to byte-compile Python libraries. Useful in installers and for maintaining the freshnees of the "build" of your Python code.
import compileall
compileall.compile_dir( 'code/'. force=True)
compileall is the module to byte-compile Python libraries. Useful in installers and for maintaining the freshnees of the "build" of your Python code.
Saturday 2 May 2009
Programming the Doomsday Rule
The Doomsday algorithm is designed for calculating the day of the week given a date. Here are the details.
Subscribe to:
Posts (Atom)