Getting module path string from a class instance
Some Developer
someukdeveloper at gmail.com
Tue Nov 13 01:38:31 EST 2012
More information about the Python-list mailing list
Tue Nov 13 01:38:31 EST 2012
- Previous message (by thread): stackoverflow quote on Python
- Next message (by thread): Getting module path string from a class instance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'm trying to find a way to get a string of the module path of a class. So for instance say I have class Foo and it is in a module called my.module. I want to be able to get a string that is equal to this: "my.module.Foo". I'm aware of the __repr__ method but it does not do what I want it to do in this case. Can anyone offer any advice at all?
- Previous message (by thread): stackoverflow quote on Python
- Next message (by thread): Getting module path string from a class instance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list