mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
I changed behavior of PyClassImpl#NameFinder processor, so that it always tries to find an element with the first of the names passed to its constructor. In particular, #findInitOrNew() returns __init__ unless there was only __new__ defined in the class. Otherwise its behavior contradicts with the method's javadoc.
7 lines
125 B
Python
7 lines
125 B
Python
class MyClass(object):
|
|
def __init__(self):
|
|
self.x = 42
|
|
|
|
def __new__(cls):
|
|
return object.__new__(cls)
|