Python Tidbits

I spent the majority of my waking hours the past couple of days writing a Python script (had a chunk of XML-RPC code already written in Python) that processes zip files from Blackboard and puts them onto Confluence. Some notes:

  • Python’s time module wasn’t installed by Debian until apt-get’ing mxDateTime
  • libclamav’s file scan will catch all kinds of stuff that the buffer scan will miss
  • Python’s string slicing is sweet (str[::-1] for reversing)
  • sorted() isn’t in Python 2.3, so sorting a hash has to be done against the keys as a list
  • mechanize for Python really isn’t there yet
  • It’s too easy to take CPAN for granted.