Carlos Damazio <carlos.dama...@damazio.dev> added the comment:

Normally, users assume it's safe to use `super` without explicit arguments, 
until an undefined behavior happens, such as now. The only thing that glances 
into this issue is the observation in the docs you've provided that omitting 
the second argument (self), `super` returns an unbounded object, which is a 
super object.

I mean, there are 2 alternatives: this issue is related to a lower level 
implementation and it's another way to solve it (of which needs investigation 
of course) or state that it's required to provide such arguments in the docs.

https://docs.python.org/3.9/library/functions.html#super

In the newer docs, we are assuming that `super()` is the same as `super(cls, 
self)`, but clearly it's not.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46175>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to