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# - SharpSVN - How to get the previous revision? -

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

url - Querystring manipulation of email Address in PHP -