Differences between revisions 4 and 5
Revision 4 as of 2002-08-11 21:07:12
Size: 581
Editor: pD9EB01F8
Comment:
Revision 5 as of 2002-08-11 21:07:26
Size: 582
Editor: pD9EB01F8
Comment:
Deletions are marked like this. Additions are marked like this.
Line 30: Line 30:
  * SoYouWann   * SoYouWanna

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
  • c.l.p
  • parnassus
  • official docs
  • SoYouWanna

  • guides
  • cookbooks


CategoryHomepage

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

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