ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Processing Mailbox Files with mailbox.py
Subject:   python 2.5's mailbox.py incompatible under 2.3
Date:   2007-07-10 11:50:06
From:   jemptymethod
I replaced Python 2.3's mailbox.py with the version for Python 2.5, but the following error:


>>> import mailbox
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib64/python2.3/mailbox.py", line 928
return iter(sorted(int(entry) for entry in os.listdir(self._path)
^
SyntaxError: invalid syntax




1 to 1 of 1
  1. python 2.5's mailbox.py incompatible under 2.3
    2007-07-12 03:45:39  A. M. Kuchling | [View]

1 to 1 of 1