Revision 8 as of 2008-11-15 14:00:10

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.