Skip to content

imaplib module broken by str to unicode conversion #47978

Closed

Description

@hdima
mannequin
BPO 3728

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2008-08-29.14:14:11.585>
created_at = <Date 2008-08-29.14:05:33.144>
labels = ['library', 'type-crash']
title = 'imaplib module broken by str to unicode conversion'
updated_at = <Date 2008-08-29.14:17:42.680>
user = 'https://bugs.python.org/hdima'

bugs.python.org fields:

activity = <Date 2008-08-29.14:17:42.680>
actor = 'hdima'
assignee = 'none'
closed = True
closed_date = <Date 2008-08-29.14:14:11.585>
closer = 'draghuram'
components = ['Library (Lib)']
creation = <Date 2008-08-29.14:05:33.144>
creator = 'hdima'
dependencies = []
files = []
hgrepos = []
issue_num = 3728
keywords = []
message_count = 3.0
messages = ['72137', '72138', '72139']
nosy_count = 2.0
nosy_names = ['hdima', 'draghuram']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = None
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue3728'
versions = ['Python 3.0']

Activity

  1. hdima commented on Aug 29, 2008

    hdimamannequin
    MannequinAuthor

    Example:

    >>> from imaplib import IMAP4
    >>> m = IMAP4("localhost")
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/py3k/Lib/imaplib.py", line 185, in __init__
        self.welcome = self._get_response()
      File "/py3k/Lib/imaplib.py", line 912, in _get_response
        if self._match(self.tagre, resp):
      File "/py3k/Lib/imaplib.py", line 1021, in _match
        self.mo = cre.match(s)
    TypeError: can't use a string pattern on a bytes-like object
    >>> m = IMAP4(b"localhost")
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/py3k/Lib/imaplib.py", line 185, in __init__
        self.welcome = self._get_response()
      File "/py3k/Lib/imaplib.py", line 912, in _get_response
        if self._match(self.tagre, resp):
      File "/py3k/Lib/imaplib.py", line 1021, in _match
        self.mo = cre.match(s)
    TypeError: can't use a string pattern on a bytes-like object
  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    type-crashA hard crash of the interpreter, possibly with a core dump
    on Aug 29, 2008
  3. draghuram commented on Aug 29, 2008

    draghurammannequin
    Mannequin

    This seems to be duplicate of bpo-1210.

  4. hdima commented on Aug 29, 2008

    hdimamannequin
    MannequinAuthor

    Ah, yes.

  5. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions