Assigning to lists with arbitrary names
Daniel Dittmar
daniel.dittmar at sap.com
Wed Oct 10 12:55:01 EDT 2001
More information about the Python-list mailing list
Wed Oct 10 12:55:01 EDT 2001
- Previous message (by thread): Assigning to lists with arbitrary names
- Next message (by thread): Assigning to lists with arbitrary names
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Here's the problem: I want to name each list list00 to list99. I don't > want to do list[0] to list[99] (since each list is actually a list of > lists, and I'd like to avoid a list of lists of lists :). You could use a dictionary with keys 'list00' to 'list99', but I don't think having a dictionary of lists of lists is that much better. Why not subclass UserList for each kind of list? Then you could at least distinguish between the different levels. Daniel
- Previous message (by thread): Assigning to lists with arbitrary names
- Next message (by thread): Assigning to lists with arbitrary names
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list