Re: Does python support working with password protected zip files?

2008-03-06 Thread Greg Armer
# Unzip password protected zipfile to _temp os.chdir('_temp') os.popen("unzip -P%s ../%s" % (self.password, self.zipfile), "r") return True While this is not ideal, i could not find any other alternatives. Hope that helps. -- Greg Armer Entropy has us outnumbered. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help needed with translating perl to python

2007-06-26 Thread Greg Armer
, 1, 1) ; >> return chr($firstval) . chr($lastval) ; >> >> } > >2. What does shift do above? 'shift' accesses the first argument passed to the function, in this case the value of length($msg) >3. is the '.' operator just + in python? In principle yes. -- Greg Armer [EMAIL PROTECTED] http://www.codelounge.org If it would be cheaper to repair the old one, the company will insist on the latest model. -- http://mail.python.org/mailman/listinfo/python-list