Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue1754483] linecache package handling

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Jun 30, 2008, 5:26 PM

Post #1 of 6 (136 views)
Permalink
[issue1754483] linecache package handling

Hans Ulrich Niedermann <hun[at]n-dimensional.de> added the comment:

The patch does not fix the underlying problem which is not limited to
files named '__init__.py'.

----------
nosy: +ndim

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1754483>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jun 30, 2008, 5:28 PM

Post #2 of 6 (132 views)
Permalink
[issue1754483] linecache package handling [In reply to]

Hans Ulrich Niedermann <hun[at]n-dimensional.de> 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 <report[at]bugs.python.org>
<http://bugs.python.org/issue1754483>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 4, 2008, 10:58 PM

Post #3 of 6 (111 views)
Permalink
[issue1754483] linecache package handling [In reply to]

Kevin Goodsell <sourceforge.20.fusion[at]neverbox.com> 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 <report[at]bugs.python.org>
<http://bugs.python.org/issue1754483>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 4, 2008, 11:00 PM

Post #4 of 6 (112 views)
Permalink
[issue1754483] linecache package handling [In reply to]

Kevin Goodsell <sourceforge.20.fusion[at]neverbox.com> added the comment:

Here's a small test script.

Added file: http://bugs.python.org/file10813/test.py

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1754483>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 5, 2008, 2:49 AM

Post #5 of 6 (107 views)
Permalink
[issue1754483] linecache package handling [In reply to]

Changes by Georg Brandl <georg[at]python.org>:


----------
assignee: -> georg.brandl
nosy: +georg.brandl

_______________________________________
Python tracker <report[at]bugs.python.org>
<http://bugs.python.org/issue1754483>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jul 5, 2008, 5:37 AM

Post #6 of 6 (106 views)
Permalink
[issue1754483] linecache package handling [In reply to]

Hans Ulrich Niedermann <hun[at]n-dimensional.de> 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 <report[at]bugs.python.org>
<http://bugs.python.org/issue1754483>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.