[issue5069] Use sets instead of list in posixpath._resolve_link

2009-01-26 Thread Χρήστος Γεωργίου (Christos Georgiou)

New submission from Χρήστος Γεωργίου (Christos Georgiou) 
:

The paths_seen object is a list; a set is more appropriate, since its
main use is a lookup as in "path in paths_seen"

--
components: Library (Lib)
files: posixpath.diff
keywords: patch
messages: 80570
nosy: tzot
severity: normal
status: open
title: Use sets instead of list in posixpath._resolve_link
type: performance
versions: Python 2.7
Added file: http://bugs.python.org/file12867/posixpath.diff

___
Python tracker 
<http://bugs.python.org/issue5069>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2459] speedup for / while / if with better bytecode

2008-06-24 Thread Χρήστος Γεωργίου (Christos Georgiou)

Χρήστος Γεωργίου (Christos Georgiou) <[EMAIL PROTECTED]> added the comment:

A pointer to previous (minor) research:

http://groups.google.com/group/comp.lang.python/browse_frm/thread/72505e3cb6d9cb1a/e486759f06ec4ee5

esp. after Terry Reedy's post

--
nosy: +tzot

___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2459>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2195] urlparse() does not handle URLs with port numbers properly

2008-02-27 Thread Χρήστος Γεωργίου (Christos Georgiou)

Χρήστος Γεωργίου (Christos Georgiou) added the comment:

RFC1808 §2.1 suggests a generic RL syntax that specifies '://' as the
separator, so Gawain's suggestion makes practical sense. However, also
as Gawain says, the RFC specifies that '//' is considered as the first
part of a "net_path" and is not necessarily included (example:
"mailto:[EMAIL PROTECTED]" (and yes, I actually welcome spammers :) ).

I believe that urlparse should stay as-is when not called with a
default_scheme argument, and fixed as-suggested when called with a
default_scheme argument (that's the point for providing default_scheme).

--
nosy: +tzot

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2195>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1860] traceback.print_last fails

2008-01-17 Thread Χρήστος Γεωργίου (Christos Georgiou)

Χρήστος Γεωργίου (Christos Georgiou) added the comment:

I haven't submitted a patch since the transition from sf.net to
bugs.python.org; I assume that I don't have to open a new patch for
this, but if I have to, please let me know and I will gladly do it.

The unified diff is attached; the test example I issued works with the
patched version.

Added file: http://bugs.python.org/file9194/traceback_patch.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1860>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1860] traceback.print_last fails

2008-01-17 Thread Χρήστος Γεωργίου (Christos Georgiou)

New submission from Χρήστος Γεωργίου (Christos Georgiou):

traceback.print_last() depends on the existence of sys.last_type,
sys.last_value, sys.last_traceback, which don't always exist when
called. See attached example file. I will shortly send the patch for
Lib/traceback.py

--
components: Library (Lib)
files: test_tb_print_last.py
messages: 60028
nosy: tzot
severity: normal
status: open
title: traceback.print_last fails
type: behavior
versions: Python 2.5, Python 2.6
Added file: http://bugs.python.org/file9193/test_tb_print_last.py

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1860>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com