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

2011-07-27 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I left a review about your patch on rietveld, including a description of what I think it's going on there (the patch lacks some context and it's not easy to figure out how everything works there). I also did some tests with and without the

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-27 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-27 Thread Federico Schwindt
Federico Schwindt federico.schwi...@gmail.com 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 rep...@bugs.python.org

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-27 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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

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

2011-07-27 Thread Ask Solem
Ask Solem a...@celeryproject.org 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.

[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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

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

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Ok, so the current raising semantics should be good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170 ___

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

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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

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

2011-07-27 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- keywords: +easy nosy: +jnoller stage: test needed - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12294 ___

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

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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 rep...@bugs.python.org

[issue12595] python.h redundant redeclarations

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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

[issue12595] python.h redundant redeclarations

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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

[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 bjou...@gmail.com 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

[issue12029] ABC registration of Exceptions

2011-07-27 Thread junior1971
Changes by junior1971 junior1...@meta.ua: Added file: http://bugs.python.org/file22770/cheapcodfedextramadolvery.html ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12029 ___

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread aliles
New submission from aliles aaron.i...@gmail.com: 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

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

2011-07-27 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: What do you suggest? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12643 ___

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread aliles
aliles aaron.i...@gmail.com 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

[issue12029] ABC registration of Exceptions

2011-07-27 Thread junior1971
Changes by junior1971 junior1...@meta.ua: Added file: http://bugs.python.org/file22772/generictramadolhclonline.html ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12029 ___

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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. --

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread aliles
aliles aaron.i...@gmail.com 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:

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Ralf Schmitt
Changes by Ralf Schmitt python-b...@systemexit.de: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12641 ___ ___ Python-bugs-list

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

2011-07-27 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: 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

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

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

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

2011-07-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +docs@python, eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12644 ___ ___

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

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t think anyone could find anything wrong with the patch. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12644

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue12029] ABC registration of Exceptions

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

[issue12029] ABC registration of Exceptions

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

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

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Ezio wrote: myhp.feed('scriptpfoo/p/script') data: 'pfoo' # where's the /p? 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

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

2011-07-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Added file: http://bugs.python.org/file22776/fbf2f56d225f.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12614 ___

[issue10639] reindent.py should not convert newlines

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue9968] Let cgi.FieldStorage have named uploaded file

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Apart from one change (testing for “self._request is not None”), the patch is ready. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12614

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

2011-07-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2011-07-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue10639] reindent.py should not convert newlines

2011-07-27 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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

[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-27 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: The patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12464 ___

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

2011-07-27 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Victor, can I commit it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11871 ___

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

2011-07-27 Thread Matt Basta
Matt Basta bastaw...@gmail.com 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

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

2011-07-27 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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 rep...@bugs.python.org

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

2011-07-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 --

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

2011-07-27 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

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

2011-07-27 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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

[issue11049] add tests for test.support

2011-07-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2011-07-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org http://bugs.python.org/issue670664

[issue12576] urlib.request fails to open some sites

2011-07-27 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Re-opening, as I think this needs to still be applied to Python 2.7. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12576

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

2011-07-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2011-07-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 --

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

2011-07-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 --

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

2011-07-27 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Looks good. How about also adding some tests for the original request of supporting bytearrays in ljust/rjust/center? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12380

[issue12576] urlib.request fails to open some sites

2011-07-27 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org 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 sent...@uthcode.com date:Wed

[issue12645] test.support. import_fresh_module - incorrect doc

2011-07-27 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: 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

[issue2733] mmap resize fails on anonymous memory

2011-07-27 Thread Piotr Zolnierczuk
Piotr Zolnierczuk piotr.zolnierc...@gmail.com 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 rep...@bugs.python.org

[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 chor...@inbox.lv: 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

[issue12595] python.h redundant redeclarations

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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

[issue8914] Run clang's static analyzer

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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

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

2011-07-27 Thread Matt Basta
Matt Basta bastaw...@gmail.com 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,

[issue10639] reindent.py should not convert newlines

2011-07-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue10639] reindent.py should not convert newlines

2011-07-27 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10639 ___

[issue1813] Codec lookup failing under turkish locale

2011-07-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm seeing this test failure in Gentoo, as well. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1813 ___

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

2011-07-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: YES YOU CAN -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11871 ___ ___

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

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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:

[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 pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12646 ___ ___ Python-bugs-list

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Ruben Van Boxem
Ruben Van Boxem vanboxem.ru...@gmail.com 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

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

2011-07-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems

2011-07-27 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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

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

2011-07-27 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Committed. Josh, thanks for the report. -- resolution: - fixed stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12603

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

2011-07-27 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12603 ___ ___

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

2011-07-27 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170 ___ ___

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

2011-07-27 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12636 ___ ___

[issue12647] Add __bool__ to None

2011-07-27 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: 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

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

2011-07-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Jon
Jon jon.for...@gmail.com 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)

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

2011-07-27 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- assignee: - rosslagerwall resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12607

[issue9968] Let cgi.FieldStorage have named uploaded file

2011-07-27 Thread phep
phep patrice.pil...@teletopie.net 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

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

2011-07-27 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

[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 nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12646 ___ ___

[issue12647] Add __bool__ to None

2011-07-27 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file22781/none_bool.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12647

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

2011-07-27 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: YES YOU CAN :-) -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

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

2011-07-27 Thread Oleg Oshmyan
Oleg Oshmyan chor...@inbox.lv 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

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

2011-07-27 Thread Oleg Oshmyan
Oleg Oshmyan chor...@inbox.lv 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

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Jon
Jon jon.for...@gmail.com 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

[issue8914] Run clang's static analyzer

2011-07-27 Thread Brett Cannon
Brett Cannon br...@python.org 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 rep...@bugs.python.org

[issue12647] Add __bool__ to None

2011-07-27 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: It all sounds good to me. Less magic behind the scenes is good. -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12647

[issue12647] Add __bool__ to None

2011-07-27 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: And this doesn't impact if x is None, so +1. -- nosy: +ericsnow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12647 ___

[issue12647] Add __bool__ to None

2011-07-27 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue12647

[issue12647] Add __bool__ to None

2011-07-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 pit...@free.fr 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