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

textwrap.wrap infinite loop #38356

Closed
jpetrone mannequin opened this issue Apr 23, 2003 · 3 comments
Closed

textwrap.wrap infinite loop #38356

jpetrone mannequin opened this issue Apr 23, 2003 · 3 comments
Labels
stdlib Python modules in the Lib dir

Comments

@jpetrone
Copy link
Mannequin

jpetrone mannequin commented Apr 23, 2003

BPO 726446
Nosy @rhettinger

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 2003-05-07.00:56:10.000>
created_at = <Date 2003-04-23.18:59:16.000>
labels = ['library']
title = 'textwrap.wrap infinite loop'
updated_at = <Date 2003-05-07.00:56:10.000>
user = 'https://bugs.python.org/jpetrone'

bugs.python.org fields:

activity = <Date 2003-05-07.00:56:10.000>
actor = 'gward'
assignee = 'gward'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2003-04-23.18:59:16.000>
creator = 'jpetrone'
dependencies = []
files = []
hgrepos = []
issue_num = 726446
keywords = []
message_count = 3.0
messages = ['15579', '15580', '15581']
nosy_count = 3.0
nosy_names = ['gward', 'rhettinger', 'jpetrone']
pr_nums = []
priority = 'high'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue726446'
versions = ['Python 2.3']

@jpetrone
Copy link
Mannequin Author

jpetrone mannequin commented Apr 23, 2003

textwrap.wrap appears to go into an infinite loop
when called with a width <= 0. I don't know what the
correct
behavior here should be, but I'm guessing this isn't it.

Maybe it should be throwing an exception?

@jpetrone jpetrone mannequin closed this as completed Apr 23, 2003
@jpetrone jpetrone mannequin assigned gward Apr 23, 2003
@jpetrone jpetrone mannequin added the stdlib Python modules in the Lib dir label Apr 23, 2003
@jpetrone jpetrone mannequin closed this as completed Apr 23, 2003
@jpetrone jpetrone mannequin assigned gward Apr 23, 2003
@jpetrone jpetrone mannequin added the stdlib Python modules in the Lib dir label Apr 23, 2003
@rhettinger
Copy link
Contributor

Logged In: YES
user_id=80475

Greg, do you have time for this one?

@gward
Copy link
Mannequin

gward mannequin commented May 7, 2003

Logged In: YES
user_id=14422

OK, that's pretty easy to check. Test added in rev 1.20 of
Lib/test/test_textwrap.py, fix in rev 1.25 of Lib/textwrap.py .

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 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
Projects
None yet
Development

No branches or pull requests

1 participant