initialising a list of lists
fredrik at pythonware.com
Wed Nov 16 17:27:43 CET 2005
Peter Kleiweg wrote:
> In other words: no there isn't.
For people who actually knows Python, a list comprehension is clear and
For people who actually knows Python, your first solution is also obviously
wrong. To create a new list objects, you have to execute the list display.
New objects never appear out of the blue, and Python hardly ever copies
objects unless you tell it to do so.
More information about the Python-list