[New-bugs-announce] [issue39670] 2to3 fix_apply tries to fix user-defined apply function calls
ilya
report at bugs.python.org
Tue Feb 18 04:10:39 EST 2020
New submission from ilya <palachev.ilya at yandex.ru>:
Consider the following code:
def apply(a, b):
print(a)
print(b)
apply(1, 1)
2to3 suggests to fix it as follows:
--- a.py (original)
+++ a.py (refactored)
@@ -2,4 +2,4 @@
print(a)
print(b)
-apply(1, 1)
+(1)(*1)
----------
components: 2to3 (2.x to 3.x conversion tool)
messages: 362178
nosy: ilya
priority: normal
severity: normal
status: open
title: 2to3 fix_apply tries to fix user-defined apply function calls
type: behavior
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39670>
_______________________________________
More information about the New-bugs-announce
mailing list