Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imaplib module broken by str to unicode conversion #47978

Closed
hdima mannequin opened this issue Aug 29, 2008 · 3 comments
Closed

imaplib module broken by str to unicode conversion #47978

hdima mannequin opened this issue Aug 29, 2008 · 3 comments
Labels
stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@hdima
Copy link
Mannequin

hdima mannequin commented Aug 29, 2008

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']

@hdima
Copy link
Mannequin Author

hdima mannequin commented Aug 29, 2008

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

@hdima hdima mannequin added stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump labels Aug 29, 2008
@draghuram
Copy link
Mannequin

draghuram mannequin commented Aug 29, 2008

This seems to be duplicate of bpo-1210.

@draghuram draghuram mannequin closed this as completed Aug 29, 2008
@hdima
Copy link
Mannequin Author

hdima mannequin commented Aug 29, 2008

Ah, yes.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

0 participants