[issue29148] Inheritance behaviour ambiguos

2017-01-04 Thread Berker Peksag

Berker Peksag added the comment:

You may find Raymond Hettinger's "super() considered super" article helpful to 
understand how Python's super() works: 
https://rhettinger.wordpress.com/2011/05/26/super-considered-super/

--
nosy: +berker.peksag

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29148] Inheritance behaviour ambiguos

2017-01-03 Thread Xiang Zhang

Xiang Zhang added the comment:

It seems you are surprised `super(C, self).foo2()` works but it is actually how 
super() and class.__mro__ works. :-) So not a bug. You could learn more about 
it but sorry I don't have any good reference for you. :-(

--
nosy: +xiang.zhang
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29148] Inheritance behaviour ambiguos

2017-01-03 Thread Yugansh Marwah

New submission from Yugansh Marwah:

Inheritance property behaves ambiguously on inheriting multiple inheritance 
over a class
It even calls the function of un-inherited class
code is attached below kindly run it and tell me the exact behavior of the same.

--
components: Tests
files: oops.py
messages: 284610
nosy: yugansh94
priority: normal
severity: normal
status: open
title: Inheritance behaviour ambiguos
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file46133/oops.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com