Doug Hellmann added the comment:

The specific case I have right now is with a large code base written by someone 
else who is seeing a TypeError when they call super(their-local-class, 
self).__init__() because whatever class super() is returning is expecting 
arguments to __init__(). The TypeError thrown doesn't say what is being called 
(that's a separate issue) so I was trying to debug. The __init__() method of 
super() is a special wrapper, so there isn't any way using only super() to 
access the class it has decided to use. I'm currently walking the MRO by hand 
to find the class that's causing the problem. I expected to be able to do 
something like super(their-local-class, self).give_me_the_type_with('__init__') 
and get back a class.

----------

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

Reply via email to