How to make a reverse for loop in python?
lists at cheimes.de
Sun Sep 21 01:56:59 CEST 2008
Alex Snast wrote:
> Another quick question please, is the List data structure just a
> dynamic array? If so how can you use static size array, linked list,
> AVL trees etcetera.
You should treat Python lists as an opaque item. You shouldn't concern
yourself with the implementation details. Python lists are fast and
optimized for most use cases. Unless you have specific needs for highly
specialized data types, use lists.
Just *don't* try to abuse lists by creating fancy stuff e.g. linked
lists. The memory overhead is going to kill your app.
More information about the Python-list