how to get my own namespace ?

kyosohma at gmail.com kyosohma at gmail.com
Tue Oct 16 16:52:30 EDT 2007


On Oct 16, 3:43 pm, stef mientki <stef.mien... at gmail.com> wrote:
> I want to view my own namespace,
> i.e. to see the modules namespace in the module itself,
> is that possible ?
>
> I can use
>    dir()
> but I read dir is just a convenience function,
> and besides I want key/value pairs.
>
> thanks,
> Stef Mientki

You should read up on introspection then. I think that's what you
need:

http://www.ibm.com/developerworks/library/l-pyint.html

Mike




More information about the Python-list mailing list