Newbie question about nested lists and constructor functions...

Terry Reedy tjreedy at udel.edu
Mon Mar 5 00:04:35 EST 2001


"Bartok" <JollyRoger at hotmail.com> wrote in message
news:W1Do6.4683$ke1.121750 at jekyl.ab.tac.net...
> I need some help with nested lists when using class constructors to
> initialize their contents.  I found the tutorial to be of not much help
in
> this area and have tried everything that I can think of.

Constructing a list, nested or not, within __init__() is no different from
doing so anywhere else.

> I understand the process as I am an experienced C++ programmer but I seem
to
> be having some difficulty using the correct syntax.  Can anyone please
help?

It would be much easier to do so if you post both a specific example of
what you want to do and what you have tried.






More information about the Python-list mailing list