finding origin of names

Michele Simionato mis6 at
Sat Jun 7 18:43:07 CEST 2003

Robin Becker <robin at> wrote in message news:<Y64HZKA1Ke4+Ewhj at>...
> In article <mailman.1054987218.24496.python-list at>, Andreas
> Jung <lists at> writes
> >What is the usecase for this? It looks to me that you should verify your
> >data-model...I have never been in a situation during my 10 year Python 
> >experience
> >where I have to check this.
> >
> >-aj
> >
> >--On Samstag, 7. Juni 2003 12:29 Uhr +0100 Robin Becker 
> ><robin at> wrote:
> >
> ..... we have a semi-automatic drawing editor for naive users. They can
> set properties to red/blue etc and the editor attempts to find a
> suitable origin for the object (ie a Color instance defined in some
> module). Our current approach  doesn't care if the module defines these
> or imports them, but it would make sense for us to use the 'original
> source'.

If I understand correctly you want inspect.getsource or inspect.getmodule
or inspect.getsourcefile or something like that ...


More information about the Python-list mailing list