[New-bugs-announce] [issue25964] optparse.py:1668: (file) shadows builtin
Martin Mokrejs
report at bugs.python.org
Mon Dec 28 05:09:18 EST 2015
New submission from Martin Mokrejs:
I use pychecker for checking my python code. Seems optparse.py distributed with python-2.7 could be improved as well:
[system path]/optparse.py:1191: Function (__init__) has too many arguments (11)
[system path]/optparse.py:1206: Local variable (version) shadows global defined on line 10 in file my-test-code.py
[system path]/optparse.py:1400: Local variable (stop) not used
[system path]/optparse.py:1668: (file) shadows builtin
Interestingly, my version variable is overridden by one from optparse.py. But more worrisome is the 'file' variable name.
----------
messages: 257110
nosy: mmokrejs
priority: normal
severity: normal
status: open
title: optparse.py:1668: (file) shadows builtin
type: enhancement
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25964>
_______________________________________
More information about the New-bugs-announce
mailing list