[issue12345] Add math.tau

2011-06-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: -1 -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue6056] socket.setdefaulttimeout affecting multiprocessing Manager

2011-06-15 Thread Derek Wilson
Derek Wilson added the comment: While having multiprocessing use a timeout would be great, I didn't really have the time to fiddle with the c code. Instead of using the socket timeout, I'm modifying all the sockets created by the socket module to have no timeout (and thus to be blocking) whic

[issue12345] Add math.tau

2011-06-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: Perhaps we should wait until \tau gains popularity larger than some impassioned physicist. \tau has been used to represent the golden ratio longer. -- nosy: +benjamin.peterson ___ Python tracker

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2011-06-15 Thread Eugene Toder
Eugene Toder added the comment: I found a problem in constant de-duplication, already performed by compiler, that needs to be fixed before this change can be merged. Compiler tries to eliminate duplicate constants by putting them into a dict. However, "duplicate" in this case doesn't mean ju

[issue12345] Add math.tau

2011-06-15 Thread Nick Coghlan
New submission from Nick Coghlan : I'd like to add a new constant to the math module: tau = 2*math.pi Rather than repeating all the reasons for why tau makes more sense than pi as the fundamental circle constant, I'll just refer interested readers to http://tauday.com/ -- keywords:

[issue5996] abstract class instantiable when subclassing dict

2011-06-15 Thread Eugene Toder
Eugene Toder added the comment: Anyone has any thoughts on this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12290] __setstate__ is called for false values

2011-06-15 Thread Eugene Toder
Eugene Toder added the comment: So how about this correction? -- keywords: +patch nosy: +belopolsky, georg.brandl Added file: http://bugs.python.org/file22375/setstate.diff ___ Python tracker _

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-06-15 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue12344] A kind of 'reinitialize_command' function which can initialize a command with key-value pair should be added for Command class

2011-06-15 Thread higery
New submission from higery : There is a 'reinitialize_command' function in setuptools' command class which can initialize a command with a key-value pair, but it seems that distutils2/packaging does not yet have this function. I think it's useful in the condition that we want to run some comma

[issue12343] Python 2.7.2 regression: ssl.SSLError: [Errno 2] _ssl.c:503: The operation did not complete (read)

2011-06-15 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : Combining non-blocking SSL sockets and "select()" raises "ssl.SSLError: [Errno 2] _ssl.c:503: The operation did not complete (read)" in Python 2.7.2, but works OK in 2.7.1, 2.6.* and previous. This test shows the issue: """ import ssl import socket import

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-06-15 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file22340/mbcs3.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-06-15 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file22315/mbcs2.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-06-15 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file22282/mbcs.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-06-15 Thread STINNER Victor
STINNER Victor added the comment: Patch version 4 (mbcs4.patch): - fix encode and decode flags depending on the code page and Windows version, e.g. use WC_ERR_INVALID_CHARS instead of WC_NO_BEST_FIT_CHARS for CP_UTF8 on Windows Vista and later - fix usage of the default character on encoding

[issue12340] Access violation when using the C version of the io module

2011-06-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: Can you produce a self-contained test case? -- nosy: +benjamin.peterson ___ Python tracker ___ _

[issue12000] SSL certificate verification failed if no dNSName entry in subjectAltName

2011-06-15 Thread Mads Kiilerich
Mads Kiilerich added the comment: Nicolas Bareil wrote, On 05/07/2011 09:48 AM: > Do you think this test should fail? Until now I have considered this behaviour OK but undocumented and officially unsupported in Python. One (the best?) reason for considering it OK is that if someone (intention

[issue12340] Access violation when using the C version of the io module

2011-06-15 Thread Santoso Wijaya
Santoso Wijaya added the comment: Regarding the crash, >From what I can see, the `tp_clear` method of bufferedrwpair is called during >Py_Finalize() that leads to garbage collection. This NULLs `self->writer` for >the rwpair object. Later, in the same garbage collection routine, the `tp_clea

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-06-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > pipe_interruptible.patch is a patch to support to making poll() > interruptible. It applies on top of pipe_poll_2.patch. Hmm, it seems to me that it should be done in _poll() instead. Otherwise, recv() will not be interruptible, will it? Also, after lookin

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-06-15 Thread Ned Deily
Ned Deily added the comment: It looks like that error message has been in _tkinter.c since 2002: http://svn.python.org/view/python/trunk/Modules/_tkinter.c?r1=28989&r2=28990&; I suppose it could be slightly more informative but it seems pretty unambiguous to me. Martin, any opinions? --

[issue12263] punycode codec ignores the error handler argument

2011-06-15 Thread STINNER Victor
STINNER Victor added the comment: punycode_errors.patch: - raise an error if errors="replace": only accept strict and ignore - use errors to encode/decode to/from ASCII - add unit tests I don't think that the change should be documented, because punycode has no section in Doc/library/codecs

[issue10883] urllib: socket is not closed explicitly

2011-06-15 Thread Nadeem Vawda
Nadeem Vawda added the comment: Yes, the fix I provided only eliminated some of the warnings. As of fd6446a88fe3, test_urllib2net still leaks 5 sockets. -- ___ Python tracker _

[issue12167] test_packaging reference leak

2011-06-15 Thread STINNER Victor
STINNER Victor added the comment: Note: #12133 has a patch to fix the ResourceWarning of test_pypi_simple. -- ___ Python tracker ___

[issue12167] test_packaging reference leak

2011-06-15 Thread STINNER Victor
STINNER Victor added the comment: test_dist and test_bdist_dumb leak because of the _path_created global variable of packaging.util, used indirectly by copy_tree(). # cache for by mkpath() -- in addition to cheapening redundant calls, # eliminates redundant "creating /foo/bar/baz" messages in

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-06-15 Thread STINNER Victor
STINNER Victor added the comment: > From the discussions here, http://wiki.tcl.tk/1364, it appears that Tcl > 8.5 (and earlier) does not support Unicode code points outside > the BMP range as in this example. Extract of http://wiki.tcl.tk/1364 : "RS 2008-07-09: Unicode out of BMP (> U+) re

[issue12167] test_packaging reference leak

2011-06-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset fd6446a88fe3 by Victor Stinner in branch 'default': Issue #12167: Fix a reafleak in packaging.tests.PyPIServer constructor http://hg.python.org/cpython/rev/fd6446a88fe3 -- ___ Python tracker

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-06-15 Thread Ned Deily
Ned Deily added the comment: >From the discussions here, http://wiki.tcl.tk/1364, it appears that Tcl 8.5 >(and earlier) does not support Unicode code points outside the BMP range as in >this example. I don't think there is anything practical IDLE or tkinter can do >about that. -- no

[issue10883] urllib: socket is not closed explicitly

2011-06-15 Thread STINNER Victor
STINNER Victor added the comment: Is there still something to do in this issue? The initial report is fixed. -- versions: -Python 2.6, Python 3.1 ___ Python tracker ___ ___

[issue12133] ResourceWarning in urllib.request

2011-06-15 Thread STINNER Victor
STINNER Victor added the comment: Oh, I wrote a similar patch to kill the ResourceWarning of test_pypi_simple (except that I didn't patch test_urllib2). -- nosy: +haypo versions: +Python 2.7, Python 3.2 ___ Python tracker

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-06-15 Thread STINNER Victor
STINNER Victor added the comment: U+1 is not the most common character in fonts. You should try another character in U+1-U+10 range (non-BMP characters). The new funny emoticon are in this range, but I don't know if your Ubuntu setup includes a font supporting this range. http://w

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2011-06-15 Thread Dave Malcolm
Dave Malcolm added the comment: [for reference: issue 11743 covered Antoine's rewrite of the connection class to be pure python, for 3.3 (re msg138310)] -- ___ Python tracker _

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-06-15 Thread R. David Murray
R. David Murray added the comment: Judging from the stack trace, it isn't str.format that's failing, it's tk failing to display it. -- nosy: +r.david.murray, terry.reedy title: characters with ord above 65535 fail conversion with str.format for '{:c}' in IDLE -> characters with ord ab

[issue12342] characters with ord above 65535 fail conversion with str.format for '{:c}' in IDLE

2011-06-15 Thread wujek
New submission from wujek : The following code produces an exception: print('{:c}'.format(65536)) when executed in Idle 3.2. The stack trace: >>> print('{:c}'.format(65536)) Traceback (most recent call last): File "", line 1, in print('{:c}'.format(65536)) File "/usr/lib/python3.2/idl

[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-06-15 Thread Sandro Tosi
Sandro Tosi added the comment: Here's the updated patch following review on Rietveld -- Added file: http://bugs.python.org/file22372/shutil_chown-default-v3.patch ___ Python tracker ___

[issue1711800] SequenceMatcher bug with insert/delete block after "replace"

2011-06-15 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue1711800] SequenceMatcher bug with insert/delete block after "replace"

2011-06-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe this issue should be closed and have set it to pending. The original report of a 'bug' and the two 'testcases' were and are invalid as they are based on an incorrect understanding of SequenceMatcher. It is not a diff program and in particular not a

[issue12341] Some additions to .hgignore

2011-06-15 Thread Michael Foord
Changes by Michael Foord : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12341] Some additions to .hgignore

2011-06-15 Thread Sandro Tosi
New submission from Sandro Tosi : following http://docs.python.org/devguide/coverage.html doc you'll end up with several "new" files/dirs in your checkout: - .coverage, used by coveragepy to save its info - coverage/ , the symlink to coveragepy/coverage - htmlcov/ , the dir where the coverage HT

[issue11102] configure doesn't find "major()" on HP-UX v11.31

2011-06-15 Thread R. David Murray
R. David Murray added the comment: Well, one way might be to set up and maintain an HP/UX buildbot :) Other than that, just keep bugging us periodically until someone gets around to doing it. -- nosy: +r.david.murray stage: -> commit review type: -> compile error __

[issue11435] Links to source code should now point to hg repo

2011-06-15 Thread Éric Araujo
Éric Araujo added the comment: The 2.7 docs link to the Subversion repo. Can I update them? -- nosy: +eric.araujo versions: +Python 2.7 ___ Python tracker ___ _

[issue12340] Access violation when using the C version of the io module

2011-06-15 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue1711800] SequenceMatcher bug with insert/delete block after "replace"

2011-06-15 Thread R. David Murray
R. David Murray added the comment: No need to apologize for the bump. The trick is catching the interest of someone who feels qualified to judge the patch. I've added a couple people to nosy who worked on difflib recently. If no one speaks up in the next few days, it might be time to post

[issue12340] Access violation when using the C version of the io module

2011-06-15 Thread OscarL
New submission from OscarL : This is on Windows XP SP2. Using Python 2.7.1 and 2.7.2. While executing the unit tests of the PySerial package, version 2.5 (http://pypi.python.org/pypi/pyserial) one of the tests fails when using the C version of the io module ("io"), but pass if the pure Python

[issue12314] regrtest checks (os.environ, sys.path, etc.) are hard to use

2011-06-15 Thread R. David Murray
R. David Murray added the comment: Sounds like a plan. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue8668] Packaging: add a 'develop' command

2011-06-15 Thread Peter Waller
Changes by Peter Waller : -- nosy: +Peter.Waller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue1711800] SequenceMatcher bug with insert/delete block after "replace"

2011-06-15 Thread Peter Waller
Peter Waller added the comment: Apologies for the bump, but it has been more than a year and I did attach a patch! :-) What next? -- ___ Python tracker ___ _

[issue11934] build with --prefix=/dev/null and zlib enabled in Modules/Setup failed

2011-06-15 Thread ysj.ray
ysj.ray added the comment: Isn’t zlib built by setup.py anyway? If can be build by Modules/Setup first as a builtin module, then the setup.py woun't build it. -- ___ Python tracker _

[issue12314] regrtest checks (os.environ, sys.path, etc.) are hard to use

2011-06-15 Thread Michael Foord
Michael Foord added the comment: I don't think this is something that belongs in unittest - it's not something particularly useful (or at least particularly requested) outside of the python test suite. No reason that a WatchfulTestRunner couldn't live in regrtest. --

[issue12335] pysetup create: ask before moving an existing setup.cfg

2011-06-15 Thread Éric Araujo
Éric Araujo added the comment: > Maybe we should ask first if it's ok to create a new setup.cfg and > rename the old one, *before* doing it. Agreed, if “yes” is the default answer. -- title: pysetup create will clobber an existing setup.cfg -> pysetup create: ask before moving an exis

[issue12335] pysetup create will clobber an existing setup.cfg

2011-06-15 Thread Tarek Ziadé
Tarek Ziadé added the comment: I find this behavior a bit awkward. Maybe we should ask first if it's ok to create a new setup.cfg and rename the old one, *before* doing it. -- ___ Python tracker _

[issue12335] pysetup create will clobber an existing setup.cfg

2011-06-15 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jun 15, 2011, at 02:04 PM, Éric Araujo wrote: >Well, create is not update :) In its current form, create will save an >existing setup.cfg as setup.cfg.old and generate a new one. The human >operator will then have to merge both files if necessary. Automat

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2011-06-15 Thread Éric Araujo
Éric Araujo added the comment: Thanks. Have you run the test suite to make sure this doesn’t add bugs? -- assignee: tarek -> eric.araujo components: -Build, Installation, Library (Lib) stage: -> test needed type: compile error -> behavior versions: +Python 3.3 -Python 3.1 __

[issue12335] pysetup create will clobber an existing setup.cfg

2011-06-15 Thread Éric Araujo
Éric Araujo added the comment: Well, create is not update :) In its current form, create will save an existing setup.cfg as setup.cfg.old and generate a new one. The human operator will then have to merge both files if necessary. Automatically merging the old file into the new one would ra

[issue9741] msgfmt.py generates invalid mo because msgfmt.make() does not clear dictionary

2011-06-15 Thread Éric Araujo
Éric Araujo added the comment: Thanks! In my latest message, I had forgotten that msgfmt was in Tools, not in the standard library, and as such has no automated regression tests. Features get added and bugs get fixed after manual testing only, so I will commit your patch (modulo the unneede

[issue12339] logging.Formatter.format() assumes exception to support str() method which is not true for many libraries.

2011-06-15 Thread Vinay Sajip
Vinay Sajip added the comment: This is happening because if you pass an object instead of a string as the first argument in a logging call, it's treated as a message object whose __str__() will be called to get the actual message when it's needed, as documented here: http://docs.python.org/h

[issue9741] msgfmt.py generates invalid mo because msgfmt.make() does not clear dictionary

2011-06-15 Thread Timothy Lee
Changes by Timothy Lee : Added file: http://bugs.python.org/file22370/test2.po ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue9741] msgfmt.py generates invalid mo because msgfmt.make() does not clear dictionary

2011-06-15 Thread Timothy Lee
Changes by Timothy Lee : Added file: http://bugs.python.org/file22369/test1.po ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue9741] msgfmt.py generates invalid mo because msgfmt.make() does not clear dictionary

2011-06-15 Thread Timothy Lee
Changes by Timothy Lee : Added file: http://bugs.python.org/file22368/test_msgfmt.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11934] build with --prefix=/dev/null and zlib enabled in Modules/Setup failed

2011-06-15 Thread R. David Murray
R. David Murray added the comment: I normally build using --prefix, often with --prefix=/dev/null, and I can't recall any version not building zlib. Of course, I don't uncomment the zlib entry in Modules/Setup. As far as I can see the zlib entry is unique in Setup in using prefix, so it pro

[issue12339] logging.Formatter.format() assumes exception to support str() method which is not true for many libraries.

2011-06-15 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue12339] logging.Formatter.format() assumes exception to support str() method which is not true for many libraries.

2011-06-15 Thread Piotr Czachur
New submission from Piotr Czachur : If I want my application to be bullet-proof against external libraries that can (and often do) raise Exception(u'nonascii'), I cannot use python's logger.exception() directly, as it will end up with UnicodeDecodeError. The reason is hidden in Formatter.form

[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

2011-06-15 Thread R. David Murray
R. David Murray added the comment: The code you are suggesting patching is trying its best to return a length. If that code needs to be fixed to not throw an error when confronted with a StringIO, then it should do its best to return a length. Your original message on the ticket did not men

[issue7969] shutil.copytree error handling non-standard and partially broken

2011-06-15 Thread Éric Araujo
Éric Araujo added the comment: See also http://mail.python.org/pipermail/docs/2010-August/001207.html for a similar report. -- ___ Python tracker ___ ___

[issue11113] html.entities mapping dicts need updating?

2011-06-15 Thread Éric Araujo
Éric Araujo added the comment: Ah, this changes the situation. I suppose it’s too late to stop pretending that HTML and XHTML are nearly the same thing (IOW change the doc), so apos needs to be defined for XHTML. IMO, we need a way to have the right entity references for HTML 4.01, XHTML 1.0

[issue12313] make install misses packaging module

2011-06-15 Thread Éric Araujo
Éric Araujo added the comment: > Nice to see my search didn't find this bug. ;) Do you remember what search terms you tried? > I already committed a change to install packaging, but you may want to > revert that and commit the patch in this issue. I honestly don’t know. Do we have a policy abo

[issue12338] multiprocessing.util._eintr_retry doen't recalculate timeouts

2011-06-15 Thread sbt
New submission from sbt : multiprocessing.util._eintr_retry is only used to wrap select.select, but it fails to recalculate timeouts. Also, it will never retry the function it wraps because of a missing "import errno". I think it would be better to just implement the retrying version of selec

[issue12328] multiprocessing's overlapped PipeConnection on Windows

2011-06-15 Thread sbt
sbt added the comment: pipe_interruptible.patch is a patch to support to making poll() interruptible. It applies on top of pipe_poll_2.patch. I am not sure what the guarantees are for when KeyboardInterrupt will be raised. I would have done it a bit differently if I knew a good way to test w

[issue12337] Need real TextIOWrapper for stdin/stdout

2011-06-15 Thread STINNER Victor
STINNER Victor added the comment: Note: Python 3.2 has another regression related to the Windows console (issue #11395), bug fixed in 3.2.1. -- ___ Python tracker ___ _

[issue12337] Need real TextIOWrapper for stdin/stdout

2011-06-15 Thread STINNER Victor
STINNER Victor added the comment: I think that this issue is a duplicate of the issue #11272: Python 3.2.1 has been released recently and contains the fix. Can you try this version Fan? -- ___ Python tracker

[issue12337] Need real TextIOWrapper for stdin/stdout

2011-06-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: I can't reproduce. Victor? Z:\default>PCbuild\amd64\python_d.exe Python 3.3a0 (default, Jun 8 2011, 17:49:13) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.stdin.readline()

[issue11934] build with --prefix=/dev/null and zlib enabled in Modules/Setup failed

2011-06-15 Thread Petri Lehtinen
Petri Lehtinen added the comment: FWIW, I recall that I built 2.7 a while back with --prefix=/home/user/something and it also failed to find zlib. Due to lack of time, I didn't debug it very deeply then, though. -- ___ Python tracker

[issue11147] _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h

2011-06-15 Thread Jelte
Changes by Jelte : -- nosy: +Tjebbe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue12327] in HTTPConnection the are len(body) and TypeError catch exception to detect if body is file like object, this hack do work with StringIO object

2011-06-15 Thread harobed
harobed added the comment: > But if the len information is available, why not return it? I use HTTPConnection to simulate Apple Finder WebDAV client. When this WebDAV client do PUT request, it transmit data in chunked encoding mode and not set Content-Length HTTP field. Do you understand my c

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2011-06-15 Thread harobed
harobed added the comment: > Now I'm confused. Per the HTTP specification, GET requests don't have a body, so "Transfer-Encoding: chunked" doesn't apply to them. > Are you sure you don't confuse with the response that the server sends? In responses, "Transfer-Encoding: chunked" is very common.