This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: issue6964 reminder
Type: Stage:
Components: 2to3 (2.x to 3.x conversion tool) Versions: Python 3.1, Python 3.2, Python 3.3
process
Status: closed Resolution: wont fix
Dependencies: Superseder: import new fails
View: 6964
Assigned To: Nosy List: techtonik
Priority: normal Keywords:

Created on 2012-07-22 08:48 by techtonik, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (13)
msg166111 - (view) Author: anatoly techtonik (techtonik) Date: 2012-07-22 08:48
issue6964 is closed, so this is a reminder that discussion over the actual issue is not finished yet.
msg166112 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2012-07-22 09:15
What is the issue that you are reporting here? 

If you think there is an issue with Python, please state explicitly what the issue is. I think issue 6964 was invalid to begin with: it complained that the new module is no longer, but deletion of the new module was intentional.
msg166113 - (view) Author: anatoly techtonik (techtonik) Date: 2012-07-22 09:25
You're mistaken. issue6964 is not about deleting `new` module in Python 3, it is about the 2to3 tool skipping this fact without warning.
msg166121 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2012-07-22 10:59
It was answered in the previous message by Georg, on the related issue:

http://bugs.python.org/issue6964#msg93032
> Bottom line: move over to the types module *before* running 2to3.

(the thread is very short, and clearly states that there's no bug)
msg166122 - (view) Author: anatoly techtonik (techtonik) Date: 2012-07-22 11:24
From the user point of view that's the same as saying for optparse:

Bottom line: move over to the argparse module *before* running 2to3.
msg166123 - (view) Author: anatoly techtonik (techtonik) Date: 2012-07-22 11:26
Bottom line: The fact that 2to3 isn't capable to fix "import new" automatically doesn't mean it should not warn that this code should be fixed manually.
msg166127 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2012-07-22 11:45
It does mean exactly that. 2to3 is not designed or intended to ever issue warnings. So if your request is that it should issue a warning, I'm closing it as "won't fix".
msg166128 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2012-07-22 11:56
The documentation for porting is already clear about using "-3" switch.
http://docs.python.org/dev/howto/pyporting.html#eliminate-3-warnings

The argparse module is different because it is not in the stdlib in 2.6, and you can stay with optparse if you write code compatible with all versions between 2.6 and 3.3.
msg166129 - (view) Author: anatoly techtonik (techtonik) Date: 2012-07-22 12:25
My request is that after running 2to3 my code still doesn't work in Python 3.
msg166130 - (view) Author: anatoly techtonik (techtonik) Date: 2012-07-22 12:27
Florent: It is the same. "new" module just doesn't need replacement, because its functionality is in the language, therefore it is no different saying.
msg166132 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2012-07-22 12:52
Please don't reopen issues.
msg166133 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2012-07-22 12:57
IIUC, your request is not "should issue a warning", but "2to3 should make sure that the resulting code runs on Python 3".

It is beyond the scope of 2to3 to provide such guarantees. Users are required to test the conversion result, as it cannot be perfect.

So with the scope of this issue changed (again!!!!), the issue still won't be fixed.

If somebody contributed a fixer that converted the new module in 2to3, I might be in favor of integrating it (but others still may not).
msg166156 - (view) Author: anatoly techtonik (techtonik) Date: 2012-07-22 18:35
> Please don't reopen issues.

"Please don't ask for such silly stuff". You can understand the reason why this issue was opened, so why do you keep closing it if the "issue is not resolved"? 


The scope of this issue never changed, Martin. If you follow the user story, it is still the same original "user issue" or bad user experience with 2to3 tool.

It is fine if you're not going to work on a fix, but that's NOT the reason to close the issue. The proper fix would be to explain why you think there is nobody except yourself who can fix that, or provide the guarantees that the fix won't be accepted.
History
Date User Action Args
2022-04-11 14:57:33adminsetgithub: 59625
2012-07-22 22:18:10floxsetstatus: open -> closed
nosy: - loewis, flox
resolution: wont fix
2012-07-22 18:35:54techtoniksetstatus: closed -> open
resolution: wont fix -> (no value)
messages: + msg166156
2012-07-22 12:57:21loewissetmessages: + msg166133
2012-07-22 12:52:26loewissetresolution: wont fix
2012-07-22 12:52:10loewissetstatus: open -> closed

messages: + msg166132
2012-07-22 12:27:37techtoniksetmessages: + msg166130
2012-07-22 12:25:09techtoniksetstatus: closed -> open
resolution: wont fix -> (no value)
messages: + msg166129
2012-07-22 11:56:27floxsetmessages: + msg166128
2012-07-22 11:45:06loewissetstatus: open -> closed
resolution: wont fix
messages: + msg166127
2012-07-22 11:26:06techtoniksetmessages: + msg166123
2012-07-22 11:24:49techtoniksetresolution: not a bug -> (no value)
messages: + msg166122
2012-07-22 10:59:27floxsetnosy: + flox
messages: + msg166121
resolution: not a bug

superseder: import new fails
2012-07-22 09:25:25techtoniksetmessages: + msg166113
2012-07-22 09:15:46loewissetnosy: + loewis
messages: + msg166112
2012-07-22 08:48:47techtonikcreate