Author rtmq
Recipients rtmq
Date 2007-09-27.05:49:33
SpamBayes Score 0.0352451
Marked as misclassified No
Message-id <>
imaplib does not run under Python 3.

The following two-line python program, named,
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

e:\python30\python 2>f:syserr

The last line produced the trace:

Traceback (most recent call last):
  File "", line 10, in <module>
  File "e:\python30\lib\", line 184, in __init__
    self.welcome = self._get_response()
  File "e:\python30\lib\", line 962, in _get_response
    self._append_untagged(typ, dat)
  File "e:\python30\lib\", line 800, in _append_untagged
    if typ in ur:
TypeError: unhashable type: 'bytes'
Date User Action Args
2007-09-27 05:49:35rtmqsetspambayes_score: 0.0352451 -> 0.0352451
recipients: + rtmq
2007-09-27 05:49:34rtmqsetspambayes_score: 0.0352451 -> 0.0352451
messageid: <>
2007-09-27 05:49:34rtmqlinkissue1210 messages
2007-09-27 05:49:33rtmqcreate