logilab-astng #8774 iterator / generator / next method [validation pending]
pylint does not seem to know that an iterator has a member called "next": def count(): n = 0 while True: yield n n += 1 i = count() print i.next() print i.next() print i.next() | |
priority | normal |
---|---|
type | enhancement |
done in | 0.21.1 |
load | 0.500 |
load left | 0.000 |
closed by | <not specified> |
similar entities
- pylint #4014 Metaclass method should have "mcs" as first argument
- pylint #18772 no prototype consistency check for mangled methods
- pylint #9334 C0103 false positive on __class__
- pylint #4983 new py2.5 check: test "yield" in "try" body with yield in exception handlers.
- pylint #4685 Problem with Pylint's handling on __all__
[see all]
attachment
Comments
-
2010/10/28 08:30, written by eanclin
add commentwork in progress on the attached patch