Fix an issue with inherited lists.

This commit is contained in:
Dave Halter committed 2016-07-26 09:24:51 +02:00
1 parent fc7fd9d989
commit a6dd7bf822
2 files changed
+14 -1

No files matched your search

+11
View File
@@ -311,6 +311,17 @@ for i in 0, 2:
#? int() str()
GetItemWithList()[i]
# With super
class SuperYeah(list):
def __getitem__(self, index):
return super()[index]
#?
SuperYeah([1])[0]
#?
SuperYeah()[0]
# -----------------
# conversions
# -----------------