[issue5322] object.__new__ argument calling autodetection faulty

2022-01-25 Thread STINNER Victor
STINNER Victor added the comment: Python has the same behavior since Python 2.6. While it annoys a few persons, the majority doesn't care. I suggest to close the issue. It's easy to workaround limitation that object.__new__() which doesn't accept arguments. -- _

[issue5322] object.__new__ argument calling autodetection faulty

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: Right, I see now. -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue5322] object.__new__ argument calling autodetection faulty

2022-01-24 Thread Armin Ronacher
Armin Ronacher added the comment: The bug is still there, just that it's now not just a warning but an error. The auto detection is incorrect here. It should allow the instantiation of the object with arguments. -- ___ Python tracker

[issue5322] object.__new__ argument calling autodetection faulty

2022-01-24 Thread Irit Katriel
Irit Katriel added the comment: Can we close this now? >>> class A(object): ... def __new__(self): ... raise TypeError('i do not exist') ... >>> class B(A): ... __new__ = object.__new__ ... def __init__(self, x): ... self.x = x ... >>> B(1) Traceback (most recent

[issue5322] object.__new__ argument calling autodetection faulty

2018-08-09 Thread ppperry
Change by ppperry : -- nosy: +ppperry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue5322] object.__new__ argument calling autodetection faulty

2018-08-08 Thread ppperry
Change by ppperry : -- title: Python 2.6 object.__new__ argument calling autodetection faulty -> object.__new__ argument calling autodetection faulty ___ Python tracker ___ ___