Revision 7 as of 2005-07-12 03:46:00

Clear message

Editor of WebProgramming.

[mailto:daniel@dittmar.net]

Python cheat sheet

pickle:
  cPickle.dump (object, open (fname, 'wb'), 1)
  object = load (open (fname, 'wb'))

date format:
  time.strftime ("%Y-%m-%d %H:%M:%S", time.localtime (time.time ()))

cStringIO:
  buffer.getvalue ()

tempfile:
  import tempfile
  var = tempfile.mktemp ()

To do

Information Search Tree


CategoryHomepage

Unable to edit the page? See the FrontPage for instructions.