[issue12647] Add __bool__ to None

2011-07-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > I'm not sure why the special case shouldn't be retained. > > We can keep the fast path in PyObject_IsTrue but add a __bool__ method to > NoneType. That's what I meant. -- ___ Python tracker

[issue12647] Add __bool__ to None

2011-07-27 Thread STINNER Victor
STINNER Victor added the comment: > I'm not sure why the special case shouldn't be retained. We can keep the fast path in PyObject_IsTrue but add a __bool__ method to NoneType. -- nosy: +haypo ___ Python tracker

[issue12647] Add __bool__ to None

2011-07-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure why the special case shouldn't be retained. It's obviously there for speed reasons. -- nosy: +pitrou ___ Python tracker ___ _

[issue12647] Add __bool__ to None

2011-07-27 Thread Eric Snow
Eric Snow added the comment: And this doesn't impact "if x is None", so +1. -- nosy: +ericsnow ___ Python tracker ___ ___ Python-bugs

[issue12647] Add __bool__ to None

2011-07-27 Thread Brett Cannon
Brett Cannon added the comment: It all sounds good to me. Less magic behind the scenes is good. -- nosy: +brett.cannon ___ Python tracker ___ ___

[issue8914] Run clang's static analyzer

2011-07-27 Thread Brett Cannon
Brett Cannon added the comment: I don't feel comfortable changing what is defined in a header file in a point release, so I am not going to backport the fix. -- ___ Python tracker _

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Jon
Jon added the comment: should the question be "what's the first mingw gcc version that -mno-cygwin usage unnecessary" rather than finding the first version the option was removed? and, does it matter whether you're building on win for win, or cross compiling for win from nix? sadly, i don't

[issue12646] zlib.Decompress.decompress/flush do not raise any exceptions when given truncated input streams

2011-07-27 Thread Oleg Oshmyan
Oleg Oshmyan added the comment: > faking another error code Actually, I think another call to inflate(), which would be valid at that point, would just return the other error code, so it can as well be faked. -- ___ Python tracker

[issue12646] zlib.Decompress.decompress/flush do not raise any exceptions when given truncated input streams

2011-07-27 Thread Oleg Oshmyan
Oleg Oshmyan added the comment: I believe the attached patch fixes this problem, making zlib.Decompress.flush() raise the exception raised by zlib.decompress(). In the same patch, I also took the opportunity to correct a wrong comment in the implementation of flush() and change the error mess

[issue11871] test_default_timeout() of test_threading.BarrierTests failure: BrokenBarrierError

2011-07-27 Thread Charles-François Natali
Charles-François Natali added the comment: > YES YOU CAN :-) -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.2 ___ Python tracker

[issue12647] Add __bool__ to None

2011-07-27 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +patch Added file: http://bugs.python.org/file22781/none_bool.diff ___ Python tracker ___

[issue12646] zlib.Decompress.decompress/flush do not raise any exceptions when given truncated input streams

2011-07-27 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-27 Thread Ezio Melotti
Ezio Melotti added the comment: IIRC we have been following what browsers do in other cases already. There were also some discussions about supporting HTML5 (see e.g. #7311 and #3) and the strict vs non-strict mode introduced in Python3. Note that changing the way things are parsed is gene

[issue9968] Let cgi.FieldStorage have named uploaded file

2011-07-27 Thread phep
phep added the comment: >> where does the 1ko barrier come from? Was it only chosen out of >> performance considerations [...] > > Most certainly. I’ll look at the history of the file later to try to > find the developer who decided that. Guido van Rossum made the changes. Before that a temp

[issue12607] subprocess(stdout=..., stderr=sys.stdout) breaks stderr for child

2011-07-27 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- assignee: -> rosslagerwall resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker ___ __

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Jon
Jon added the comment: I have confirmed on Win7 that the following 32bit MinGW flavors still recognize -mno-cygwin option and build without error: (4.5.2) http://tdm-gcc.tdragon.net/download (4.5.4) http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Automated%20B

[issue11871] test_default_timeout() of test_threading.BarrierTests failure: BrokenBarrierError

2011-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset aa9c0fdf2143 by Charles-François Natali in branch '3.2': Issue #11871: In test_threading.BarrierTests, bump the default barrier timeout http://hg.python.org/cpython/rev/aa9c0fdf2143 New changeset e8da570d29a8 by Charles-François Natali in branch 'd

[issue12647] Add __bool__ to None

2011-07-27 Thread Raymond Hettinger
New submission from Raymond Hettinger : Currently bool(None) returns False only because it has a special case in PyObject_IsTrue(). All other types can become False only if they implement __bool__() or __len__(). I propose removing the special case branch and instead adding __bool__ to None.

[issue12636] IDLE ignores -*- coding -*- with -r option

2011-07-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-07-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12603] pydoc.synopsis breaks if filesystem returns mtime of 0

2011-07-27 Thread Charles-François Natali
Changes by Charles-François Natali : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12603] pydoc.synopsis breaks if filesystem returns mtime of 0

2011-07-27 Thread Charles-François Natali
Charles-François Natali added the comment: Committed. Josh, thanks for the report. -- resolution: -> fixed stage: patch review -> committed/rejected ___ Python tracker ___

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems

2011-07-27 Thread Charles-François Natali
Charles-François Natali added the comment: Patch attached. -- keywords: +needs review, patch stage: -> patch review versions: +Python 3.2, Python 3.3 Added file: http://bugs.python.org/file22780/chown_hpux.diff ___ Python tracker

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-27 Thread R. David Murray
R. David Murray added the comment: I thought HTLM4 conformance was documented somewhere, but I could be wrong. HTML5, from what I understand (I haven't read the spec), is explicitly or implicitly following "what browsers really do" exactly because nobody conformed to HTML4, so arguing that "a

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Ruben Van Boxem
Ruben Van Boxem added the comment: > Does anyone have more official documentation? The commit I linked to has the full option removal at October 7 2010 (see the fifth item in the changelog entry). Any GCC (major) version released after that will have it completely removed. Deprecation happ

[issue12646] zlib.Decompress.decompress/flush do not raise any exceptions when given truncated input streams

2011-07-27 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12380] bytearray methods center, ljust, rjust don't accept a bytearray as the fill character

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen added the comment: Updated the patch to add tests for {bytes,bytearray}.{center,ljust,rjust}. The tests check that both bytes and bytearray are always accepted as the fill character. -- Added file: http://bugs.python.org/file22779/c_format_bytearray_plus_additional_tes

[issue11871] test_default_timeout() of test_threading.BarrierTests failure: BrokenBarrierError

2011-07-27 Thread STINNER Victor
STINNER Victor added the comment: YES YOU CAN -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1813] Codec lookup failing under turkish locale

2011-07-27 Thread R. David Murray
R. David Murray added the comment: I'm seeing this test failure in Gentoo, as well. -- nosy: +r.david.murray ___ Python tracker ___ __

[issue10639] reindent.py should not convert newlines

2011-07-27 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10639] reindent.py should not convert newlines

2011-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset f9cf55bbe9b9 by Jason R. Coombs in branch '2.7': Fixes #10639: reindent.py should not convert newlines http://hg.python.org/cpython/rev/f9cf55bbe9b9 -- ___ Python tracker

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-27 Thread Matt Basta
Matt Basta added the comment: > Yes, but we don't claim to support HTML5 yet. There's also no claim in the docs or the source that HTMLParser specifically adheres to HTML4, either. Ideally, the parser should strive for parity with the functionality of major web browsers, as they are the de-f

[issue8914] Run clang's static analyzer

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen added the comment: Regarding issue 12595 (function redeclaration warning when including Python.h), could a small part (or optionally all) of this patch be backported to 3.2? -- nosy: +petri.lehtinen ___ Python tracker

[issue12595] python.h redundant redeclarations

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen added the comment: Attached a partial patch for from issue 8914 that should deal with this issue in 3.2. -- keywords: +patch Added file: http://bugs.python.org/file22778/issue12595.patch ___ Python tracker

[issue12646] zlib.Decompress.decompress/flush do not raise any exceptions when given truncated input streams

2011-07-27 Thread Oleg Oshmyan
New submission from Oleg Oshmyan : If a truncated input stream is given to the zlib.decompress function, it raises a zlib.error. However, if the same stream is fed to a zlib.Decompress object, no exception is raised during the entire lifetime of the object. Attached is an example demonstrating

[issue2733] mmap resize fails on anonymous memory

2011-07-27 Thread Piotr Zolnierczuk
Piotr Zolnierczuk added the comment: I wonder if this is related to the problem I reported about two weeks ago http://bugs.python.org/issue12562? -- nosy: +zolnie ___ Python tracker

[issue12645] test.support. import_fresh_module - incorrect doc

2011-07-27 Thread Eli Bendersky
New submission from Eli Bendersky : >From Ezio Melotti's email to python-dev: diff --git a/Doc/library/test.rst b/Doc/library/test.rst --- a/Doc/library/test.rst +++ b/Doc/library/test.rst @@ -447,7 +447,7 @@ Module and package deprecation messages are suppressed during

[issue12576] urlib.request fails to open some sites

2011-07-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Never mind. This changeset got applied to 2.7 (thanks!) but didn't get linked in the tracker. changeset: 71523:b66bbbdc7abd branch: 2.7 parent: 71518:73ae3729b8fe user:Senthil Kumaran date:Wed Jul 27 09:37:17 2011 +0800 summary:

[issue12380] bytearray methods center, ljust, rjust don't accept a bytearray as the fill character

2011-07-27 Thread Eli Bendersky
Eli Bendersky added the comment: Looks good. How about also adding some tests for the original request of supporting bytearrays in ljust/rjust/center? -- ___ Python tracker ___

[issue12603] pydoc.synopsis breaks if filesystem returns mtime of 0

2011-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f003d725619 by Charles-François Natali in branch 'default': Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime. http://hg.python.org/cpython/rev/5f003d725619 -- ___ Python tracker <

[issue12603] pydoc.synopsis breaks if filesystem returns mtime of 0

2011-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2bc740a83010 by Charles-François Natali in branch '3.2': Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime. http://hg.python.org/cpython/rev/2bc740a83010 -- ___ Python tracker

[issue12603] pydoc.synopsis breaks if filesystem returns mtime of 0

2011-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2229b0422369 by Charles-François Natali in branch '2.7': - Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime. http://hg.python.org/cpython/rev/2229b0422369 -- nosy: +python-dev ___ P

[issue12576] urlib.request fails to open some sites

2011-07-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Re-opening, as I think this needs to still be applied to Python 2.7. -- status: closed -> open ___ Python tracker ___

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-27 Thread R. David Murray
R. David Murray added the comment: Yes, but we don't claim to support HTML5 yet. The best way to support HTML5 is probably a topic for python-dev. -- ___ Python tracker ___ __

[issue11049] add tests for test.support

2011-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0f09b7f90060 by Eli Bendersky in branch 'default': Issue #11049: added test_support to regrtest.STDTESTS list http://hg.python.org/cpython/rev/0f09b7f90060 -- ___ Python tracker

[issue12644] document the "%a" conversion in the old string formatting operations

2011-07-27 Thread Eli Bendersky
Eli Bendersky added the comment: Yeah, the note should probably be clarified to mention that if precision is specified, only the first precision characters will be shown. The field width is covered globally (for all conversion types) in note 4 above the table. While we're at it, note 5 is:

[issue12644] document the "%a" conversion in the old string formatting operations

2011-07-27 Thread Ezio Melotti
Ezio Melotti added the comment: ISTM that it applies to both %s and %a, but the note is wrong/imprecise. The precision determines where the string is truncated, but the actual number of characters is given by the field width. -- nosy: +ezio.melotti ___

[issue12607] subprocess(stdout=..., stderr=sys.stdout) breaks stderr for child

2011-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6119440bae30 by Ross Lagerwall in branch '2.7': Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr is http://hg.python.org/cpython/rev/6119440bae30 -- ___ Python tracker

[issue12644] document the "%a" conversion in the old string formatting operations

2011-07-27 Thread Eli Bendersky
Eli Bendersky added the comment: %r has note (5) saying "The precision determines the maximal number of characters used." Does this apply to %a as well? Other than that, LGTM -- ___ Python tracker _

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-27 Thread Matt Basta
Matt Basta added the comment: > So I think the example is invalid (should escape the <), and that HTMLParser > is not buggy. On the other hand, the HTML5 spec clearly dictates otherwise: http://www.w3.org/TR/html5/syntax.html#cdata-rcdata-restrictions The text in raw text and RCDATA elements

[issue11871] test_default_timeout() of test_threading.BarrierTests failure: BrokenBarrierError

2011-07-27 Thread Charles-François Natali
Charles-François Natali added the comment: Victor, can I commit it? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-27 Thread Charles-François Natali
Charles-François Natali added the comment: The patch looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10639] reindent.py should not convert newlines

2011-07-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: > Instead of writing a new class, what about using io.open instead of the > builtin? Then you’ll be able to use the same patch than 3.2. Ooh. Excellent suggestion. -- ___ Python tracker

[issue1724822] provide a shlex.split alternative for Windows shell syntax

2011-07-27 Thread Éric Araujo
Éric Araujo added the comment: > But surely it's not named "POSIX mode" for no reason. It's because > those rules resemble those of the UNIX shell. While "non-POSIX mode" > resemble those of non-POSIX shells, such as DOS. Not exactly: when it comes to parsing, shells on POSIX systems don’t alwa

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-27 Thread R. David Murray
R. David Murray added the comment: It's not buggy, but it is also not helpful. This kind of thing is what we introduced the 'strict' parameter for. And indeed I believe we've fixed some of these cases thereby. So any additional fixes should go into non-strict mode in Python3. -- v

[issue12621] Errors in docstrings of find and rfind methods of bytes and bytestring

2011-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3aebd01a033 by Senthil Kumaran in branch '3.2': Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry/unicodeobject. http://hg.python.org/cpython/rev/c3aebd01a033 New changeset 842494d73f69 by Senthil Kumaran in branc

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-27 Thread Éric Araujo
Éric Araujo added the comment: Apart from one change (testing for “self._request is not None”), the patch is ready. Thanks! -- ___ Python tracker ___ _

[issue9968] Let cgi.FieldStorage have named uploaded file

2011-07-27 Thread Éric Araujo
Éric Araujo added the comment: > where does the 1ko barrier come from? Was it only chosen out of > performance considerations [...] Most certainly. I’ll look at the history of the file later to try to find the developer who decided that. > tempfile.NamedTemporaryFile was already used in pyth

[issue10639] reindent.py should not convert newlines

2011-07-27 Thread Éric Araujo
Éric Araujo added the comment: > The patch is a little more intrusive than the Python 3 patch because > Python 2.7 doesn't allow specifying the newline to use when writing a > file (afaict) Instead of writing a new class, what about using io.open instead of the builtin? Then you’ll be able to

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-27 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file22776/fbf2f56d225f.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-27 Thread Éric Araujo
Éric Araujo added the comment: Ezio wrote: >>> myhp.feed('

foo

') data: 'foo' # where's the ? http://www.w3.org/TR/html4/types#type-cdata says: Although the STYLE and SCRIPT elements use CDATA for their data model, for these elements, CDATA must be handled differently by user ag

[issue12029] ABC registration of Exceptions

2011-07-27 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file22772/generictramadolhclonline.html ___ Python tracker ___ ___ Python-bugs-l

[issue12029] ABC registration of Exceptions

2011-07-27 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file22770/cheapcodfedextramadolvery.html ___ Python tracker ___ ___ Python-bugs-

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Éric Araujo
Éric Araujo added the comment: I forgot to answer this: > Why is -mno-cygwin still be used, Simply because distutils had no dedicated maintainer for a long time, and because nobody was aware of this change. I don’t think any Python core developer is using Cygwin. > and is there any reason w

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Éric Araujo
Éric Araujo added the comment: Hi! Thanks for the report. This can’t be fixed in 2.5, 2.6 or 3.1, which are in security-fix only mode, but we can do something for the active branches. A quick web search finds reference of this deprecation/removal as far as 2007. Does anyone have more offic

[issue12644] document the "%a" conversion in the old string formatting operations

2011-07-27 Thread Éric Araujo
Éric Araujo added the comment: I don’t think anyone could find anything wrong with the patch. -- stage: patch review -> commit review ___ Python tracker ___

[issue12644] document the "%a" conversion in the old string formatting operations

2011-07-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +docs@python, eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue12644] document the "%a" conversion in the old string formatting operations

2011-07-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy, patch -gsoc stage: -> patch review Added file: http://bugs.python.org/file22774/issue12644.diff ___ Python tracker ___

[issue12644] document the "%a" conversion in the old string formatting operations

2011-07-27 Thread Eli Bendersky
New submission from Eli Bendersky : The 'a' conversion type isn't documented in library/stdtypes.rst -- assignee: eli.bendersky components: Documentation keywords: gsoc messages: 141228 nosy: eli.bendersky priority: low severity: normal status: open title: document the "%a" conversion in

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread aliles
aliles added the comment: Yes. I have code that behaves differently under CPython and PyPy because of this issue. Admittedly that code is somewhat evil. It's attached for reference, in particular the __HelpSyntax class. -- Added file: http://bugs.python.org/file22773/startup.py

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread STINNER Victor
STINNER Victor added the comment: > If it's not possible for InteractiveConsole to allow exceptions > to propagate through sys.excepthook. Ok, I was not sure that I understood correctly. This change should be an option to not break existing code. -- __

[issue12029] ABC registration of Exceptions

2011-07-27 Thread junior1971
Changes by junior1971 : Added file: http://bugs.python.org/file22772/generictramadolhclonline.html ___ Python tracker ___ ___ Python-bugs-list

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread aliles
aliles added the comment: OK. Not something I was expecting to be asked. But cool :D If it's not possible for InteractiveConsole to allow exceptions to propagate through sys.excepthook. (I assume they are being caught in a try: catch: block) check sys.excepthook for a custom exception handler

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread STINNER Victor
STINNER Victor added the comment: What do you suggest? -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue6288] Update contextlib.nested docs in light of deprecation

2011-07-27 Thread Nick Coghlan
Nick Coghlan added the comment: Indeed it is, although we think actually doing that is a bad idea (as discussed earlier on this tracker item). See the 3.1 docs for the recommended workaround for the removal (basically grab a copy of the 3.1 code and drop it into your own utility module)

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread aliles
New submission from aliles : code.InteractiveConsole doesn't match the CPython interactive interpreter with respect to allowing sys.excepthook to handle exceptions. Unlike the interactive interpreter, replacing sys.excepthook with an alternate function will not change exception handling behavi

[issue12029] ABC registration of Exceptions

2011-07-27 Thread junior1971
Changes by junior1971 : Added file: http://bugs.python.org/file22770/cheapcodfedextramadolvery.html ___ Python tracker ___ ___ Python-bugs-lis

[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2011-07-27 Thread Björn Lindqvist
Björn Lindqvist added the comment: I don't have the expertise to backport it myself, but the problem certainly is still present in python 2.7.1 on Windows 7. It is especially pronounced when using threading to read from multiple url files. -- nosy: +bjourne __

[issue12595] python.h redundant redeclarations

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen added the comment: After hitting the submit button, I realized that Python.h is of course included when embedding Python, so the fix could be backported to 3.2. -- keywords: +easy resolution: duplicate -> stage: -> needs patch status: closed -> open superseder: Run cla

[issue12595] python.h redundant redeclarations

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen added the comment: Already fixed in 3.3 as a part of issue 8914. This does not cause a compilation failure with the default build flags, so there's no need to backport to older versions. Closing as duplicate of issue 8914. -- nosy: +petri.lehtinen resolution: -> dupli

[issue12631] Mutable Sequence Type in .remove() is consistent only with lists, but not with bytearrays

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen added the comment: Duplicate of issue 12170. -- nosy: +petri.lehtinen superseder: -> index() and count() methods of bytes and bytearray should accept byte ints ___ Python tracker _

[issue12294] multiprocessing.Pool: Need a way to find out if work are finished.

2011-07-27 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- keywords: +easy nosy: +jnoller stage: test needed -> needs patch ___ Python tracker ___ ___ Python-bugs

[issue12381] refactor slice checks made by methods that take "slice like" arguments

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen added the comment: R. David Murray wrote: > Note that both of these have been fixed in default, so I'm > repurposing this issue for the refactoring I suggested. > However, since I can't find an existing issue for the bytearray > fix, maybe somebody already did it and I didn't noti

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen added the comment: Ok, so the current raising semantics should be good. -- ___ Python tracker ___ ___ Python-bugs-list

[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen added the comment: Attached an updated patch: - the test now uses support.skip_unless_symlink decorator - added an explicit assertion ensuring that the contents of the linked directory aren't deleted - removed issue reference from the code -- Added file: http://bugs.p

[issue6288] Update contextlib.nested docs in light of deprecation

2011-07-27 Thread Ask Solem
Ask Solem added the comment: How would you replace the following functionality with the multiple with statement syntax: x = (A(), B(), C()) with nested(*x) as context: It seems to me that nested() is still useful for this particular use case. -- nosy: +asksol _

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-27 Thread Charles-François Natali
Charles-François Natali added the comment: > I wrote the patch. While the patch fixes most of the issues I'm not entirely > happy with it and that's the reason I have not submitted it. Could you submit it here so that we can help you get it in shape for inclusion? That way we'll all benefit fr

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-27 Thread Federico Schwindt
Federico Schwindt added the comment: I wrote the patch. While the patch fixes most of the issues I'm not entirely happy with it and that's the reason I have not submitted it. -- ___ Python tracker ___

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-27 Thread Charles-François Natali
Charles-François Natali added the comment: > patch-Modules_selectmodule_c is not enough to fix kqueue_event_init(): it > doesn't catch overflow error on the ident attribute. This patch is not correct. Furthermore, it's another occurrence of something I don't understand with distributions: why