How would I create a custom list class in python? -


i write custom list class in python (let's call mycollection) can call:

for x in mycollectioninstance:     #do here 

how go doing that? there class have extend, or there functions must override in order so?

python language reference, §3.4.6, "emulating container types"


Comments

Popular posts from this blog

sql - text truncated using perl DBI insert -

c++ - Is it possible to compile a VST on linux? -

php - Pass object by reference or value -