[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Rogi
Rogi r...@linuxmail.org added the comment: I may be wrong, but I think Py_Main() will _never_ return 1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498 ___

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Rogi
Rogi r...@linuxmail.org added the comment: Oh, and other functions on this doc, such as PyRun_SimpleStringFlags(), have this same documentation problem about SystemError. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Mark Hammond
Mark Hammond skippy.hamm...@gmail.com added the comment: It will return 1 if you specify a script to run and that has an unhandled exception. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Mark Hammond
Mark Hammond skippy.hamm...@gmail.com added the comment: Good catch - new patch with PyRun_SimpleStringFlags() corrected too. -- keywords: +patch Added file: http://bugs.python.org/file21448/bug-6498.patch ___ Python tracker rep...@bugs.python.org

[issue10740] sqlite3 module should allow DDL statements in transactions

2011-03-29 Thread Torsten Landschoff
Torsten Landschoff t.landsch...@gmx.net added the comment: Torsten basically you are suggesting that PRAGMA would never work at all with my 'do not strcmp() the sql at all, always begin a transaction' approach? No. Most pragmas should still work and getting the current setting of a pragma

[issue11647] function decorated with a context manager can only be invoked once

2011-03-29 Thread ysj.ray
ysj.ray ysj@gmail.com added the comment: Here I worked out a patch to make the function decorated by context manager returned by @contextmanager reusable, by storing original function object and argments(args, kwds objects) in _GeneratorContextManager and construct a generator when

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-29 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Westley Martínez wrote: Westley Martínez aniko...@gmail.com added the comment: ('arch', '', '') I've had a look at http://www.archlinux.org/download/ which does list a release version (currently 2010.05). Could you try to get that

[issue11690] Devguide: Add communication FAQ

2011-03-29 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: -- assignee: - docs@python components: +Devguide, Documentation -None nosy: +docs@python title: Add communication FAQ to devguide - Devguide: Add communication FAQ ___ Python tracker

[issue11549] Rewrite peephole to work on AST

2011-03-29 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Is there any tool to see how it works step-by-step. The whole stuff is extremely interesting, but I can't fit all the details of AST processing in my head. -- nosy: +techtonik ___ Python

[issue11709] help-method crashes if sys.stdin is None

2011-03-29 Thread Palm Kevin
New submission from Palm Kevin kevin.p...@labsolution.lu: The interactive help-method provided by python crashes when no stdin-stream is available (sys.stdin == None). Exception: Traceback (most recent call last): File MyScript, line 4, in module File C:\Python32\lib\site.py, line

[issue11709] help-method crashes if sys.stdin is None

2011-03-29 Thread Palm Kevin
Changes by Palm Kevin kevin.p...@labsolution.lu: -- components: +IO type: - crash versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11709 ___

[issue11647] function decorated with a context manager can only be invoked once

2011-03-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Part of the problem is that there was a specific reason we didn't go with lazy initialisation of the internal generator: lazy initialisation means there can be an arbitrary delay between creation of the context manager and the creation of the

[issue11549] Rewrite peephole to work on AST

2011-03-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Eugene: I suggest raising the question on python-dev. The answer potentially affects the PEP 380 patch as well (which adds a new attribute to the Yield node). Anatoly: If you just want to get a feel for the kind of AST various pieces of code

[issue10517] test_concurrent_futures crashes with --with-pydebug on RHEL5 with Fatal Python error: Invalid thread state for this thread

2011-03-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: What is the line that the parent process is executing? Line numbers don't seem to match any more. And is it possible to set a breakpoint in the child process where the fatal error is triggered? It would be good to know what is

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-03-29 Thread Davide Rizzo
Davide Rizzo sor...@gmail.com added the comment: An effective way to automate user interaction tests is by using pseudo-terminals. The attached test uses Pexpect and bash as tools to test the issue and demonstrates the bug on affected builds/platforms. There are a number of (possibly related)

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Serdar Dalgic
Changes by Serdar Dalgic ser...@pardus.org.tr: -- nosy: +serdar.dalgic ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___ ___

[issue11700] mailbox.py proxy updates

2011-03-29 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Mon, Mar 28, 2011 at 09:52:43PM +, Amaury Forgeot d'Arc wrote: But then, is close=False necessary? It's about 'class _PartialFile(_ProxyFile)', for which this argument is always false. Alternatively there could be a

[issue11709] help-method crashes if sys.stdin is None

2011-03-29 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The code fails precisely when checking that sys.stdin is a valid terminal. See the attached patch for a fix. Out of curiosity, why did you set sys.stdin to None? -- keywords: +patch nosy: +amaury.forgeotdarc stage: - patch

[issue11710] Landing pages in docs for standard library packages

2011-03-29 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: http://docs.python.org/py3k/urllib errors out rather than returning an index page for the modules that are part of the urllib package. This index page could also link to the HOWTO at http://docs.python.org/py3k/howto/urllib2.html The

[issue11709] help-method crashes if sys.stdin is None

2011-03-29 Thread Palm Kevin
Palm Kevin kevin.p...@labsolution.lu added the comment: I embed Python into an existing, external C application. In addition to this I extend Python to access that app from Python. I do never set explicitly set the standard input to NULL. I guess that the external C application does this...

[issue11707] Create C version of functools.cmp_to_key()

2011-03-29 Thread Filip Gruszczyński
Changes by Filip Gruszczyński grusz...@gmail.com: -- nosy: +gruszczy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11707 ___ ___ Python-bugs-list

[issue11647] function decorated with a context manager can only be invoked once

2011-03-29 Thread ysj.ray
ysj.ray ysj@gmail.com added the comment: For 3.3, the fix could be generalised with ContextDecorator supporting a documented self._recreate internal interface that, by default, just returns self, but would be overridden in _GeneratorContextManager to actually create a new instance.

[issue11647] function decorated with a context manager can only be invoked once

2011-03-29 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Because I don't want to conflate the two APIs. ContextDecorator can be used with *any* context manager, and some of those may already be using their copy semantics for something else. If anyone ever writes the __with__ PEP, then

[issue11557] Increase coverage in logging module

2011-03-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset c7f7672b70a9 by Vinay Sajip in branch 'default': Closes issue #11557: Added Natalia Bidart's patch to improve test coverage. http://hg.python.org/cpython/rev/c7f7672b70a9 -- nosy: +python-dev

[issue11557] Increase coverage in logging module

2011-03-29 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Closing, thanks for the patch. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11557 ___

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: This issue was first reported by Niels Heinen from the Google Security Team. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't have a 2.5 checkout to test but the patch looks ok to me. Under 2.7 I get a test failure, I suppose you'll have some merging work to do: test test_urllib2 failed -- Traceback (most recent call last): File

[issue11647] function decorated with a context manager can only be invoked once

2011-03-29 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I agree. copy is a separate protocol and shouldn't be involved here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11647 ___

[issue11676] imp.load_module and submodules - doc issue, or bug?

2011-03-29 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: It's actually not surprising that imp works this way: it predates packages. Because the semantics (I assume) have been like this for ages I say we document the current behavior (it's easy to work around) and simply continue to replace imp

[issue11557] Increase coverage in logging module

2011-03-29 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This seems to be causing some issues on the buildbots: http://www.python.org/dev/buildbot/all/builders/AMD64%20Snow%20Leopard%202%203.x/builds/137 -- nosy: +r.david.murray status: closed - open

[issue11557] Increase coverage in logging module

2011-03-29 Thread Natalia B. Bidart
Natalia B. Bidart nataliabid...@gmail.com added the comment: I'll work on a fix during next weekend (sooner if I have an open slot). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11557

[issue11664] Add patch method to unittest.TestCase

2011-03-29 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: A similar function already exists: test.support.patch -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11664 ___

[issue11664] Add patch method to unittest.TestCase

2011-03-29 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Right, I helped with the writing of that at PyCon. The patch method would look very similar. test.support.patch is not something we want to make public (in that location). -- ___ Python

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: I have the final version of the patch for Python 2 in the 2.5, 2.6 and 2.7 branches in my repo (http://hg.python.org/sandbox/guido). What's the next step? Just push this to the central repo? There are a few separate changes: summary:

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Also for the Python 3 family it's best to backport Senthil's patch. I will try that in my tree as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662

[issue11703] Bug in python = 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11703 ___

[issue11703] Bug in python = 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: This is because the Request class' constructor splits the URL into __original and fragment: def __init__(self, url, data=None, headers={}, origin_req_host=None, unverifiable=False): #

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: The SystemExit vs. SystemError is clearly a typo in the doc. The VC comment accompanying the addition of that note says note that Py_Main doesnt return on SystemExit. See [e5d8f0c0d634] and #5227. -- nosy:

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: The updated doc patch is missing :exc: markup on one of SystemExits. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: The fix is now also in the 3.1, 3.2 and default branches of my repo (http://hg.python.org/sandbox/guido). Maybe I should just merge the whole bunch into the root repo and be done with it? -- ___

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/3/29 Guido van Rossum rep...@bugs.python.org: Guido van Rossum gu...@python.org added the comment: The fix is now also in the 3.1, 3.2 and default branches of my repo (http://hg.python.org/sandbox/guido). Maybe I should just

[issue11700] mailbox.py proxy updates

2011-03-29 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: This new patch adheres your suggestion. Now all implemented operations perform a file is open at all check and raise ValueError if not, which somewhat reflects what i've seen when i was looking into fileio.c. My questions: -

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Here's a fix that works for me on Ubuntu 11.04. -- hgrepos: +12 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: Added file: http://bugs.python.org/file21453/a9b05b89ea39.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: Removed file: http://bugs.python.org/file21453/a9b05b89ea39.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: Added file: http://bugs.python.org/file21454/a4dcae4cd033.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___

[issue11711] socketpair does not accept AF_INET family argument [Linux]

2011-03-29 Thread Cloudberry
New submission from Cloudberry tm...@skaugmail.net: System where issue was reproduced is Ubuntu 10.04 32-bit with python 2.6.5 Expected behavior for socket.socketpair as per the docstring: The arguments are the same as for socket() except the default family is AF_UNIX if defined on the

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I should note that I'd love to backport this to Python 3.2, 3.1, 2.7 and 2.6 since none of them can build entirely now on multiarch systems. Since it only affects search order in the build process, one could argue that it's not a new

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Barry: does it allow to install Python into /usr/lib/whateverarch, or is it just a partial fix for something slightly unrelated to this issue? -- nosy: +pitrou ___ Python tracker

[issue11712] Doc list.sort(cmp=,key=) result.

2011-03-29 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: l=[1,3,2] l.sort(cmp=lambda x,y:y-x, key=lambda x: x) print(l) With CPython 2.7 this 1) could raise an exception like TypeError: conflicting arguments passed; 2) could ignore cmp= and print [1,2,3] on the basis that the new should override

[issue11703] Bug in python = 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Attaching patches against 2.7 and 3.1 branches. -- keywords: +patch Added file: http://bugs.python.org/file21456/issue11703_py27.patch ___ Python tracker rep...@bugs.python.org

[issue11703] Bug in python = 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: Added file: http://bugs.python.org/file21457/issue11703_py31.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11703 ___

[issue11711] socketpair does not accept AF_INET family argument [Linux]

2011-03-29 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: It is noted in the Linux man page for socketpair: On Linux, the only supported domain for this call is AF_UNIX (or synonymously, AF_LOCAL). (Most implementations have the same restriction.) -- nosy: +rosslagerwall

[issue1571878] Improvements to socket module exceptions

2011-03-29 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1571878 ___ ___

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-29 Thread Westley Martínez
Westley Martínez aniko...@gmail.com added the comment: That's the release version for the installation disc. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11678 ___

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: A proper fix is to introduce sys.libdir, which would be controllable by --libdir=${value} option of `configure`. If --libdir=${value} is not passed, then sys.libdir would default to sys.prefix + /lib. sysconfig,

[issue11711] socketpair does not accept AF_INET family argument [Linux]

2011-03-29 Thread Cloudberry
Cloudberry tm...@skaugmail.net added the comment: Thank you for clarifications. Closing it as an invalid issue, as this is (not) working as expected. Apologies for the noise. -- resolution: - invalid status: open - closed ___ Python tracker

[issue11712] Doc list.sort(cmp=,key=) result.

2011-03-29 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11712

[issue11713] collections.deque docstring wrong/misleading

2011-03-29 Thread Davide Rizzo
New submission from Davide Rizzo sor...@gmail.com: collections.deque docstring is: 'deque(iterable[, maxlen]) -- deque object\n\nBuild an ordered collection accessible from endpoints only.' As it reads now, it seems to imply that only endpoints can be read/modified. The rst correctly states

[issue11713] collections.deque docstring wrong/misleading

2011-03-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11713 ___ ___

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Westley Martínez
Westley Martínez aniko...@gmail.com added the comment: Well it's been quite some time and no response yet. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11155 ___

[issue11714] threading.Semaphore does not use try...finally

2011-03-29 Thread Thomas Rachel
New submission from Thomas Rachel th.rac...@googlemail.com: The acquire() and release() functions of threading.Semaphore do not make use of the try...finally suite as it would be reasonable. They just do def acquire(self, blocking=1): rc = False self.__cond.acquire()

[issue7365] grp and pwd should treat uid and gid as unsigned

2011-03-29 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: I took the freedom to refresh the patch against default (I don't know yet the policies for what to backport and what not), built a debug version of python with the patch applied and run the test suite with no regression. A test would be

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 5937d2119a20 by guido in branch '3.1': Issue 11662: Fix vulnerability in urllib/urllib2. http://hg.python.org/cpython/rev/5937d2119a20 New changeset 96a6c128822b by guido in branch '3.2': Merge Issue 11662 from 3.1 branch.

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Guido van Rossum
Guido van Rossum gu...@python.org added the comment: Ok, merged into the central repo. Let me know where I screwed up. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662

[issue11109] socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass

2011-03-29 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: not yet, thanks for the reminder. if any other committers feel like jumping on this and doing it before I get around to it, feel free. -- ___ Python tracker rep...@bugs.python.org

[issue11703] Bug in python = 2.7 with urllib2 fragment

2011-03-29 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11703 ___ ___ Python-bugs-list mailing list

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Erik Cederstrand
Erik Cederstrand e...@1calendar.dk added the comment: I'm not sure if I was supposed to respond. The patch looks straight-forward to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11155

[issue7124] idle.py -n : help() doesn't work in a reopened shell window

2011-03-29 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hi Gregor, are you still able to replicate this bug? I just tried on a freshly built 3.3 and (hopefully correctly) following your description, I can print help just fine: help(print) Help on built-in function print in module builtins:

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11155 ___ ___

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Erik Cederstrand
Erik Cederstrand e...@1calendar.dk added the comment: Just checked on Python 2.7.1 with the same result. Test script attached. -- Added file: http://bugs.python.org/file21459/q.py ___ Python tracker rep...@bugs.python.org

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11662 ___

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Erik Cederstrand
Changes by Erik Cederstrand e...@1calendar.dk: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11155 ___ ___

[issue11714] threading.Semaphore does not use try...finally

2011-03-29 Thread Thomas Rachel
Thomas Rachel th.rac...@googlemail.com added the comment: I wonder if it is right what I wrote. After a second thought, the acquire() should come *after* try:, as well in threading.Event. Because if Ctrl-C is pressed while waiting in acquire(), a KeyboardInterrupt is thrown immediately after

[issue11714] threading.Semaphore does not use try...finally

2011-03-29 Thread Thomas Rachel
Thomas Rachel th.rac...@googlemail.com added the comment: Of course. I hope it is correct, and I hop it is ok when I change to use with ...: on the other places I consider it useful as well... -- keywords: +patch type: - behavior Added file:

[issue11714] threading.Semaphore does not use try...finally

2011-03-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It would be simpler to use with indeed. Do you want to provide a patch? -- nosy: +pitrou versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue11713] collections.deque docstring wrong/misleading

2011-03-29 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11713 ___

[issue7101] tarfile: OSError with TarFile.add(..., recursive=True) about non-existing file

2011-03-29 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hi, I don't understand why you think tarfile should not fail in case you're trying to add a non-existing file. the problem is that glob() already extracted a list of filesdirs and then while the script is tar-ring them, you're removing some

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: The comment in the source that describes `Py_InspectFlag` also says `SystemError` instead of `SystemExit`. I changed that and added the missing :exc: for the SystemExit and created a patch for 3.1. -- nosy: +Trundle Added

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: Added file: http://bugs.python.org/file21462/issue6498_31.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6498 ___

[issue7124] idle.py -n : help() doesn't work in a reopened shell window

2011-03-29 Thread Gregor Lingl
Gregor Lingl gregorli...@users.sourceforge.net added the comment: Right. I cannot replicate this bug even with an IDLE from Python 3.2. So it seems to me, that this problem has been solved. Regards, Gregor -- ___ Python tracker

[issue9331] sys.setprofile is not described as CPython implementation detail

2011-03-29 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: As Benjamin just confirmed on #python-dev, sys.setprofile is not a cpython impl detail, hence closing this issue. -- nosy: +benjamin.peterson, sandro.tosi resolution: - invalid stage: needs patch - committed/rejected status: open -

[issue8052] subprocess close_fds behavior should only close open fds

2011-03-29 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: For what its worth, an strace of Java's Process class appears to cheat by opening /proc/self/fd inbetween fork exec. Looking at the OpenJDK source confirms this:

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: regrtest_timeout.patch: add --timeout option to regrtest.py to display the traceback and then exit if a test takes more than TIMEOUT seconds. It adds also a check on the subprocess exit code (regrtest.py -j): raise a exception if

[issue8052] subprocess close_fds behavior should only close open fds

2011-03-29 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I like the approach suggested by Gregory in issue11284 (msg129912) - if we are sure the program is not multithreaded, get the list of fds before forking, and use that; otherwise, do it the slow way. A signal handler can also

[issue7124] idle.py -n : help() doesn't work in a reopened shell window

2011-03-29 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: that's great, closing then :) -- resolution: - out of date stage: needs patch - status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7124

[issue11610] Improving property to accept abstract methods

2011-03-29 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I have an idea. How about instead of reusing abstractmethod for abstract getters and setters, you add abstractproperty.abstractgetter/setter/deleter? -- ___ Python tracker

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Mar 29, 2011, at 07:28 PM, Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Barry: does it allow to install Python into /usr/lib/whateverarch, or is it just a partial fix for something slightly unrelated to this

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-29 Thread Barry A. Warsaw
New submission from Barry A. Warsaw ba...@python.org: Ubuntu 11.04 introduces new directories for libraries and headers to support multiple architectures on a single machine. E.g. 64bit and 32bit on a 64bit Ubuntu. Here are the specs: https://wiki.ubuntu.com/MultiarchSpec

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I retract my patch for this bug because the issue described here is actually different than the one I want to fix. See issue 11715 for the problem of building Python on multiarch Debian and Ubuntu (e.g. Ubuntu 11.04). --

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: Removed file: http://bugs.python.org/file21454/a4dcae4cd033.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- keywords: +patch Added file: http://bugs.python.org/file21464/a9b05b89ea39.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11715 ___

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: Removed file: http://bugs.python.org/file21464/a9b05b89ea39.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11715 ___

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: Added file: http://bugs.python.org/file21465/d504ca7e0fe5.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11715 ___

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Mar 29, 2011, at 07:38 PM, Arfrever Frehtes Taifersar Arahesis wrote: A proper fix is to introduce sys.libdir, which would be controllable by --libdir=${value} option of `configure`. If --libdir=${value} is not passed, then sys.libdir would

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2011-03-29 Thread Mark Mc Mahon
Mark Mc Mahon mtnbikingm...@gmail.com added the comment: That fixed it - but it seems we need that for the other Types defined in the module. Regarding testing - would it be a good idea to add an MSI to the test suite - or better to create one during testing (using msilib) and then use that

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: heh, that's easy, just add the multiarch id to the extension name ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___

[issue11677] make test has horrendous performance on an ecryptfs

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Antoine, -P is fine with me! Also, since my idea is that --usetmp/-P would just use the mkdtemp() algorithm (which looks for $TMPDIR, $TEMP or $TMP), getting the build into a subdirectory, e.g. /tmp/test_python would be as easy as setting

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: On 29.03.2011 21:28, Antoine Pitrou wrote: Barry: does it allow to install Python into /usr/lib/whateverarch, no, it looks for headers and libraries in more directories. But really, this whole testing for paths is wrong. Just use the compiler

[issue2694] msilib file names check too strict ?

2011-03-29 Thread Mark Mc Mahon
Mark Mc Mahon mtnbikingm...@gmail.com added the comment: This issue has been fixed by changes made in issue7639 and issue11696 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2694 ___

  1   2   >