[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-12-08 Thread Yury Selivanov
Yury Selivanov added the comment: @Jason: done ;) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-12-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset e52d8e888df1 by Yury Selivanov in branch '3.4': inspect: Fix getsource() to load updated source of reloaded module https://hg.python.org/cpython/rev/e52d8e888df1 -- ___ Python tracker

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-12-08 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-12-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: FWIW, I'd appreciate a backport to 3.4, given that 3.5 is scheduled for release in Sep 2015. -- ___ Python tracker ___ _

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-12-08 Thread Yury Selivanov
Yury Selivanov added the comment: Fixed in 3.5. Not sure if we need to backport this to 3.4 and 2.7. Closing this issue. Thanks to Björn Lindqvist and Berker Peksag! -- ___ Python tracker ___

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-12-08 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-12-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8e2505d535c8 by Yury Selivanov in branch 'default': inspect: Fix getsource() to load updated source of reloaded module https://hg.python.org/cpython/rev/8e2505d535c8 -- nosy: +python-dev ___ Python tracke

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-05-06 Thread R. David Murray
R. David Murray added the comment: Note that there has never been a strict correspondence between linecache/getsource, the module in memory, and the code on disk. If the file is changed before a traceback is generated, for example, you will get the new source. That doesn't mean fixing the re

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-05-06 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks, I'll take a look at the patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-05-05 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +yselivanov versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-05-05 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-05-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: This issue appears implicated in https://bitbucket.org/pypa/setuptools/issue/201 -- nosy: +jason.coombs ___ Python tracker ___ __

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-02-03 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2012-12-10 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2012-12-10 Thread Berker Peksag
Changes by Berker Peksag : -- versions: +Python 3.3, Python 3.4 -Python 3.1 Added file: http://bugs.python.org/file28272/issue1218234.diff ___ Python tracker ___ __

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2010-07-16 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > linecache.checkcache does a stat() of every single cached file. Ah, sorry. I didn't read carefully enough. I see that the patch passes in the filename and checkcache restricts the work it does in that case. Something else to consider, though, is that

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2010-07-16 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Calling linecache.checkcache for every inspect.getsource call sounds like a fairly bad idea to me. linecache.checkcache does a stat() of every single cached file. -- nosy: +exarkun ___ Python tracker

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2010-07-16 Thread Mark Lawrence
Mark Lawrence added the comment: The change to inspect.py is two lines. Given that unit test patches are also supplied could someone with the knowledge give yes or no to accepting this patch? -- nosy: +BreamoreBoy versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2009-04-25 Thread Daniel Diniz
Changes by Daniel Diniz : Removed file: http://bugs.python.org/file13776/test_inspect-py3k.diff ___ Python tracker ___ ___ Python-bugs-list

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2009-04-25 Thread Daniel Diniz
Daniel Diniz added the comment: Er, no, it wasn't committed to py3k, it was just me getting my patches mixed. Attaching the py3k test with relative import fixed. -- Added file: http://bugs.python.org/file13778/test_inspect-py3k2.diff ___ Python track

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2009-04-25 Thread Daniel Diniz
Changes by Daniel Diniz : Added file: http://bugs.python.org/file13776/test_inspect-py3k.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2009-04-25 Thread Daniel Diniz
Daniel Diniz added the comment: Fix was committed to py3k but with no tests AFAIK. Here's a (failing) test for trunk that runs OK after Guilherme's patch. We might want to keep this behavior restricted for when the module was reloaded. -- keywords: +patch nosy: +ajaksu2 stage: -> patc

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2008-02-07 Thread Guilherme Polo
Guilherme Polo added the comment: I'm attaching a patch. Is there some hidden problem that it may cause ? By the way, this issue is a duplicate of http://bugs.python.org/issue993580 -- nosy: +gpolo Added file: http://bugs.python.org/file9382/inspect.py.diff _