[issue6791] httplib read status memory usage

2009-08-28 Thread sumar
New submission from sumar m.sucaj...@gmail.com: During writing some code I discovered some behaviour of httplib. When we connect to host, which doesn’t respond with status line, but it just sending data, httplib may consume more and more memory, becouce when we execute h =

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2009-08-28 Thread erluk
New submission from erluk er...@pargalaxy.de: An installer for source-only modules created using distutils (bdist_wininst) will only detect 32bit installations of Python on 64bit Windows machines. Expected behaviour: The installer lists 32bit and 64bit installations of Python on the machine.

[issue6791] httplib read status memory usage

2009-08-28 Thread sumar
sumar m.sucaj...@gmail.com added the comment: I've also check patch against code in svn tree: wget http://svn.python.org/projects/python/trunk/Lib/httplib.py patch -p0 -i httplib.patch --dry-run patching file httplib.py Hunk #1 succeeded at 209 (offset 54 lines). Hunk #2 succeeded at 303 (offset

[issue6793] decimal.py: div_nearest == _div_nearest

2009-08-28 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: --- a-decimal.py2009-08-28 11:48:45.0 +0200 +++ b-decimal.py2009-08-28 11:49:47.0 +0200 @@ -4845,7 +4845,7 @@ log_tenpower = f*M # exact else: log_d = 0 # error 2.31 -

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2009-08-28 Thread RonnyPfannschmidt
Changes by RonnyPfannschmidt ronny.pfannschm...@gmx.de: -- title: byte/unicode pickle incompatibilities between python2 andand python3 - byte/unicode pickle incompatibilities between python2 and python3 ___ Python tracker

[issue5468] urlencode does not handle bytes, and could easily handle alternate encodings

2009-08-28 Thread Miles Kaufmann
Miles Kaufmann mile...@umich.edu added the comment: I've attached a patch that provides similar functionality to Dan Mahn's urlencode(), as well as providing encoding and errors parameters to parse_qs and parse_qsl, updating the documentation to reflect the added parameters, and adding test

[issue6794] decimal.py: incorrect results in NaN comparisons

2009-08-28 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: Hi, I believe the following comparisons aren't correct: 1: Decimal(-sNaN63450748854172416).compare_total(Decimal(-sNaN911993)) == Decimal('1') Should be: Decimal('-1') (checked against decNumber) 2:

[issue6794] decimal.py: incorrect results in NaN comparisons

2009-08-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +marketdickinson priority: - normal type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6794 ___

[issue6793] decimal.py: div_nearest == _div_nearest

2009-08-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: This is already fixed in the trunk. -- nosy: +ezio.melotti, marketdickinson resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6795] decimal.py: minor issues usability

2009-08-28 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: Hi, a couple of minor issues: 1: c = getcontext() c.traps[InvalidOperation] = False Decimal(NaN).__int__() Decimal('NaN') I think the return value should be None. 2: c = getcontext() c.traps[InvalidOperation] = False

[issue6794] decimal.py: incorrect results in NaN comparisons

2009-08-28 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: - marketdickinson versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6794 ___

[issue6275] let unittest.assertRaises() return the exception object caught

2009-08-28 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Cool. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6275 ___ ___ Python-bugs-list

[issue6795] decimal.py: minor issues usability

2009-08-28 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: - marketdickinson nosy: +marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6795 ___

[issue6793] decimal.py: div_nearest == _div_nearest

2009-08-28 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- keywords: +26backport resolution: fixed - out of date ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6793 ___

[issue6794] decimal.py: incorrect results in NaN comparisons

2009-08-28 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the report! I've applied a quick fix in the trunk in r74564; merged to other branches in r74565 (release26-maint), r74566 (py3k) and r74567 (release31-maint). -- resolution: - fixed stage: - committed/rejected status:

[issue6793] decimal.py: div_nearest == _div_nearest

2009-08-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Yes, it is also fixed in 2.6 maintenance. I was hoping it could go into 2.5 maintenance. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6793

[issue6793] decimal.py: div_nearest == _div_nearest

2009-08-28 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: There's a security-fixes only policy in place for the 2.5 branch, so I'm afraid this isn't going to happen. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6793

[issue6795] decimal.py: minor issues usability

2009-08-28 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the reports. Issue 1. If this is going to be changed, I'd rather see int(Decimal('nan')) raise ValueError (just as int(float('nan')) does) than return None. Conversions from Decimal to native integers lie outside the scope of

[issue6796] invalid print in tkinter\test\test_ttk\test_widgets.py

2009-08-28 Thread Keith Campbell
New submission from Keith Campbell kei...@mitre.org: Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)] on win32 Type copyright, credits or license() for more information. RESTART

[issue6498] Py_Main() does not return on SystemExit

2009-08-28 Thread Rogi
Rogi r...@linuxmail.org added the comment: I will try to fix and submit a patch. Just a second =op -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498 ___

[issue6765] math.log, log10 inconsistency

2009-08-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Reopening as doc issue. This is at least the second time this issue has been reported (see #3724), with some agreement on doc tweak, but not done. Specific suggestions for math module doc, 9.2.2: math.log(x[, base]) Return the logarithm of x

[issue6771] Curses.wrapper: documentation/implementation error

2009-08-28 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: documentation/implementation error - Curses.wrapper: documentation/implementation error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6771

[issue6786] readline and zero based indexing

2009-08-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Please ask questions on, for instance, the python-list (c.l.p). If you find evidence that this is actually a bug, please supply. Else, close (or change to doc issue -- see below). My *guess* is that history lists are 1-based and Python

[issue6054] tarfile normalizes arcname

2009-08-28 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: I have done some research in order to find a suitable behaviour for tarfile. I wrote a script to test to what extent all the different tar implementations transform input pathnames. The results can be found at

[issue6792] Distutils-based installer does not detect 64bit versions of Python

2009-08-28 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Unfortunately, I don't think this is possible. When creating the installer, you have to make a choice whether to make it a 32-bit or a 64-bit MSI file - whether or not you have any architecture dependency. At least, can't think of an easy

[issue6797] When Beginning Expression with Lookahead Assertion I get no Matches

2009-08-28 Thread Jonathan Windle
New submission from Jonathan Windle jonathanwin...@gmail.com: Example Code: import re re.findall(r(?![a-z0-9])0(?![a-z0-9]), a0a 0 0 b0b) The above code returns an empty list. I expect to get ['0', '0'] returned. If I remove (?![a-z0-9]) from the beginning of the expression string findall

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2009-08-28 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Sorry about the late response; have been busy of late. I believe this error (Unknown signal 32) appears consistently in 3.0.1, 3.1rc1, 3.1 and 3.1.1. It appears only on Linux x86. (64-bit has failures of different kind..) I am

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2009-08-28 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: .. and here are the machine details: a...@gila:~ uname -a Linux gila 2.4.21-297-default #1 Sat Jul 23 07:47:39 UTC 2005 i686 i686 i386 GNU/Linux a...@gila:~ cat /etc/*release LSB_VERSION=1.3 DISTRIB_ID=SuSE DISTRIB_RELEASE=9.0

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2009-08-28 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: libc used is of version 2.3.2. *** a...@gila:~ ldd rrun/tmp/autotest/ActivePython-3.1.1.2-linux-x86/ INSTALLDIR/bin/python3 libpthread.so.0 = /lib/i686/libpthread.so.0 (0x4002f000) libdl.so.2 = /lib/libdl.so.2

[issue6798] Argument for sys.settrace() callbacks documented incorrectly

2009-08-28 Thread Robert Kern
New submission from Robert Kern robert.k...@gmail.com: The final 'arg' argument of the sys.settrace() callback is documented to be None for the 'c_return' and 'c_exception' events, but it appears to be the function object itself. Additionally, the 'return' event's argument may be None if the

[issue6799] mimetypes does not give cannonical extension for guess_extension with text/plain

2009-08-28 Thread Paul Tarjan
New submission from Paul Tarjan pyt...@paulisageek.com: import mimetypes mimetypes.guess_extension(text/plain) '.ksh' most others are correct, it is just this one is quite wrong. I would recommend changing it to .txt . mimetypes.guess_all_extensions(text/plain) ['.ksh', '.pl', '.c',

[issue6247] should we include argparse

2009-08-28 Thread Mark Lodato
Mark Lodato its...@hotmail.com added the comment: I would also like to voice support for including argparse in the standard library. It seems silly to deny a module from being added just because we already have two inferior ones. Argparse adds so many new (and badly needed!) features that it

[issue6247] should we include argparse

2009-08-28 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: we should never pretend an old module doesn't exist. leave optparse as optparse. argparse can come in under its own name. we can mark getopt and optparse as deprecated at some point and remove them in 10 years :) +1 on inclusion btw. It

[issue6800] os.exec* raises OSError: [Errno 45] Operation not supported in a multithreaded application

2009-08-28 Thread Reid Kleckner
New submission from Reid Kleckner r...@mit.edu: The test case is attached. On Mac OS X (and presumably FreeBSD, which has the same behavior) when you try to exec from a process that has any other threads in it, you get an OSError, Operation not supported. Here's the output on my MacBook:

[issue2204] document ConfigParser behaviour when a file has same section multiple times

2009-08-28 Thread trash80
trash80 tras...@trash80.org added the comment: I am using configparser after combining 3 or so ini files, I would like to merge similar sections rather than throwing an exception. Right now I have to make sure the ini files all have unique sections, but I would like to able to use same section

[issue6247] should we include argparse

2009-08-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm +1 on inclusion one way or another as well. I haven't made time to do anything other than a cursory code review, but as an end user I find the module fits my needs much better than optparse. -- nosy: +r.david.murray

[issue6800] os.exec* raises OSError: [Errno 45] Operation not supported in a multithreaded application

2009-08-28 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: The issue with execv seems to be resolved on OSX 10.6, and hence the problem will go away by itself in the future. But until OSX 10.5 and earlier have died of this is a valid issue. My gut feeling is that I'm -1 on killing all threads

[issue6800] os.exec* raises OSError: [Errno 45] Operation not supported in a multithreaded application

2009-08-28 Thread Reid Kleckner
Reid Kleckner r...@mit.edu added the comment: Supposedly this bug also affects FreeBSD, but I can't verify it. I'd say the problem isn't going away, at least not for that platform, but I don't feel like it's worth bending over backwards to deal with it either. As far as it concerns unladen