Re: [Python-Dev] Should there be a way or API for retrieving from a code object a loader method and package file where the code comes from?

2008-12-23 Thread R. Bernstein
Nick Coghlan writes: > R. Bernstein wrote: > > Nick Coghlan writes: > > > 3. Do what a number of standard library APIs (e.g. linecache) that > > > accept filenames do and also accept an optional "module globals" > > > argument. > >

Re: [Python-Dev] Should there be a way or API for retrieving from a code object a loader method and package file where the code comes from?

2008-12-23 Thread R. Bernstein
Nick Coghlan writes: > 3. Do what a number of standard library APIs (e.g. linecache) that > accept filenames do and also accept an optional "module globals" > argument. Actually, I did this and committed a change (to pydb) before posting any of these queries. ;-) If "a number of standard libr

Re: [Python-Dev] Should there be a way or API for retrieving from a code object a loader method and package file where the code comes from?

2008-12-23 Thread R. Bernstein
Paul Moore writes: > 2008/12/23 : > > What is wanted is a uniform way get and describe a file location > > from a code object that takes into account the file might be a member > > of an archive. > > But a code object may not have come from a file. Right. That's why I mentioned for exampl