[issue7753] newgil backport

2010-01-22 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue7138] elementtree segfaults on invalid xml declaration

2010-01-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 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 Yes, I think this is wron

[issue7753] newgil backport

2010-01-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg 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 of the fast path

[issue7753] newgil backport

2010-01-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: See Tools/pybench/systimes.py for more comments on clocks, ticks and update frequency. -- ___ Python tracker ___ __

[issue7755] copyright clarification for audiotest.au

2010-01-22 Thread Matthias Klose
New submission from Matthias Klose : [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 Monty Python's Fl

[issue7754] decimal.Decimal 0.0**0.0 error

2010-01-22 Thread Mark Dickinson
Mark Dickinson 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 ** operator. So the

[issue7753] newgil backport

2010-01-22 Thread Antoine Pitrou
Antoine Pitrou 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 is the rea

[issue7076] Documentation add note about SystemRandom

2010-01-22 Thread Brian Curtin
Changes by Brian Curtin : -- keywords: +needs review stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2010-01-22 Thread Jason R. Coombs
Jason R. Coombs 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 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 : Removed file: http://bugs.python.org/file15968/test_pdb.py ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2010-01-22 Thread Michael Smith
New submission from Michael Smith : 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 "Re:" is o

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

2010-01-22 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> low resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

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

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2010-01-22 Thread Lennart Regebro
Changes by Lennart Regebro : Removed file: http://bugs.python.org/file15538/python-trunk-exception-detail.diff ___ Python tracker ___ ___ Pyth

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2010-01-22 Thread Lennart Regebro
Lennart Regebro 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

[issue7242] Forking in a thread raises RuntimeError

2010-01-22 Thread Zsolt Cserna
Zsolt Cserna added the comment: Could you please provide any advise on this bug? I've submitted my patch, would be curious if there any chance to get it merged. -- ___ Python tracker ___

[issue7490] IGNORE_EXCEPTION_DETAIL should ignore the module name

2010-01-22 Thread Lennart Regebro
Lennart Regebro 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 ___

[issue7753] newgil backport

2010-01-22 Thread Neil Schemenauer
Neil Schemenauer 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 : -- nosy: +kevinwatters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7076] Documentation add note about SystemRandom

2010-01-22 Thread David W. Lambert
David W. Lambert 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 nosy one has more info

[issue7242] Forking in a thread raises RuntimeError

2010-01-22 Thread R. David Murray
Changes by R. David Murray : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue7757] sys.path is incorrect when prefix is ""

2010-01-22 Thread Michael Smith
New submission from Michael Smith : 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 missing the l

[issue7743] Additional potential string -> float conversion issues.

2010-01-22 Thread Mark Dickinson
Mark Dickinson added the comment: Second bug listed here fixed in r77698 in the trunk. -- ___ Python tracker ___ ___ Python-bugs-list

[issue6461] multiprocessing: freezing apps on Windows

2010-01-22 Thread spongebob
spongebob 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() will throw errors, when r

[issue7757] sys.path is incorrect when prefix is ""

2010-01-22 Thread R. David Murray
R. David Murray 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 ___ Python tracker

[issue7753] newgil backport

2010-01-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou 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

[issue7758] cPickle segfault on invalid data

2010-01-22 Thread Dan Helfman
New submission from Dan Helfman : 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 raised. Thi

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

2010-01-22 Thread Dan Helfman
Changes by Dan Helfman : -- title: cPickle segfault on invalid data -> cPickle.load() segfault on invalid data ___ Python tracker ___

[issue7755] copyright clarification for audiotest.au

2010-01-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue7753] newgil backport

2010-01-22 Thread Antoine Pitrou
Antoine Pitrou 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 reasonable fo

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

2010-01-22 Thread R. David Murray
R. David Murray 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 resolution: -> out of

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

2010-01-22 Thread Eric Smith
Eric Smith 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 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 for cdecimal. Other impro

[issue7754] decimal.Decimal 0.0**0.0 error

2010-01-22 Thread Raymond Hettinger
Raymond Hettinger 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 own notion of what should be don

[issue7754] decimal.Decimal 0.0**0.0 error

2010-01-22 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the feedback, Raymond. I'll close this, then. -- status: open -> closed ___ Python tracker ___ _

[issue7753] newgil backport

2010-01-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou 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

[issue7753] newgil backport

2010-01-22 Thread Ross Cohen
Ross Cohen 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 older codebase. R

[issue7753] newgil backport

2010-01-22 Thread Antoine Pitrou
Antoine Pitrou 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 wildly that

[issue7753] newgil backport

2010-01-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg 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. They apply to new G

[issue7753] newgil backport

2010-01-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg 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: > http://mail.python.org/pipermail/python-dev/

[issue4698] Solaris buildbot failure on trunk in test_hostshot

2010-01-22 Thread Neil Schemenauer
Changes by Neil Schemenauer : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1220756] Re-importing embedded thread dumps core

2010-01-22 Thread Neil Schemenauer
Changes by Neil Schemenauer : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2010-01-22 Thread Neil Schemenauer
New submission from Neil Schemenauer : 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 on Btrfs (and probably

[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 : -- priority: -> normal stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2010-01-22 Thread Nikolaus Rath
Nikolaus Rath 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 : 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", line 27, in ra

[issue7760] use_errno=True does not work

2010-01-22 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> normal stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue7564] test_ioctl may fail when run in background

2010-01-22 Thread STINNER Victor
STINNER Victor 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, yes, the test fail. test_ioctl_

[issue7267] format method: c presentation type broken

2010-01-22 Thread STINNER Victor
STINNER Victor 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 follow the same behaviour.

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

2010-01-22 Thread Michael Newman
New submission from Michael Newman : 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 3.1.1 (r311:74483, Aug 17 2009,

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

2010-01-22 Thread Pablo Mouzo
Pablo Mouzo 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 : -- nosy: +pablomouzo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue7762] (C API) PyUnicode_Tailmatch documentation

2010-01-22 Thread July Tikhonov
New submission from July Tikhonov : 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 components: Document

[issue7763] (C API) PyUnicode_Tailmatch documentation

2010-01-22 Thread July Tikhonov
New submission from July Tikhonov : 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 components: Document