Message56154
imaplib does not run under Python 3.
The following two-line python program, named testimap.py,
works when run from a Windows XP system shell prompt
using Python 2.5.1, but fails with Python 3.0. It
appears that the logic does not follow the distinction
between characters and bytes in Python 3.
import imaplib
mail=imaplib.IMAP4("mail.rtmq.infosathse.com")
e:\python25\python testimap.py
e:\python30\python testimap.py 2>f:syserr
The last line produced the trace:
Traceback (most recent call last):
File "testimap.py", line 10, in <module>
mail=imaplib.IMAP4("mail.rtmq.infosathse.com")
File "e:\python30\lib\imaplib.py", line 184, in __init__
self.welcome = self._get_response()
File "e:\python30\lib\imaplib.py", line 962, in _get_response
self._append_untagged(typ, dat)
File "e:\python30\lib\imaplib.py", line 800, in _append_untagged
if typ in ur:
TypeError: unhashable type: 'bytes' |
|
| Date |
User |
Action |
Args |
| 2007-09-27 05:49:35 | rtmq | set | spambayes_score: 0.0352451 -> 0.0352451 recipients:
+ rtmq |
| 2007-09-27 05:49:34 | rtmq | set | spambayes_score: 0.0352451 -> 0.0352451 messageid: <1190872174.76.0.553436258502.issue1210@psf.upfronthosting.co.za> |
| 2007-09-27 05:49:34 | rtmq | link | issue1210 messages |
| 2007-09-27 05:49:33 | rtmq | create | |
|