[issue29270] ctypes: fail to create a _ctypes._SimpleCData subclass using a closure like calling super() without arguments

2022-03-28 Thread STINNER Victor
"super()", etc.). -- nosy: +vstinner title: super call in ctypes subclass fails -> ctypes: fail to create a _ctypes._SimpleCData subclass using a closure like calling super() without arguments versions: +Python 3.11 -Python 3.8 __

[issue45121] Calling super().__init__ in subclasses of typing.Protocol raises RecursionError

2021-10-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset db762a9b21a8af6f2ee94a6e49144dd1a1a62333 by Pablo Galindo (Miss Islington (bot)) in branch '3.10': bpo-45121: Fix RecursionError when calling Protocol.__init__ from a subclass' __init__ (GH-28206) (GH-28232)

[issue45121] Calling super().__init__ in subclasses of typing.Protocol raises RecursionError

2021-09-19 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Pablo, marking as release blocker. PR GH-28232 is merged to 3.10. It should > be cherry-picked for 3.10.0 inclusion. Done! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue45121] Calling super().__init__ in subclasses of typing.Protocol raises RecursionError

2021-09-08 Thread Łukasz Langa
Łukasz Langa added the comment: Pablo, marking as release blocker. PR GH-28232 is merged to 3.10. It should be cherry-picked for 3.10.0 inclusion. -- nosy: +pablogsal priority: critical -> release blocker ___ Python tracker

[issue45121] Calling super().__init__ in subclasses of typing.Protocol raises RecursionError

2021-09-08 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset c081649e6df55203178a44d16bc4c96f9fa2c6a4 by Miss Islington (bot) in branch '3.10': bpo-45121: Fix RecursionError when calling Protocol.__init__ from a subclass' __init__ (GH-28206) (GH-28232)

[issue45121] Calling super().__init__ in subclasses of typing.Protocol raises RecursionError

2021-09-08 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 99506dcbbe9fb56ceabe55f0a4333e5981b72095 by Ken Jin in branch '3.9': [3.9] bpo-45121: Fix RecursionError when calling Protocol.__init__ from a subclass' __init__ (GH-28206) (GH-28233)

[issue45121] Calling super().__init__ in subclasses of typing.Protocol raises RecursionError

2021-09-08 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +26653 pull_request: https://github.com/python/cpython/pull/28233 ___ Python tracker ___ ___

[issue45121] Calling super().__init__ in subclasses of typing.Protocol raises RecursionError

2021-09-08 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +26652 pull_request: https://github.com/python/cpython/pull/28232 ___ Python tracker

[issue45121] Calling super().__init__ in subclasses of typing.Protocol raises RecursionError

2021-09-08 Thread Ken Jin
Ken Jin added the comment: New changeset c11956a8bddd75f02ccc7b4da7e4d8123e1f3c5f by Yurii Karabas in branch 'main': bpo-45121: Fix RecursionError when calling Protocol.__init__ from a subclass' __init__ (GH-28206)

[issue45121] Calling super().__init__ in subclasses of typing.Protocol raises RecursionError

2021-09-07 Thread Ken Jin
Change by Ken Jin : -- priority: normal -> critical title: Regression in 3.9.7 with typing.Protocol -> Calling super().__init__ in subclasses of typing.Protocol raises RecursionError versions: +Python 3.10, Python 3.11 ___ Python tracker

[issue36606] calling super() causes __class__ to be not defined when sys.settrace(trace) is set

2019-04-11 Thread Karthikeyan Singaravelan
--- Ran 21 tests in 0.058s FAILED (failures=1) -- components: Interpreter Core messages: 339988 nosy: benjamin.peterson, eric.snow, michael.foord, ncoghlan, nedbat, xtreak priority: normal severity: normal status: open title: calling super() causes __class__ to be not defined when sy

Calling super() in __init__ of a metaclass

2011-08-06 Thread Eli Bendersky
Consider this standard metaclass definition: class MyMetaclass(type): def __init__(cls, name, bases, dct): super(MyMetaclass, cls).__init__(name, bases, dct) # do meta-stuff class Foo(object): __metaclass__ = MyMetaclass The call super(MyMetaclass, cls) should returns

Re: Calling super() in __init__ of a metaclass

2011-08-06 Thread Chris Rebert
On Sat, Aug 6, 2011 at 12:34 AM, Eli Bendersky eli...@gmail.com wrote: Consider this standard metaclass definition: class MyMetaclass(type):    def __init__(cls, name, bases, dct):        super(MyMetaclass, cls).__init__(name, bases, dct)        # do meta-stuff class Foo(object):    

Re: Calling super() in __init__ of a metaclass

2011-08-06 Thread Peter Otten
Eli Bendersky wrote: Consider this standard metaclass definition: class MyMetaclass(type): def __init__(cls, name, bases, dct): super(MyMetaclass, cls).__init__(name, bases, dct) # do meta-stuff class Foo(object): __metaclass__ = MyMetaclass The call

Re: Calling super() in __init__ of a metaclass

2011-08-06 Thread Eli Bendersky
On Sat, Aug 6, 2011 at 11:04, Chris Rebert c...@rebertia.com wrote: On Sat, Aug 6, 2011 at 12:34 AM, Eli Bendersky eli...@gmail.com wrote: Consider this standard metaclass definition: class MyMetaclass(type):    def __init__(cls, name, bases, dct):        super(MyMetaclass,

Re: calling super()

2007-04-11 Thread Laszlo Nagy
John Clark wrote: Please be aware that super() has it's own set of gotchas - it's not as clean as you would hope. For more info: http://fuhm.org/super-harmful/ (I'm not the author, I was referred to this article while struggling with wxPython and super()) This was interesting! I'm using

calling super()

2007-04-04 Thread Finger . Octopus
Hello, I have been trying to call the super constructor from my derived class but its not working as expected. See the code: class HTMLMain: def __init__(self): self.text = HTMLBODY; print(self.text); def __del__(self): self.text = /BODY/HTML;

Re: calling super()

2007-04-04 Thread Laszlo Nagy
And here's the error message I get: Traceback (most recent call last): File e:/PyEN/inherit.py, line 16, in module N = NewPage(); File e:/PyEN/inherit.py, line 12, in __init__ super(NewPage, self).__init__(); TypeError: super() argument 1 must be type, not classobj Super

RE: calling super()

2007-04-04 Thread John Clark
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, April 04, 2007 3:23 PM To: python-list@python.org Subject: calling super() Hello, I have been trying to call the super constructor from my derived class but its not working as expected. See

Re: calling super()

2007-04-04 Thread Jarek Zgoda
[EMAIL PROTECTED] napisał(a): Hello, I have been trying to call the super constructor from my derived class but its not working as expected. See the code: class HTMLMain: def __init__(self): self.text = HTMLBODY; print(self.text); def __del__(self):

Re: calling super()

2007-04-04 Thread attn . steven . kuo
On Apr 4, 12:22 pm, [EMAIL PROTECTED] wrote: Hello, I have been trying to call the super constructor from my derived class but its not working as expected. See the code: class HTMLMain: def __init__(self): self.text = HTMLBODY; print(self.text); def __del__(self):

Re: calling super()

2007-04-04 Thread Steve Holden
John Clark wrote: Yeah!!! One I can actually answer!!! Nice to see such enthusiasm. Well done! regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://del.icio.us/steve.holden Recent Ramblings

Re: calling super()

2007-04-04 Thread Laszlo Nagy
Jarek Zgoda wrote: Hello, I have been trying to call the super constructor from my derived class but its not working as expected. See the code: class HTMLMain: def __init__(self): self.text = HTMLBODY; print(self.text); def __del__(self): self.text =

RE: calling super()

2007-04-04 Thread John Clark
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Laszlo Nagy Sent: Wednesday, April 04, 2007 4:09 PM To: Jarek Zgoda; python-list@python.org; [EMAIL PROTECTED] Subject: Re: calling super() Jarek Zgoda wrote: Hello, I have been trying to call the super constructor from my derived class but its

Re: calling super()

2007-04-04 Thread Jarek Zgoda
Laszlo Nagy napisał(a): Definitely, this is not true. Well, it depends what the OP wanted to do here, but in 99.9% of the cases, you want to use Hah! I cancelled this message but seconds too late... -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: calling super()

2007-04-04 Thread Bruno Desthuilliers
Jarek Zgoda a écrit : [EMAIL PROTECTED] napisał(a): (snip) class NewPage(HTMLMain): def __init__(self): print 'derive2 init' super(NewPage, self).__init__(); This should read: super(HTMLMain, self).__init__() Nope. It's just how it should be. --

Re: calling super()

2007-04-04 Thread Bruno Desthuilliers
John Clark a écrit : Yeah!!! One I can actually answer!!! +1 QOTW -- http://mail.python.org/mailman/listinfo/python-list