Re: Getting module path string from a class instance

2012-11-13 Thread Some Developer
On 13/11/2012 09:36, Dave Angel wrote: On 11/13/2012 01:38 AM, Some Developer wrote: 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.

Re: Getting module path string from a class instance

2012-11-13 Thread Some Developer
On 13/11/2012 08:49, Steven D'Aprano wrote: On Tue, 13 Nov 2012 07:54:32 +, Some Developer wrote: On 13/11/2012 07:19, Steven D'Aprano wrote: On Tue, 13 Nov 2012 06:38:31 +, Some Developer wrote: I'm trying to find a way to get a string of the module path of a class. So for instance

Re: Getting module path string from a class instance

2012-11-13 Thread Dave Angel
On 11/13/2012 01:38 AM, Some Developer wrote: > 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 __r

Re: Getting module path string from a class instance

2012-11-13 Thread Steven D'Aprano
On Tue, 13 Nov 2012 07:54:32 +, Some Developer wrote: > On 13/11/2012 07:19, Steven D'Aprano wrote: >> On Tue, 13 Nov 2012 06:38:31 +, Some Developer wrote: >> >>> 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 i

Re: Getting module path string from a class instance

2012-11-12 Thread Some Developer
On 13/11/2012 07:19, Steven D'Aprano wrote: On Tue, 13 Nov 2012 06:38:31 +, Some Developer wrote: 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 e

Re: Getting module path string from a class instance

2012-11-12 Thread Steven D'Aprano
On Tue, 13 Nov 2012 06:38:31 +, Some Developer wrote: > 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 aw