[issue1644] Patch submission guidelines outdated

2007-12-21 Thread Georg Brandl
Georg Brandl added the comment: That page is outdated, the new URL is python.org/dev/patches. I'll notify the website maintainers to remove/redirect the old URL. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue1497] Patch to remove API to create new unbound methods

2007-12-21 Thread Georg Brandl
Georg Brandl added the comment: As far as I can see, not really. -- status: pending -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-

[issue1678] description of startswith is confused

2007-12-21 Thread MATSUI Tetsushi
New submission from MATSUI Tetsushi: In the Library Reference 3.6.1 String Method, the description of startswith is confused with endswith. It says: prefix can also be a tuple of suffixes to look for. Here, "suffixes" means "prefixes". Note: This part is new for 2.5. -- components: D

[issue1657] [patch] epoll and kqueue wrappers for the select module

2007-12-21 Thread Christian Heimes
Changes by Christian Heimes: Removed file: http://bugs.python.org/file9014/trunk_select_epoll_kqueue2.patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2007-12-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I get the same behaviour with python 2.5.1, and even 2.4.4 (on Windows 2000): I hold down Ctrl-C, and after ~30 "KeyboardInterrupt", the interpreter stops. So this is not 3.0 specific. What is new in python3.0 is that file objects are implemented in python

[issue1677] Ctrl-C will exit out of Python interpreter in Windows

2007-12-21 Thread Christian Heimes
Christian Heimes added the comment: I don't think it's a critical bug but it may be worth to debug it. -- keywords: +py3k nosy: +tiran priority: -> normal __ Tracker <[EMAIL PROTECTED]> _

[issue1657] [patch] epoll and kqueue wrappers for the select module

2007-12-21 Thread Christian Heimes
Changes by Christian Heimes: Removed file: http://bugs.python.org/file9010/trunk_select_epoll_kqueue.patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python-

[issue1657] [patch] epoll and kqueue wrappers for the select module

2007-12-21 Thread Christian Heimes
Changes by Christian Heimes: Removed file: http://bugs.python.org/file9017/trunk_select_epoll_kqueue3.patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python

[issue1678] description of startswith is confused

2007-12-21 Thread Christian Heimes
Changes by Christian Heimes: -- assignee: -> georg.brandl nosy: +georg.brandl priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python

[issue1657] [patch] epoll and kqueue wrappers for the select module

2007-12-21 Thread Thomas Herve
Thomas Herve added the comment: Here I go for kqueue: * the docstring of test_kqueue.py is wrong * the tests are a bit light. It would be good the have a test like test_control_and_wait in test_epoll. * the kqueue_queue_control (and the pyepoll_poll) are now completely wrong! You should not li

[issue1657] [patch] epoll and kqueue wrappers for the select module

2007-12-21 Thread Christian Heimes
Changes by Christian Heimes: Removed file: http://bugs.python.org/file9018/trunk_select_epoll_kqueue4.patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python

[issue1680] what is decimal.Context.get_manager()?

2007-12-21 Thread MATSUI Tetsushi
New submission from MATSUI Tetsushi: In the section Context Manager Types of the Library reference, the __enter__ method of context management protocol is explained as: An example of a context manager that returns a related object is the one returned by decimal.Context.get_manager(). But I c

[issue1678] description of startswith is confused

2007-12-21 Thread Georg Brandl
Georg Brandl added the comment: This is already fixed in SVN and will be live with the next docs update. Thanks for reporting! -- resolution: -> out of date status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue1679] tokenizer permits invalid hex integer

2007-12-21 Thread Martin Rinehart
New submission from Martin Rinehart: The tokenizer accepts '0x' as an integer zero. The documentation says: hexinteger ::= 0x|Xhexdigit+ Stumbled on this testing a tokenizer I wrote in Python for another language. Expected an Error on "int( '0x', 16 )", but didn't get one. -- compone

[issue1555570] email parser incorrectly breaks headers with a CRLF at 8192

2007-12-21 Thread Karen Tracey
Changes by Karen Tracey: -- nosy: +kmtracey _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1676] Fork/exec issues with Tk 8.5/Python 2.5.1 on OS X

2007-12-21 Thread Kevin Walzer
Kevin Walzer added the comment: I already queried the Tcl-Mac mailing list about this to see if it should be reported as a bug against Tk. Daniel Steffen, the maintainer of Tcl/Tk on the Mac, thinks it may stem from Python-Tk interaction. His detailed reply is here: http://www.nabble.com/Re%3

[issue1657] [patch] epoll and kqueue wrappers for the select module

2007-12-21 Thread Thomas Herve
Changes by Thomas Herve: Added file: http://bugs.python.org/file9020/test_kqueue.diff __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing lis

[issue1657] [patch] epoll and kqueue wrappers for the select module

2007-12-21 Thread Thomas Herve
Thomas Herve added the comment: I attached a patch with a more complete test of kqueue. It's not that great, but it's a thing. I've only tested on OS X, but it works. Regarding the ability of building an epoll object from a fd, it might be usefull in some corner cases, but that's not a priority.

[issue1681] parameter name for optparse parse_args incorrect

2007-12-21 Thread Wichert Akkerman
New submission from Wichert Akkerman: http://www.python.org/doc/2.4.4/lib/optparse-parsing-arguments.html documents that second named parameter to be 'options'. This is not correct: the actual name is 'values'. -- components: Documentation messages: 58948 nosy: wichert severity: normal s

[issue1679] tokenizer permits invalid hex integer

2007-12-21 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: -> gvanrossum nosy: +gvanrossum priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bug

[issue1680] what is decimal.Context.get_manager()?

2007-12-21 Thread Facundo Batista
Changes by Facundo Batista: -- assignee: -> facundobatista nosy: +facundobatista __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing

[issue1675] Race condition in os.makedirs

2007-12-21 Thread Isaac Morland
Isaac Morland added the comment: Attached is an svn diff against the trunk. I was looking at os.py from Python 2.5 not the trunk, and it appears that an attempt at fixing the race condition has already been put into os.py, but I don't believe it's correct. The attached patch renames the existin

[issue1675] Race condition in os.makedirs

2007-12-21 Thread Isaac Morland
Isaac Morland added the comment: I should add that the new parameter is called "excl" by analogy with the O_EXCL option to os.open(). Also, I'm not absolutely certain about the test for which exceptions should be ignored when excl == False: e.errno == errno.EEXIST and path.isdir (name) This wi

[issue1432] Strange behavior of urlparse.urljoin

2007-12-21 Thread Isaac Morland
Isaac Morland added the comment: RFC 1808 has been obsoleted by RFC 3986: http://tools.ietf.org/html/rfc3986 __ Tracker <[EMAIL PROTECTED]> __ ___ Pytho

[issue1683] Thread local storage and PyGILState_* mucked up by os.fork()

2007-12-21 Thread roudkerk
New submission from roudkerk: I got a report that one of the tests for processing (http://cheeseshop.python.org/pypi/processing) was failing with Fatal Python error: Invalid thread state for this thread when run with a debug interpreter. This appears to be caused by the interaction between

[issue1432] Strange behavior of urlparse.urljoin

2007-12-21 Thread Isaac Morland
Isaac Morland added the comment: Issue 1637, Issue 1779700, and Issue 1462525 also relate to this problem. -- nosy: +ijmorlan __ Tracker <[EMAIL PROTECTED]> __

[issue1682] Move Demo/classes/Rat.py to Lib/rational.py and fix it up.

2007-12-21 Thread Guido van Rossum
Changes by Guido van Rossum: -- assignee: -> gvanrossum nosy: +gvanrossum priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bug

[issue1684] CGIHTTPServer does not chdir prior to executing the CGI script

2007-12-21 Thread Fazal Majid
New submission from Fazal Majid: The CGI specification does not specify the working directory the CGI is invoked in, but the usual behavior is to use the directory containing the script. CGIHTTPServer should either change working directory by default (see patch below), or offer a hook to be call

[issue1684] CGIHTTPServer does not chdir prior to executing the CGI script

2007-12-21 Thread Martin v. Löwis
Martin v. Löwis added the comment: Can you give some reference to demonstrate that this is the usual behavior? -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]> __ __

[issue1684] CGIHTTPServer does not chdir prior to executing the CGI script

2007-12-21 Thread Fazal Majid
Fazal Majid added the comment: There isn't any normative reference that I know of, in fact the default behavior is different on Unix and Windows. Apache 2.2 (and most certainly older versions as well) implements this in mod_cgi.c. The relevant lines: /* Transmute ourselves into the script.

[issue1685] linecache .updatecache fails on utf8 encoded files

2007-12-21 Thread PyScripter
New submission from PyScripter: linecache.updatecache works as follows after it finds a module name: fp = open(fullname, 'rU') lines = fp.readlines() fp.close() It then tries to detect a file encoding comment... The problem is that readlines fails with a UnicodeDecodeError if the file is utf8

[issue1686] string.Template.safe_substitute fail when overriding pattern attribute

2007-12-21 Thread Hagai Gold
Changes by Hagai Gold: -- components: Library (Lib) files: string.py.diff nosy: hagaigold severity: normal status: open title: string.Template.safe_substitute fail when overriding pattern attribute versions: Python 3.0 Added file: http://bugs.python.org/file9024/string.py.diff

[issue1686] string.Template.safe_substitute fail when overriding pattern attribute

2007-12-21 Thread Hagai Gold
New submission from Hagai Gold: When overriding the pattern attribute on string.Template, with your own delimiters, exmp: change the ${..} to $@@..@@, safe_substitute method fail to restore the new delimiters, in case of keyerror. Problem is that the method return a specific value ==> """ retur