[issue1754483] linecache package handling
Georg Brandl ge...@python.org added the comment: Setting #1309567 as superseder. -- dependencies: -linecache module returns wrong results resolution: - duplicate status: open - closed superseder: - linecache module returns wrong results ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1754483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1754483] linecache package handling
Daniel Diniz aja...@gmail.com added the comment: Test script works with patch from issue 1309567. Hans, do you have more test cases? -- dependencies: +linecache module returns wrong results nosy: +ajaksu2 type: - behavior versions: +Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1754483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1754483] linecache package handling
Kevin Goodsell [EMAIL PROTECTED] added the comment: Here's a small test script. Added file: http://bugs.python.org/file10813/test.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1754483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1754483] linecache package handling
Changes by Georg Brandl [EMAIL PROTECTED]: -- assignee: - georg.brandl nosy: +georg.brandl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1754483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1754483] linecache package handling
Hans Ulrich Niedermann [EMAIL PROTECTED] added the comment: Even with that patch, I'm still getting backtraces similar to this: Traceback (most recent call last): File /home/user/foo/src/foo, line 83, in module foomain(sys.argv) File /home/uli/foo/src/foo, line 79, in foomain foolib.main.cmdmain(sys.argv) File ./foolib/main.py, line 250, in cmdmain File ./foolib/main.py, line 199, in main File ./foolib/main.py, line 180, in __init__ File ./foolib/main.py, line 115, in __get__ AttributeError: property--48216a94 Looks like I should write a dozen test cases I can think of on my own. :) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1754483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1754483] linecache package handling
Kevin Goodsell [EMAIL PROTECTED] added the comment: Hans is right, that patch isn't very good. Here's a second pass. This one avoids joining the file basename to sys.path components, which I'd say is wrong since it strips (presumably relevant) leading path components. A second part of this skips out early on absolute file names, which prevents joining them with sys.path components also. As far as I can tell this would cause no harm, but it's not useful either. Added file: http://bugs.python.org/file10812/linecache.py_2008_07_04.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1754483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1754483] linecache package handling
Hans Ulrich Niedermann [EMAIL PROTECTED] added the comment: The patch does not fix the underlying problem which is not limited to files named '__init__.py'. -- nosy: +ndim ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1754483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1754483] linecache package handling
Hans Ulrich Niedermann [EMAIL PROTECTED] added the comment: The following issues appear to be the same bug to me: http://bugs.python.org/issue1068477 http://bugs.python.org/issue1309567 http://bugs.python.org/issue1754483 and are, as of 2008-06-30, unfixed in both rel25-maint and trunk. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1754483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com