Timeline for Python- Multiple dynamic inheritance
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 20, 2020 at 9:12 | history | edited | Community Bot |
Commonmark migration
|
|
| May 23, 2017 at 12:02 | history | edited | URL Rewriter Bot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
| Oct 5, 2016 at 19:19 | vote | accept | Mike Bourbeau | ||
| Oct 5, 2016 at 18:53 | answer | added | ekhumoro | timeline score: 3 | |
| Oct 5, 2016 at 18:27 | history | edited | Mike Bourbeau | CC BY-SA 3.0 |
added 681 characters in body
|
| Oct 5, 2016 at 17:08 | comment | added | jerry | To avoid the error you can add asterisk before *arg when you use it: class Build(*arg). Notice that the call to super inside the constructor might call different things depending on what you pass as arg. | |
| Oct 5, 2016 at 16:10 | answer | added | Martijn Pieters | timeline score: 1 | |
| Oct 5, 2016 at 16:10 | comment | added | jonrsharpe |
That's because it's trying to subclass the tuple of args itself. If you want dynamic multiple inheritance, use type(name, bases, dct).
|
|
| Oct 5, 2016 at 16:06 | history | asked | Mike Bourbeau | CC BY-SA 3.0 |