[Tutor] Built-in modules

Alan G alan.gauld at freenet.co.uk
Wed Jun 22 00:55:52 CEST 2005

> 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?


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!)


Alan G.

More information about the Tutor mailing list