> nested list C# like) and I want to be able to call the class List
(which is
> inside the List.py) without having to copy it in every folder where
I have a
> script that needs this module
>
> Can I do that?

Yes.

See Kent's reply to a similar post about creating a package.

You can also just copy the module file List.py into a folder
that's in your search path. That works too. But calling it List
is probably bad since Python already has Lists. Maybe you could
rename it something like NestedList? (Whatever that is!)

HTH,

Alan G.

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to