[issue18569] Set PATHEXT in the Windows installer

2013-07-27 Thread Paul Moore
New submission from Paul Moore: Make the Windows Python installer set PATHEXT when "Register Python extensions" is set. This allows users to run a scripy by typing the name of the .py file at the command line without the .py extension. The patch needs review - I have not been able to build the

[issue18472] Update PEP 8 to encourage modern conventions

2013-07-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: > 1. Added an intro paragraph that makes it clear this is a living document, > not "set and forget". If we want to make this a living document, I think the PEP will have to receive its own internal version number and a history section at the end explaining

[issue18570] OverflowError during division: wrong message

2013-07-27 Thread Marco Buttu
New submission from Marco Buttu: When the integer division result is too large to converto to float, and the operands are inside the limits, the result is `inf` or `-inf`:: >>> 2**1023 / 2**-3 inf >>> 2**1022 / 2**-4 inf >>> 2**1023 / 2**-1074 inf When both the result a

[issue18570] OverflowError during division: wrong message

2013-07-27 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes, mark.dickinson versions: -Python 3.1, Python 3.2 ___ Python tracker ___ ___

[issue8425] a -= b should be fast if a is a small set and b is a large set

2013-07-27 Thread Michele Orrù
Michele Orrù added the comment: ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue18472] Update PEP 8 to encourage modern conventions

2013-07-27 Thread Guido van Rossum
Guido van Rossum added the comment: This is mostly fine. FWIW I disagree with MAL's assertion that we need to start adding internal versioning; people who "lawyer" about which version of the PEP should apply are focused on the wrong thing entirely. IIUC the occasional Python-3-specific rule

[issue17036] Implementation of the PEP 433: Easier suppression of file descriptor inheritance

2013-07-27 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file31052/ecc10f0afb76.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue17036] Implementation of the PEP 433: Easier suppression of file descriptor inheritance

2013-07-27 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file31052/ecc10f0afb76.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue18571] Implementation of the PEP 446: non-inheriable file descriptors

2013-07-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: haypo priority: normal severity: normal status: open title: Implementation of the PEP 446: non-inheriable file descriptors type: enhancement versions: Python 3.4 ___ Python tracker

[issue18571] Implementation of the PEP 446: non-inheriable file descriptors

2013-07-27 Thread STINNER Victor
Changes by STINNER Victor : -- hgrepos: +205 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue18571] Implementation of the PEP 446: non-inheriable file descriptors

2013-07-27 Thread STINNER Victor
New submission from STINNER Victor: Implementation of the PEP 446. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue18572] Remove redundant note about surrogates in string escape doc

2013-07-27 Thread Steven D'Aprano
New submission from Steven D'Aprano: The documentation for string escapes suggests that \u escapes can be used to generate characters in the Supplementary Multilingual Planes by using surrogate pairs: "Individual code units which form parts of a surrogate pair can be encoded using this es

[issue18571] Implementation of the PEP 446: non-inheriable file descriptors

2013-07-27 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch Added file: http://bugs.python.org/file31053/327133193321.diff ___ Python tracker ___

[issue18573] In unittest.TestCase.assertWarns doc there is some text about assertRaises()

2013-07-27 Thread py.user
New submission from py.user: http://docs.python.org/3/library/unittest.html#unittest.TestCase.assertWarns "When used as a context manager, assertRaises() accepts" "... is to perform additional checks on the exception raised" -- assignee: docs@python components: Documentation files: issue

[issue18572] Remove redundant note about surrogates in string escape doc

2013-07-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch type: -> behavior versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-

[issue18573] In unittest.TestCase.assertWarns doc there is some text about assertRaises()

2013-07-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch versions: +Python 2.7, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list ma

[issue18539] Idle 2.7: Calltip wrong if def contains float default value

2013-07-27 Thread ariel brunner
ariel brunner added the comment: Superb, and thanks for doing the actual work on fixing it. -- ___ Python tracker ___ ___ Python-bugs-

[issue18570] OverflowError in division: wrong message

2013-07-27 Thread Marco Buttu
Changes by Marco Buttu : -- title: OverflowError during division: wrong message -> OverflowError in division: wrong message ___ Python tracker ___ __

[issue18572] Remove redundant note about surrogates in string escape doc

2013-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.3.2: >>> '\uD80C\uDC80' == '\U00013080' False The statement that surrogate code units can be encoded this way is still true. Indeed, it is now the only way to get such code units into a string. The suggestion that a pair will make an astral char is now false

[issue18573] In unittest.TestCase.assertWarns doc there is some text about assertRaises()

2013-07-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: docs@python -> terry.reedy nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mai

[issue18573] In unittest.TestCase.assertWarns doc there is some text about assertRaises()

2013-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 55dcf9e065be by Terry Jan Reedy in branch '3.3': Issue #18573: Complete copy-paste from assertRaises entry to assertWarns entry. http://hg.python.org/cpython/rev/55dcf9e065be -- nosy: +python-dev ___ Pyth

[issue18573] In unittest.TestCase.assertWarns doc there is some text about assertRaises()

2013-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: assertWarns is new in 3.2 and not in 2.7. The sentence was copied from the assertRaises section but not changed. Thanks for reporting. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed type: enhancement -> behavior

[issue18570] OverflowError in division: wrong message

2013-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, 'long int' should just be 'int' in 3.x. However, int/int (integer division) is *not* the same thing as int/float. In the latter case, the int is converted to float first and if that conversion fails, there is no result. Now that int/int is always convert

[issue18565] Test for closing delegating generator with cleared frame (Issue17669)

2013-07-27 Thread Phil Connell
Phil Connell added the comment: Good suggestion, updated patch attached. -- Added file: http://bugs.python.org/file31055/gen_close_with_cleared_frame.diff ___ Python tracker ___

[issue18564] Integer overflow in socketmodule

2013-07-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Instead of writing try / except / self.fail, you could simply use the context manager form of assertRaises. -- nosy: +neologix, pitrou ___ Python tracker _

[issue18112] PEP 442 implementation

2013-07-27 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue18566] In unittest.TestCase docs for setUp() and tearDown() don't mention AssertionError

2013-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I re-ran with setUp 'raise' changed to 'pass' to see the effect of raise AssertionError or unittest.SkipTest in tearDown and indeed the test fails or skips even then. I suggest adding ', other than AssertionError or SkipTest,' just after 'method'. The same is

[issue17669] Segfault caused by weird combination of imports and yield from

2013-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 516303f32bad by Benjamin Peterson in branch '3.3': add a test for issue #17669 (closes #18565) http://hg.python.org/cpython/rev/516303f32bad -- ___ Python tracker

[issue18565] Test for closing delegating generator with cleared frame (Issue17669)

2013-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 516303f32bad by Benjamin Peterson in branch '3.3': add a test for issue #17669 (closes #18565) http://hg.python.org/cpython/rev/516303f32bad New changeset f90e7540dcba by Benjamin Peterson in branch 'default': merge 3.3 (#18565) http://hg.python.org

[issue18564] Integer overflow in socketmodule

2013-07-27 Thread Michele Orrù
Changes by Michele Orrù : Added file: http://bugs.python.org/file31056/issue18564.1.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18441] Idle: Make test.support.requires('gui') skip when it should.

2013-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset dd9941f5fcda by Terry Jan Reedy in branch '2.7': Issue #18441: Make test.support.requires('gui') skip when it should. http://hg.python.org/cpython/rev/dd9941f5fcda New changeset d9a53ab464ea by Terry Jan Reedy in branch '2.7': Issue #18441: Correct

[issue18564] Integer overflow in socketmodule

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

[issue18112] PEP 442 implementation

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

[issue18574] BaseHTTPRequestHandler.handle_expect_100() sends invalid response

2013-07-27 Thread Nikolaus Rath
New submission from Nikolaus Rath: The handle_expect_100() implementation in BaseHTTPRequestHandler currently calls send_response_only(100) followed by flush_headers(). However, even a 1xx response is always followed by a (potentially empty) set of response headers (cf. http://tools.ietf.org/h

[issue18574] BaseHTTPRequestHandler.handle_expect_100() sends invalid response

2013-07-27 Thread Nikolaus Rath
Nikolaus Rath added the comment: The correct link is http://tools.ietf.org/html/rfc2616#section-10.1: 10.1 Informational 1xx This class of status code indicates a provisional response, consisting only of the Status-Line and optional headers, and is terminated by an empty line. [...]

[issue18571] Implementation of the PEP 446: non-inheriable file descriptors

2013-07-27 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file31058/c066794c85cd.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue18571] Implementation of the PEP 446: non-inheriable file descriptors

2013-07-27 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file31053/327133193321.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue18441] Idle: Make test.support.requires('gui') skip when it should.

2013-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9a4c62c1a4c0 by Terry Jan Reedy in branch '2.7': Issue #18441: add Mac (darwin) gui check. This is not needed today, but has been http://hg.python.org/cpython/rev/9a4c62c1a4c0 New changeset ba5c264d67ea by Terry Jan Reedy in branch '2.7': Issue #184

[issue1521051] Allow passing DocTestRunner and DocTestCase in doctest

2013-07-27 Thread Jason Myers
Jason Myers added the comment: The attached file contains a simple test for this code to make sure the test runner is being applied. I've never submitted anything before, so it might be totally naive. -- nosy: +jasonamyers Added file: http://bugs.python.org/file31059/test.patch _

[issue12129] Document Object Model API - validation

2013-07-27 Thread John Cassidy
John Cassidy added the comment: I added the line print(str(doc)) after the call to getDomImplementation and verified that the errors that I'm seeing are coming from the xml.dom.minidom implemenation of xml.dom. Checking minidom.py I did not see any validation on the tagName that gets passed t

[issue18441] Idle: Make test.support.requires('gui') skip when it should.

2013-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tried to run the currently unnecessary Mac 'darwin' check in 2.7 with if sys.platform == 'darwin': from lib-tk.test.runtktests import check_tk_availability # tkinter.test.suppport in 3.x try: check_tk_

[issue18441] Idle: Make test.support.requires('gui') skip when it should.

2013-07-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3936a52f215 by Terry Jan Reedy in branch '3.3': Issue #18441: Make test.support.requires('gui') skip when it should. http://hg.python.org/cpython/rev/c3936a52f215 New changeset 858a72d91162 by Terry Jan Reedy in branch '2.7': Issue #18441: Move com

[issue8425] a -= b should be fast if a is a small set and b is a large set

2013-07-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: There's no rush on this. I have other work I want to do on set objects before applying further optimizations, so I want to hold off on it for a bit. -- ___ Python tracker _

[issue18472] Update PEP 8 to encourage modern conventions

2013-07-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: - I think we should recommend against tabs outright. They are getting more and more misunderstood. +1 Perhaps also mention that Python 3 now raises TabError for inconsistent tabs and spaces. - Regarding line length, I think it is reasonable to mention t

[issue18472] Update PEP 8 to encourage modern conventions

2013-07-27 Thread Nick Coghlan
Nick Coghlan added the comment: The exception one is near-and-dear to my heart at the moment, as we're in the process of refactoring a large app that currently does various checks in the UI layer so it can present nice errors, when it should really be leaving those checks to the business logic la

[issue18112] PEP 442 implementation

2013-07-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: Modulo earlier comments, I think it looks good to land. -- ___ Python tracker ___ ___ Python-bugs