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 () # deprecated

To do

Information Search Tree


CategoryHomepage

DanielDittmar (last edited 2009-12-03 22:09:38 by vpn-8061f516)

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