New submission from ilya <[email protected]>:
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 <[email protected]>
<https://bugs.python.org/issue39670>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com