Re: [Python-Dev] how important is setting co_filename for a module being imported to what __file__ is set to?

Aug. 31, 2009
9:52 p.m.
At 01:39 PM 8/31/2009 -0700, Brett Cannon wrote:
Why not just try the code I posted earlier, that doesn't need a mutable attribute OR an API change?

August 2009
9:57 p.m.
New subject: how important is setting co_filename for a module being imported to what __file__ is set to?
On Mon, Aug 31, 2009 at 14:52, P.J. Eby<pje@telecommunity.com> wrote:
Ignoring that 'new' is not in Python 3.x (luckily 'types' is), I want a proper solution that doesn't require reconstructing every code object that I happen to import. -Brett

August 2009
9:57 p.m.
New subject: how important is setting co_filename for a module being imported to what __file__ is set to?
On Mon, Aug 31, 2009 at 14:52, P.J. Eby<pje@telecommunity.com> wrote:
Ignoring that 'new' is not in Python 3.x (luckily 'types' is), I want a proper solution that doesn't require reconstructing every code object that I happen to import. -Brett
5677
Age (days ago)
5677
Last active (days ago)
1 comments
2 participants
participants (2)
-
Brett Cannon
-
P.J. Eby