_ is a valid variable name in doctests
Bug #1178096 reported by
asmeurer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
Fix Released
|
Low
|
Unassigned |
Bug Description
Example file:
def func():
"""
A docstring
>>> func()
1
>>> _
1
"""
return 1
pyflakes reports
test.py:6: undefined name '_'
But _ is a valid variable name in doctests (python -m doctest test.py passes)
Changed in pyflakes: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Just glancing at the code, I think it's easy to fix. How do you send patches using Launchpad?