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

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

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -