[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-10 Thread Vinay Sajip
Vinay Sajip added the comment: Senthil: Almost, but not quite. end_headers() needs to be called even if send_header() isn't called (though it may be being called behind the scenes, that's not necessarily obvious to a user). In my original unit-testing code, I had only request.send_response(2

[issue12046] Windows build identification incomplete

2011-05-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ned: I agree this is desirable (i.e. the shipped binaries ought to carry proper build identification). I also think this is independent from this issue, though, since the changes to integrate build identification into the window build process won't be unrela

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d59ec3aa442e by Senthil Kumaran in branch 'default': Issue #12039 - Update the http.server.rst with the requirement to call `end_headers` after calling `send_header`. http://hg.python.org/cpython/rev/d59ec3aa442e -- __

[issue8824] Improve documentation of exec

2011-05-10 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2857] add codec for java modified utf-8

2011-05-10 Thread Adal Chiriliuc
Adal Chiriliuc added the comment: I use the hachoir Python package to parse Java .class files and extract the strings from them and having support for Java modified UTF-8 would have been nice. -- nosy: +adalx ___ Python tracker

[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-05-10 Thread STINNER Victor
STINNER Victor added the comment: Issue fixed in Python 3.1, 3.2, 3.3. Thanks to Arfrever, I realized that this issue not only concerns the compilation of Python itself with a non-ASCII prefix (issue #6011), but the installation of any Python script containing a non-ASCII character. So I also

[issue6011] python doesn't build if prefix contains non-ascii characters

2011-05-10 Thread STINNER Victor
STINNER Victor added the comment: I fixed #10419 in Python 3.2 and 3.3 (I applied my copy_script-2.patch fix). It is now possible to compile and install Python 3.2 and 3.3 with a non-ASCII prefix, so this issue can be done. If you have issues when compiling Python with a non-ASCII prefix (and

[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset fd7d4639dae2 by Victor Stinner in branch '3.1': Issue #10419: Fix build_scripts command of distutils to handle correctly http://hg.python.org/cpython/rev/fd7d4639dae2 -- ___ Python tracker

[issue11169] compileall doesn't support PEP 383 (undecodable paths/filenames)

2011-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 85cfbbc7da60 by Victor Stinner in branch '3.2': Issue #11169: compileall module uses repr() to format filenames and paths to http://hg.python.org/cpython/rev/85cfbbc7da60 -- nosy: +python-dev ___ Python

[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47236a0cfb15 by Victor Stinner in branch '3.2': Close #10419, issue #6011: build_scripts command of distutils handles correctly http://hg.python.org/cpython/rev/47236a0cfb15 -- ___ Python tracker

[issue12051] Segfaults in _json while encoding objects

2011-05-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue12051] Segfaults in _json while encoding objects

2011-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset a21f5af476cb by Ezio Melotti in branch '2.7': #12051: Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations. http://hg.python.org/cpython/rev/a21f5af476cb New changeset 9557e4eeb291 by Ezio Melotti in branch '

[issue6011] python doesn't build if prefix contains non-ascii characters

2011-05-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6ad356525381 by Victor Stinner in branch 'default': Close #10419, issue #6011: build_scripts command of distutils handles correctly http://hg.python.org/cpython/rev/6ad356525381 -- ___ Python tracker <

[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6ad356525381 by Victor Stinner in branch 'default': Close #10419, issue #6011: build_scripts command of distutils handles correctly http://hg.python.org/cpython/rev/6ad356525381 -- nosy: +python-dev resolution: -> fixed stage: -> committe

[issue11888] Add C99's log2() function to the math library

2011-05-10 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 34871c3072c9 by Victor Stinner in branch 'default': > Issue #11888: skip some log2 tests on Mac OS X Tiger Oh... I realized that the test doesn't fail on Mac OS X Tiger PPC, only on Mac OS X Tiger x86. But I am too lazy to patch the test. Or sh

[issue12014] str.format parses replacement field incorrectly

2011-05-10 Thread Ben Wolfson
Ben Wolfson added the comment: Actually, that's the wrong place in MarkupIterator_next to include that loop. The attached diff has it in the right place. The results of "make test" here are: 328 tests OK. 1 test failed: test_unicode 25 tests skipped: test_codecmaps_cn test_codecmaps_h

[issue8824] Improve documentation of exec

2011-05-10 Thread Jordan Stadler
Jordan Stadler added the comment: Patches for 2.x and 3.x documentation related to 'exec'. 2.x Provides more information about scopes when using additional expressions for 'exec'. 2.x documentation for 'exec' is found in reference/simple_stmts. 3.x Provides more information about scopes

[issue6727] ImportError when package is symlinked on Windows

2011-05-10 Thread Jason R. Coombs
Jason R. Coombs added the comment: Updated script to run under Python 3.2 as well. -- Added file: http://bugs.python.org/file21962/test_import_symlink_package.py ___ Python tracker _

[issue6727] ImportError when package is symlinked on Windows

2011-05-10 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file21959/test_import_symlink_package.py ___ Python tracker ___ ___ Python-bu

[issue6727] ImportError when package is symlinked on Windows

2011-05-10 Thread Jason R. Coombs
Jason R. Coombs added the comment: Confirmed the issue exists on Python 2.7 and 3.2 -- versions: +Python 2.7, Python 3.2 ___ Python tracker ___ __

[issue8824] Improve documentation of exec

2011-05-10 Thread Jordan Stadler
Changes by Jordan Stadler : Added file: http://bugs.python.org/file21961/exec_doc_touchup_3_x.patch ___ Python tracker ___ ___ Python-bugs-list

[issue8824] Improve documentation of exec

2011-05-10 Thread Jordan Stadler
Changes by Jordan Stadler : -- keywords: +patch Added file: http://bugs.python.org/file21960/exec_doc_touchup_2_x.patch ___ Python tracker ___

[issue6727] ImportError when package is symlinked on Windows

2011-05-10 Thread Jason R. Coombs
Jason R. Coombs added the comment: I updated the test script to avoid the error when the .pyc (or __pycache__) is created. -- Added file: http://bugs.python.org/file21959/test_import_symlink_package.py ___ Python tracker

[issue6727] ImportError when package is symlinked on Windows

2011-05-10 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file14741/test_import_symlink_package.py ___ Python tracker ___ ___ Python-bu

[issue11888] Add C99's log2() function to the math library

2011-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34871c3072c9 by Victor Stinner in branch 'default': Issue #11888: skip some log2 tests on Mac OS X Tiger http://hg.python.org/cpython/rev/34871c3072c9 -- ___ Python tracker

[issue6727] ImportError when package is symlinked on Windows

2011-05-10 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks for that. The output is very telling. First, it shows there's a bug in the test script where an exception occurs when it succeeds because a .pyc file is created and not properly cleaned up. Second, it demonstrates that the bug as I reported it is not

[issue12054] test_socket: replace custom _get_unused_port() by support.find_unused_port()

2011-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: An obvious one indeed, thank you :) -- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue12054] test_socket: replace custom _get_unused_port() by support.find_unused_port()

2011-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 695a7acae392 by Antoine Pitrou in branch '3.2': Issue #12054: use support.find_unused_port() instead of reinventing the wheel http://hg.python.org/cpython/rev/695a7acae392 New changeset 1b9d6226a3dd by Antoine Pitrou in branch 'default': Issue #120

[issue9971] Optimize BufferedReader.readinto

2011-05-10 Thread John O'Connor
Changes by John O'Connor : Removed file: http://bugs.python.org/file21957/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue12054] test_socket: replace custom _get_unused_port() by support.find_unused_port()

2011-05-10 Thread Charles-François Natali
New submission from Charles-François Natali : Lib/test/test_socket.py uses custom _get_unused_port to return a port which will be likely available for binding in some tests. The same functionality is already provided by support.find_unuse_port, let's make use of it. Patch attached. --

[issue11888] Add C99's log2() function to the math library

2011-05-10 Thread Mark Dickinson
Mark Dickinson added the comment: Victor, what do you think about simply #undefining HAVE_LOG2 on Tiger (e.g. in pyport.h), so that the fallback log2 version is used there instead of the system version? Does anyone know the appropriate preprocessor check for OS X <= 10.4? I can get as far a

[issue1350] IDLE - CallTips enhancement - show full doc-string in new window

2011-05-10 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Rejecting for now, out of date, doesn't apply, not single topic. -- resolution: out of date -> rejected stage: test needed -> committed/rejected status: open -> closed ___ Python tracker

[issue11888] Add C99's log2() function to the math library

2011-05-10 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Roumen. Fixed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11888] Add C99's log2() function to the math library

2011-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d3f9895e2e19 by Mark Dickinson in branch 'default': Issue #11888: remove duplicate check for log2 in configure.in. http://hg.python.org/cpython/rev/d3f9895e2e19 -- ___ Python tracker

[issue12053] Add prefetch() for Buffered IO (experiment)

2011-05-10 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11888] Add C99's log2() function to the math library

2011-05-10 Thread Roumen Petrov
Roumen Petrov added the comment: Why configure script check two times for log2 function ? -- nosy: +rpetrov ___ Python tracker ___ __

[issue12049] expose RAND_bytes() function of OpenSSL

2011-05-10 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue9971] Optimize BufferedReader.readinto

2011-05-10 Thread John O'Connor
John O'Connor added the comment: No problem for me either way. I created issue12053 to track that. - John O'Connor On Tue, May 10, 2011 at 3:19 PM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > > Also, while we're at it, would it be worthwhile for me to make a patch > > fo

[issue12053] Add prefetch() for Buffered IO (experiment)

2011-05-10 Thread John O'Connor
New submission from John O'Connor : A prefetch() method for Buffered IO may greatly assist 3rd party buffering among other gains. If nothing else, it is worth experimenting with. Discussion on the topic is here: http://mail.python.org/pipermail/python-ideas/2010-September/008180.html A summa

[issue8824] Improve documentation of exec

2011-05-10 Thread Jordan Stadler
Jordan Stadler added the comment: I'm going to update the documentation to include the scope information. Should be done within a day. -- nosy: +jstadler ___ Python tracker ___

[issue9971] Optimize BufferedReader.readinto

2011-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Also, while we're at it, would it be worthwhile for me to make a patch > for the prefech() method you proposed? Should a separate issue be > created for that? I know there was no definitive answer in the email > thread but it may be fun to experiment with as w

[issue12051] Segfaults in _json while encoding objects

2011-05-10 Thread Ezio Melotti
Ezio Melotti added the comment: New patch fixes two more segfaults while encoding highly-nested objects. Updated the issue title accordingly. -- title: Segfault in JSONEncoder subclasses with check_circular=False -> Segfaults in _json while encoding objects Added file: http://bugs.pyth

[issue9971] Optimize BufferedReader.readinto

2011-05-10 Thread John O'Connor
John O'Connor added the comment: Victor: AFAIK its not actually downcasting. The safe downcast just uses an assertion when debugging is enabled. I chose to use it because it seems to be a convention in the file. Antoine: You say quirky, I say elegant :) Though I have no problem changing it.

[issue12052] round() erroneous for some large arguments

2011-05-10 Thread Mark Dickinson
Mark Dickinson added the comment: (Duplicate of issue 7070.) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12052] round() erroneous for some large arguments

2011-05-10 Thread Mark Dickinson
Mark Dickinson added the comment: Please upgrade: this issue is already fixed in current versions of Python. -- nosy: +mark.dickinson resolution: -> out of date status: open -> closed ___ Python tracker

[issue12052] round() erroneous for some large arguments

2011-05-10 Thread Neil
New submission from Neil : round() returns incorrect results for certain large real-integer arguments. Demonstration via interpreter session: >>> x = 2.0**52+1 # Huge, odd double integer near limits of what IEEE format >>> can fully represent in its mantissa part >>> round(x) - x # Differenc

[issue12050] unconsumed_tail of zlib.Decompress is not always cleared on decompress() call

2011-05-10 Thread Nadeem Vawda
Nadeem Vawda added the comment: Thanks for the bug report. It seems that the code needs fixing. I'll look into it this weekend. -- assignee: -> nadeem.vawda nosy: +nadeem.vawda stage: -> needs patch versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6 ___

[issue8498] Cannot use backlog = 0 for sockets

2011-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed, thanks for the patch and review! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker

[issue8498] Cannot use backlog = 0 for sockets

2011-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 48743ad2d2ef by Antoine Pitrou in branch '2.7': Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in http://hg.python.org/cpython/rev/48743ad2d2ef New changeset 713006ecee0c by Antoine Pitrou in branch '3.2': Issue #8498: In so

[issue6727] ImportError when package is symlinked on Windows

2011-05-10 Thread Waldemar Kornewald
Waldemar Kornewald added the comment: I'm using Python 2.6.6 on Windows 7 Professional with the latest service pack. My system is pretty bare bones. Do you have Visual Studio or the Visual Studio Redistributables? Here's the output of your script (the last exception seems to be caused by the

[issue6727] ImportError when package is symlinked on Windows

2011-05-10 Thread Brian Curtin
Brian Curtin added the comment: Out of the patches listed, http://www.microsoft.com/technet/security/advisory/2269637.mspx is the only part that appears to be related in any way, although it doesn't specify a whole lot on the surface. The title is "Insecure Library Loading Could Allow Remote

[issue6727] ImportError when package is symlinked on Windows

2011-05-10 Thread Jason R. Coombs
Jason R. Coombs added the comment: And since you seem to have some systems that honor symlinked packages, can you run the attached test_import_symlink_package.py and report the results? -- ___ Python tracker _

[issue6727] ImportError when package is symlinked on Windows

2011-05-10 Thread Jason R. Coombs
Jason R. Coombs added the comment: That's interesting. You're saying that you've been using symlinked packages for some time and that it works for you. I filed this bug because it's never worked for me. Can you describe a little bit about the environment in which you've encountered this? Spec

[issue12051] Segfault in JSONEncoder subclasses with check_circular=False

2011-05-10 Thread Ezio Melotti
New submission from Ezio Melotti : Subclasses of JSONEncoder that use check_circular=False can segfault json: >>> import json >>> class EndlessJSONEncoder(json.JSONEncoder): ... def default(self, o): ... return [o] ... >>> EndlessJSONEncoder(check_circular=False).encode(5j) Segmentat

[issue12044] subprocess.Popen.__exit__ doesn't wait for process end

2011-05-10 Thread Charles-François Natali
Charles-François Natali added the comment: There's just one thing I'm concerned with. People using context managers tend to expect the __exit__ method to perform cleanup actions and release corresponding resources if necessary, for example closing the underlying file or socket. So my guess is th

[issue6727] ImportError when package is symlinked on Windows

2011-05-10 Thread Brian Curtin
Brian Curtin added the comment: Don't do anything you're not comfortable with. If you can get your system to whatever state it was in the past where things worked properly, feel free to dig into it. I will try to look into this situation and see if there's anything in these security updates t

[issue6727] ImportError when package is symlinked on Windows

2011-05-10 Thread Waldemar Kornewald
Waldemar Kornewald added the comment: I uninstalled these three security patches: * KB2467173: http://support.microsoft.com/kb/2467173 * KB2467174: http://support.microsoft.com/kb/2467174 * KB2467175: http://support.microsoft.com/kb/2467175 Without those patches symlinked packages work for me.

[issue6727] ImportError when package is symlinked on Windows

2011-05-10 Thread Brian Curtin
Brian Curtin added the comment: Are you able to narrow it down to which security update(s) caused the breakage? -- ___ Python tracker ___

[issue6727] ImportError when package is symlinked on Windows

2011-05-10 Thread Waldemar Kornewald
Waldemar Kornewald added the comment: Symlinked packages used to work on Windows until recently, but a few days ago Microsoft published a few security patches and things stopped working. On my local machine I uninstalled all Visual C++ Runtime library patches (they were installed automaticall

[issue12011] The signal module should raise OSError for OS-related exceptions, not RuntimeError

2011-05-10 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue12011] The signal module should raise OSError for OS-related exceptions, not RuntimeError

2011-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset b86b39211ef1 by Victor Stinner in branch 'default': Issue #12011: signal.signal() and signal.siginterrupt() raise an OSError, http://hg.python.org/cpython/rev/b86b39211ef1 -- nosy: +python-dev ___ Python

[issue11959] smtpd cannot be used without affecting global state

2011-05-10 Thread Vinay Sajip
Vinay Sajip added the comment: The overridden create_socket() method will have the same behaviour for the case when a socket map is *not* passed in to smtpd.__init__(). Users using the existing signature for the constructor will cause the sockmap instance attribute to be set to None, and this

[issue4709] Mingw-w64 and python on windows x64

2011-05-10 Thread Ruben Van Boxem
Ruben Van Boxem added the comment: Has anyone looked at this? I'm trying to build gdb with Python enabled with mingw-w64 (Python 2.7.1 with manually created import libraries), but have to manually define MS_WIN64 in the CFLAGS. The patch only does what's right (i.e. define a macro that should

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-05-10 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Tcl/Tk uses modified utf-8 internally. This includes using 0xC080, a multibyte Unicode null character, for embedded nulls that work with C's null terminated strings. Java does the same. Note that typing Ctrl-space and Ctrl-2 are conventional ways to enter a

[issue12011] The signal module should raise OSError for OS-related exceptions, not RuntimeError

2011-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Patch: signal.signal() and signal.siginterrupt() raise an OSError, > instead of a RuntimeError: OSError has an errno attribute. > > -- > keywords: +patch > Added file: http://bugs.python.org/file21939/signal_oserror.patch Looks good to me. -

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Tue, May 10, 2011 at 02:06:48PM +, Vinay Sajip wrote: > @Senthil - are you planning to make the documentation change, or should I? I shall do it, Vinay. Thanks! -- ___ Python tracker

[issue11979] Minor improvements to the Sockets readme: typos, wording and sphinx features usage

2011-05-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2011-05-10 Thread Brian Curtin
Brian Curtin added the comment: Issues with Regexp should probably be handled on the Regexp tracker. -- nosy: +brian.curtin ___ Python tracker ___ ___

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2011-05-10 Thread Jonathan Halcrow
Jonathan Halcrow added the comment: It seems that _regex_unicode.c is missing from setup.py, adding it to ext_modules fixes my previous issue. -- ___ Python tracker ___

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-10 Thread Vinay Sajip
Vinay Sajip added the comment: @Senthil - are you planning to make the documentation change, or should I? -- ___ Python tracker ___ _

[issue1046092] HTMLParser fix to accept malformed tag attributes

2011-05-10 Thread Ezio Melotti
Ezio Melotti added the comment: For the record, the new issue is #12008. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2011-05-10 Thread Jonathan Halcrow
Jonathan Halcrow added the comment: I'm having a problem using the current version (0.1.20110504) with python 2.5 on OSX 10.5. When I try to import regex I get the following import error: dlopen(/python2.5/site-packages/_regex.so, 2): Symbol not found: _re_is_same_char_ign Referenced from:

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-10 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: I don't agree with you and i don't believe it is implemented like that. But it seems i am the only one on this issue who sees it like that. Thus i apply 11877.6.diff. > Declaring variables as "auto" is not necessary in C code and not > used anywhere e

[issue9971] Optimize BufferedReader.readinto

2011-05-10 Thread STINNER Victor
STINNER Victor added the comment: +Py_SAFE_DOWNCAST(READAHEAD(self), Py_off_t, Py_ssize_t) Why downcasting the size? Can't you store the size into a Py_off_t? I suppose that sizeof(Py_off_t) >= sizeof(Py_ssize_t). -- ___ Python tracker

[issue12050] unconsumed_tail of zlib.Decompress is not always cleared on decompress() call

2011-05-10 Thread Takeshi Yoshino
New submission from Takeshi Yoshino : http://docs.python.org/library/zlib.html says "If max_length is not supplied then the whole input is decompressed, and unconsumed_tail is an empty string." However, if there's preceding decompress call with max_length specified, unconsumed_tail will not be

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Tue, May 10, 2011 at 09:12:58AM +, Vinay Sajip wrote: > Either omitting the end_headers() call was always an error but > previously undetected, or the requirement to always call > end_headers() is new and this should be documented. I'm not sure > which o

[issue12046] Windows build identification incomplete

2011-05-10 Thread Ned Deily
Ned Deily added the comment: Note, the Unix build only identifies itself like that if there is a working copy of hg on $PATH at configure time. If not, the version string also silently defaults to "default". That requirement creates a bit of a problem for the OS X installer build script sin

[issue9971] Optimize BufferedReader.readinto

2011-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, the Java-like version actually seems quite interesting. -- ___ Python tracker ___ ___ Py

[issue1195] Problems on Linux with Ctrl-D and Ctrl-C during raw_input

2011-05-10 Thread Ralf Schmitt
Ralf Schmitt added the comment: Either you clearerr or you can't rely on feof. fgets might also set the end of file indicator *and* return valid data. I don't see a reason to not call clearerr right before trying to read from the stream. -- ___ Pyt

[issue9971] Optimize BufferedReader.readinto

2011-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Based on the above I think you are right about using the internal buffer > regardless (revision attached). You pay a price with larger buffer sizes but > on > balance it seems to be a much better general purpose solution. The java-like > solution is decent a

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-10 Thread Vinay Sajip
Vinay Sajip added the comment: The errors seem to have gone away now, but there is still apparently a behaviour change - previously there was no error when a end_headers() call was omitted when handling a request, but now apparently an end_headers() call is needed to avoid the error. Either

[issue12044] subprocess.Popen.__exit__ doesn't wait for process end

2011-05-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, no, looks ok for me then :) -- resolution: -> rejected status: pending -> closed ___ Python tracker ___

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2011-05-10 Thread Jens Grivolla
Changes by Jens Grivolla : -- nosy: +Jens.Grivolla ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 204e027dfa98 by Vinay Sajip in branch 'default': Issue #12039: Add end_headers() call to avoid BadStatusLine. http://hg.python.org/cpython/rev/204e027dfa98 -- ___ Python tracker

[issue12049] expose RAND_bytes() function of OpenSSL

2011-05-10 Thread STINNER Victor
New submission from STINNER Victor : The _ssl module has RAND_add() RAND_status() and RAND_egd() functions, but not RAND_bytes(). I would be nice to be able to generate random bytes using RAND_bytes(). And maybe also RAND_pseudo_bytes()? I will work on a patch, it's just a reminder.

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-10 Thread yaoyu
New submission from yaoyu : Python 3, ZipFile Bug In Chinese: 1. In Python3.1.3 can't extract "复件 test.txt" from test.zip ╕┤╝■ test.txt Traceback (most recent call last): File "C:\Temp\PythonZipTest\pythonzip.py", line 14, in main() File "C:\Temp\PythonZipTest\pythonzip.py", line 11, in

[issue12047] Expand the style guide

2011-05-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue12047] Expand the style guide

2011-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 50a5e271edf9 by Raymond Hettinger in branch '2.7': Issue 12047: Expand the style guide. http://hg.python.org/cpython/rev/50a5e271edf9 -- ___ Python tracker __

[issue12047] Expand the style guide

2011-05-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d5d91b14b238 by Raymond Hettinger in branch '3.2': Issue 12047: Expand the style guide. http://hg.python.org/cpython/rev/d5d91b14b238 -- nosy: +python-dev ___ Python tracker

[issue12047] Expand the style guide

2011-05-10 Thread Georg Brandl
Georg Brandl added the comment: And I sincerely hope we don't have any docs that say "if you don't know what this is, you don't need it" instead of an explanation :) -- ___ Python tracker

[issue12047] Expand the style guide

2011-05-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: > there's a "talk down them" which looks funny to me in this word order. It was missing a word. Should be "talk down to them". Thanks for spotting this -- I fix it in the commit. > One question: I could imagine wording like > "this is rarely needed" ins

[issue12039] test_logging: bad file descriptor on FreeBSD bot

2011-05-10 Thread Vinay Sajip
Vinay Sajip added the comment: Additional information point for Senthil: In the case where the BadStatusLine is raised, the server is sending a 200 OK status response but there is no actual response data - only headers. -- ___ Python tracker