[issue7753] newgil backport

2010-01-22 Thread Ralf Schmitt
Changes by Ralf Schmitt sch...@gmail.com: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7753 ___ ___ Python-bugs-list mailing

[issue7138] elementtree segfaults on invalid xml declaration

2010-01-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This was merged into 2.6 with r74432, into 2.5 with r77666, into 3.1 with r74436. -- assignee: - jyasskin nosy: +jyasskin resolution: - fixed status: open - closed ___ Python tracker

[issue7754] decimal.Decimal 0.0**0.0 error

2010-01-22 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the report. Unfortunately, this behaviour is by design: the decimal module follows the specification at http://speleotrove.com/decimal/decarith.html See particularly: http://speleotrove.com/decimal/daops.html#refpower rant

[issue7753] newgil backport

2010-01-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: A few things: * The ceval_gil.h file is missing from the patch. * Please check whether you can move these variable declarations inside the main loop function (as statics): +/* This single variable consolidates all requests to break out

[issue7753] newgil backport

2010-01-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: See Tools/pybench/systimes.py for more comments on clocks, ticks and update frequency. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7753

[issue7755] copyright clarification for audiotest.au

2010-01-22 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: [forwarded from http://bugs.debian.org/565713] If the bug submitter is correct about these, it would be nice to replace these, or clarify the copyright for these files. the python source packages contain a non-free audio clip that is from

[issue7754] decimal.Decimal 0.0**0.0 error

2010-01-22 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Now that I think about it, this could be 'fixed' without breaking compliance: all the specification requires is that a power function with the specified behaviour is present *somewhere* in the decimal module; it needn't be linked to the

[issue7753] newgil backport

2010-01-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: * Instead of deprecating the set/getcheckinterval APIs, convert the arguments passed to these to the switch interval. The new APIs set/getswitchinteral are then not needed. This is certainly not a good idea. The semantics are different, which

[issue7076] Documentation add note about SystemRandom

2010-01-22 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- keywords: +needs review stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7076 ___

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-22 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Here's a new patch against the trunk that addresses Brian's concerns. -- keywords: +patch versions: +Python 2.7 Added file: http://bugs.python.org/file15970/fix with test.patch ___ Python tracker

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-22 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: For completeness, I've back-ported the patch to the release26-maint branch. -- Added file: http://bugs.python.org/file15971/fix with test (releas26-maint).patch ___ Python tracker

[issue7750] IOError when launching script under pdb with backslash in script path

2010-01-22 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file15968/test_pdb.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7750 ___

[issue7756] Complete your registration to Python tracker -- key rt04e51ru5U1WqGum1kklK4ZYWEe1Mkf

2010-01-22 Thread Michael Smith
New submission from Michael Smith msm...@cbnco.com: Python tracker wrote: To complete your registration of the user msm...@cbnco.com with Python tracker, please do one of the following: - send a reply to rep...@bugs.python.org and maintain the subject line as is (the reply's additional

[issue7756] Complete your registration to Python tracker -- key rt04e51ru5U1WqGum1kklK4ZYWEe1Mkf

2010-01-22 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- priority: - low resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7756 ___

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2010-01-22 Thread Lennart Regebro
Changes by Lennart Regebro rege...@gmail.com: Removed file: http://bugs.python.org/file15537/python-py3k-exception-detail.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7490 ___

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2010-01-22 Thread Lennart Regebro
Changes by Lennart Regebro rege...@gmail.com: Removed file: http://bugs.python.org/file15538/python-trunk-exception-detail.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7490 ___

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2010-01-22 Thread Lennart Regebro
Lennart Regebro rege...@gmail.com added the comment: New diff for trunk, with the additional test -- Added file: http://bugs.python.org/file15972/python-trunk-exception-detail.diff ___ Python tracker rep...@bugs.python.org

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2010-01-22 Thread Lennart Regebro
Lennart Regebro rege...@gmail.com added the comment: New diff for Py3k with the additional test -- Added file: http://bugs.python.org/file15973/python-py3k-exception-detail.diff ___ Python tracker rep...@bugs.python.org

[issue7753] newgil backport

2010-01-22 Thread Neil Schemenauer
Neil Schemenauer nas-pyt...@arctrix.com added the comment: Here is an updated set of patches that includes the ceval_gil.h file as well as the documentation changes. -- Added file: http://bugs.python.org/file15974/gil-2.7.txt ___ Python tracker

[issue7753] newgil backport

2010-01-22 Thread Kevin Watters
Changes by Kevin Watters kevinwatt...@gmail.com: -- nosy: +kevinwatters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7753 ___ ___

[issue7076] Documentation add note about SystemRandom

2010-01-22 Thread David W. Lambert
David W. Lambert b49p23t...@stny.rr.com added the comment: I recall an experience with a random file in /dev that was considerably slow after consuming its cache. I used it as a seeder. I've now got an ubuntu system for which /dev/urandom gives me a hundred million bytes quickly. Perhaps a

[issue7242] Forking in a thread raises RuntimeError

2010-01-22 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7242 ___ ___ Python-bugs-list

[issue7757] sys.path is incorrect when prefix is

2010-01-22 Thread Michael Smith
New submission from Michael Smith msm...@cbnco.com: I've built Python 2.6.2 with a prefix of for an embedded system, so it's installed into /bin/python, /lib/python2.6/, etc. If I run a script with python /tmp/script.py or by putting in a #!/bin/python and executing it directly, sys.path is

[issue7743] Additional potential string - float conversion issues.

2010-01-22 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Second bug listed here fixed in r77698 in the trunk. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7743 ___

[issue6461] multiprocessing: freezing apps on Windows

2010-01-22 Thread spongebob
spongebob nicolas.hes...@gmail.com added the comment: I can't seem to freeze an app on Windows using multiprocessing.Manager() Are apps that use Managers freezable?? Example: from multiprocessing import freeze_support,Manager if __name__ == '__main__': freeze_support() m=Manager()

[issue7757] sys.path is incorrect when prefix is

2010-01-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I thought I remembered a bug that mentioned prefix=/. What I found was Issue1676135, which might have something to do with your last question. -- nosy: +r.david.murray priority: - normal ___

[issue7753] newgil backport

2010-01-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: * Instead of deprecating the set/getcheckinterval APIs, convert the arguments passed to these to the switch interval. The new APIs set/getswitchinteral are then

[issue7758] cPickle segfault on invalid data

2010-01-22 Thread Dan Helfman
New submission from Dan Helfman dan.helf...@noaa.gov: The following code causes Python to segfault: import cPickle import cStringIO as io cPickle.load( io.StringIO( '0' ) ) Note that if the string is changed from '0' to '1', then the crash does not occur and an UnpicklingError is properly

[issue7758] cPickle.load() segfault on invalid data

2010-01-22 Thread Dan Helfman
Changes by Dan Helfman dan.helf...@noaa.gov: -- title: cPickle segfault on invalid data - cPickle.load() segfault on invalid data ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7758 ___

[issue7755] copyright clarification for audiotest.au

2010-01-22 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7755 ___

[issue7753] newgil backport

2010-01-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: While the semantics are different, the result is similar and the actual numbers used are usually determined by experiment or rough estimate - noone expects the APIs to provide any kind of exact timing and it's not needed either. There's no

[issue7758] cPickle.load() segfault on invalid data

2010-01-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is already fixed, I believe as part of a general cleanup of one of the CAPI macros. On current 2.6 branch and on trunk you now get an unpickling stack underflow in this case. -- nosy: +r.david.murray priority: - normal

[issue7758] cPickle.load() segfault on invalid data

2010-01-22 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: This is a duplicate of issue 7455. -- components: +Extension Modules -None nosy: +eric.smith resolution: out of date - duplicate superseder: - cPickle: stack underflow in load_pop() ___ Python tracker

[issue7652] Merge C version of decimal into py3k.

2010-01-22 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: All outstanding issues mentioned here have been solved in Rev. 77696: (1) New ANSI path for unknown 64bit platforms (ia64 and Alpha build without problems now). (2) Unified tests for decimal and cdecimal. (3) Documentation

[issue7754] decimal.Decimal 0.0**0.0 error

2010-01-22 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I would not be happy with unlinking __pow__ from the standard's power operation. We wouldn't be doing our users a favor by implementing part of the standard, then tucking it away in a unexpected place, and substituting our

[issue7754] decimal.Decimal 0.0**0.0 error

2010-01-22 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the feedback, Raymond. I'll close this, then. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7754 ___

[issue7753] newgil backport

2010-01-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: While the semantics are different, the result is similar and the actual numbers used are usually determined by experiment or rough estimate - noone expects the

[issue7753] newgil backport

2010-01-22 Thread Ross Cohen
Ross Cohen rco...@snurgle.org added the comment: Thanks Neil for fixing up the patch. As for Marc-Andre's comments, I'm happy to backport any further changes which happen on the py3k branch. I'd like to keep this as a strict backport, only changing things as necessary to get it to work with the

[issue7753] newgil backport

2010-01-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Just use some conversion formula, e.g. switching interval in micro seconds = constant * byte code check interval. We can then determine a constant to match todays CPU performance. Well, there are two problems: - opcode execution cost varies so

[issue7753] newgil backport

2010-01-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: On second thought, you're right: while sys.setcheckinterval() could be made to work with the switching interval, sys.getcheckinterval() could not be made to return anything useful. Still, please have a look at the other issues mentioned.

[issue7753] newgil backport

2010-01-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Perhaps I'm missing some feature of the new GIL. Is there some documentation for it somewhere ? Almost nothing besides what is found in ceval_gil.h and in the following thread:

[issue4698] Solaris buildbot failure on trunk in test_hostshot

2010-01-22 Thread Neil Schemenauer
Changes by Neil Schemenauer nas-pyt...@arctrix.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4698 ___

[issue1220756] Re-importing embedded thread dumps core

2010-01-22 Thread Neil Schemenauer
Changes by Neil Schemenauer nas-pyt...@arctrix.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1220756 ___

[issue7759] mhlib fails on Btrfs filesystem (test_mhlib failure)

2010-01-22 Thread Neil Schemenauer
New submission from Neil Schemenauer nas-pyt...@arctrix.com: Btrfs does not maintain a link count for directories (MacOS does the same I think). That confuses mhlib.py because it uses os.stat().st_nlinks as an optimization. The attached patch removes the optimization and make test_mhlib pass

[issue2611] Extend buildbot web interface to allow for forced tests to be run on a slave in verbose mode.

2010-01-22 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- priority: - normal stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2611 ___

[issue7736] os.listdir hangs since opendir() and closedir() do not release GIL

2010-01-22 Thread Nikolaus Rath
Nikolaus Rath nikol...@rath.org added the comment: The patch works fine for me too. Also, I did not discover any other such problems for other syscalls (but I did not systematically try all os.* functions). -- ___ Python tracker

[issue7760] use_errno=True does not work

2010-01-22 Thread Nikolaus Rath
New submission from Nikolaus Rath nikol...@rath.org: On my system (Ubuntu Karmic, Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15), Kernel 2.6.31-17-generic, libc6 2.10.1-0ubuntu16) the attached test script produces the following output: Traceback (most recent call last): File test1.py,

[issue7760] use_errno=True does not work

2010-01-22 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- priority: - normal stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7760 ___ ___

[issue7564] test_ioctl may fail when run in background

2010-01-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_ioctl() gets the process group ID of the foreground process group on /dev/tty. If Python is in foreground, it's equal to the process group ID (os.getpgrp()) or to the session ID (os.getsid(0)). If Python is in background,

[issue7267] format method: c presentation type broken

2010-01-22 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: ('%c' % 255) == chr(255) == '\xff' '%c' % 256 raise an OverflowError: unsigned byte integer is greater than maximum and chr(256) raise a ValueError: chr() arg not in range(256). I prefer the second error ;-) str.format() should

[issue7761] telnetlib Telnet.interact fails on Windows but not Linux

2010-01-22 Thread Michael Newman
New submission from Michael Newman michael.b.new...@gmail.com: Telnet.interact() is failing on Python 3.1.1 Windows, but works fine on Python 2.6.4 Windows and also works on Python 3.1.1 Linux. See 3 examples below: --- Test #1 (fails): Telnet.interact on Python 3.1.1 Windows --- Python

[issue7723] sqlite only accept buffer() for BLOB objects (input/output)

2010-01-22 Thread Pablo Mouzo
Pablo Mouzo pablomo...@gmail.com added the comment: I'm attaching a correction to sqlite3 documentation, removing all 'buffer' references and setting bytes as BLOB equivalent. -- keywords: +patch nosy: +pablomouzo Added file: http://bugs.python.org/file15977/issue7723-py3k-docs.diff

[issue6045] Fix dbm interfaces

2010-01-22 Thread Pablo Mouzo
Changes by Pablo Mouzo pablomo...@gmail.com: -- nosy: +pablomouzo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6045 ___ ___ Python-bugs-list

[issue7762] (C API) PyUnicode_Tailmatch documentation

2010-01-22 Thread July Tikhonov
New submission from July Tikhonov july.t...@gmail.com: It mentions Return value: New reference., but I have no idea of what it can mean in this function, since the return type is 'int'. http://docs.python.org/dev/py3k/c-api/unicode.html#PyUnicode_Tailmatch -- assignee: georg.brandl

[issue7763] (C API) PyUnicode_Tailmatch documentation

2010-01-22 Thread July Tikhonov
New submission from July Tikhonov july.t...@gmail.com: It mentions Return value: New reference., but I have no idea of what it can mean in this function, since the return type is 'int'. http://docs.python.org/dev/py3k/c-api/unicode.html#PyUnicode_Tailmatch -- assignee: georg.brandl