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

2to3 doesn't handle print(whatever); print nor string.* functions #47250

Closed
mark-summerfield mannequin opened this issue May 29, 2008 · 2 comments
Closed

2to3 doesn't handle print(whatever); print nor string.* functions #47250

mark-summerfield mannequin opened this issue May 29, 2008 · 2 comments
Labels
topic-2to3 type-bug An unexpected behavior, bug, or error

Comments

@mark-summerfield
Copy link
Mannequin

mark-summerfield mannequin commented May 29, 2008

BPO 3000
Nosy @mark-summerfield, @benjaminp

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-09-12.23:50:00.790>
created_at = <Date 2008-05-29.14:21:30.586>
labels = ['type-bug', 'expert-2to3']
title = "2to3 doesn't handle print(whatever); print nor string.* functions"
updated_at = <Date 2008-09-12.23:50:00.789>
user = 'https://github.com/mark-summerfield'

bugs.python.org fields:

activity = <Date 2008-09-12.23:50:00.789>
actor = 'benjamin.peterson'
assignee = 'collinwinter'
closed = True
closed_date = <Date 2008-09-12.23:50:00.790>
closer = 'benjamin.peterson'
components = ['2to3 (2.x to 3.x conversion tool)']
creation = <Date 2008-05-29.14:21:30.586>
creator = 'mark'
dependencies = []
files = []
hgrepos = []
issue_num = 3000
keywords = []
message_count = 2.0
messages = ['67493', '73153']
nosy_count = 3.0
nosy_names = ['collinwinter', 'mark', 'benjamin.peterson']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue3000'
versions = ['Python 3.0']

@mark-summerfield
Copy link
Mannequin Author

mark-summerfield mannequin commented May 29, 2008

Py30a5

2to3 currently does not cope correctly with this:

print whatever; print

which it converts to:

print(whatever); print

This is a subtle error since "print" on its own is valid.

Nor does it replace the deprecated string functions,
string.capitalize(), string.count(), string.join(), string.lower(),
string.replace(), string.split(), and string.strip().

@mark-summerfield mark-summerfield mannequin added the topic-2to3 label May 29, 2008
@mark-summerfield mark-summerfield mannequin added the type-bug An unexpected behavior, bug, or error label Jul 1, 2008
@benjaminp
Copy link
Contributor

The print problem was fixed in r66418. The string problem is a duplicate
of bpo-2899.

@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
topic-2to3 type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant