On Python 3, __class__ can be used without self
Bug #1487725 reported by
Ian Cordasco
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
New
|
Undecided
|
Unassigned |
Bug Description
On Python 3, the following code raises a warning:
class Test(object):
def __init__(self):
self.x = 1
t = Test()
This is actually valid Python 3 code, but PyFlakes doesn't quite understand that:
test.py:3: undefined name '__class__'
Any movement on this? I keep getting warnings about this too.