[issue29541] Python3 error while building on Alt-F

2017-02-12 Thread Honza Skýpala
New submission from Honza Skýpala: While trying to build Python 3.6.0 on emmbedded Linux device — D-Link DNS-320L running Alt-F firmware (Linux 3.18.28 #1 Fri Jun 17 14:44:39 WEST 2016 armv5tel GNU/Linux), it fails with ./python: can't resolve symbol 'crypt' make: *** [sharedmods] Error 1 I

[issue29481] 3.6.0 doc describes 3.6.1 feature - typing.Deque

2017-02-12 Thread Thomas Caswell
Changes by Thomas Caswell : -- pull_requests: +50 ___ Python tracker ___ ___

[issue29514] Add a test case that prevents magic number changes in minor releases

2017-02-12 Thread Łukasz Langa
Łukasz Langa added the comment: I commented on the original issue where the magic number was changed. This broke the world at work for me. Our distribution mechanism for Python programs is zipped bundles of .pyc and .so files, the optimized variant doesn't keep .py files around. So suddenly

[issue29481] 3.6.0 doc describes 3.6.1 feature - typing.Deque

2017-02-12 Thread Thomas Caswell
Thomas Caswell added the comment: I agree this is very confusing (and in fact confused me for about an hour between getting import errors, double checking the docs, checking I was in the right env, double checking the docs, checking the source of my env, double checking the docs, checking the

[issue29424] Multiple vulnerabilities in BaseHTTPRequestHandler enable HTTP response splitting attacks

2017-02-12 Thread Benjamin Gilbert
Changes by Benjamin Gilbert : -- nosy: +bgilbert ___ Python tracker ___ ___

[issue29540] Add compact=True flag to json.dump/dumps

2017-02-12 Thread Alex Gordon
New submission from Alex Gordon: Broadly speaking, there are three main output styles for json.dump/dumps: 1. Default: json.dumps(obj) 2. Compact: json.dumps(obj, separators=(',', ':')) 3. Pretty-printing: json.dumps(obj, sort_keys=True, indent=4) The 'compact' style is the densest, suitable

[issue29539] [smtplib] collect response data for all recipients

2017-02-12 Thread David Ford (FirefighterBlu3)
New submission from David Ford (FirefighterBlu3): Feature request; collect SMTP response results for all recipients so data likely including the queue ID or SMTP delay expectation can be collected I propose the keyword "keep_results=False" be added to smtplib.sendmail() to accomplish this.

[issue29538] bugs.python.org does not redirect to HTTPS

2017-02-12 Thread Paul Schreiber
New submission from Paul Schreiber: bugs.python.org does not redirect HTTP requests to HTTPS and does not provide Strict Transport Security. -- messages: 287661 nosy: paulschreiber priority: normal severity: normal status: open title: bugs.python.org does not redirect to HTTPS type:

[issue19675] Pool dies with excessive workers, but does not cleanup

2017-02-12 Thread Dustin Oprea
Dustin Oprea added the comment: https://github.com/python/cpython/pull/57 On Sun, Feb 12, 2017 at 5:29 PM, Camilla Montonen wrote: > > Camilla Montonen added the comment: > > @dsoprea: would you like to open a PR for this issue on Github? if not, > are you happy for me

[issue29514] Add a test case that prevents magic number changes in minor releases

2017-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't understand how the table can make maintaining easier. You need to support multiple values in every branch even if the only one value is used. I'm sure unused values will became outdated pretty fast. "alpha" and "beta" stages are not related here.

[issue19675] Pool dies with excessive workers, but does not cleanup

2017-02-12 Thread Camilla Montonen
Camilla Montonen added the comment: @dsoprea: would you like to open a PR for this issue on Github? if not, are you happy for me to do it? -- ___ Python tracker

[issue29524] Move functions to call objects into a new Objects/call.c file

2017-02-12 Thread STINNER Victor
STINNER Victor added the comment: commit c22bfaae83ab5436d008ac0d13e7b47cbe776f08 Author: Victor Stinner Date: Sun Feb 12 19:27:05 2017 +0100 bpo-29524: Add Objects/call.c file (#12) * Move all functions to call objects in a new Objects/call.c file.

[issue29514] Add a test case that prevents magic number changes in minor releases

2017-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: Regarding the naming of the test file: I agree this can just be added to Lib/test/test_importlib/test_util:MagicNumberTests rather than being added as a new test file. -- ___ Python tracker

[issue29514] Add a test case that prevents magic number changes in minor releases

2017-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: I think the table of expected magic numbers will be easier to maintain than a single value, as otherwise you either have to: - update it every time the magic number changes during the alpha/beta cycle (which would be a bad habit to encourage, since it runs

[issue29527] Travis: doc job is broken

2017-02-12 Thread STINNER Victor
STINNER Victor added the comment: I see that Travis CI now compiles the doc to HTML, there is a single warning and the doc works. So I close the issue. Thanks! If you want to upgrade Sphinx, fix more warnings, etc. : please open new more specific issues for these tasks. --

[issue14044] IncompleteRead error with urllib2 or urllib.request -- fine with urllib, wget, or curl

2017-02-12 Thread CJ Kucera
CJ Kucera added the comment: Ah, well, actually I suppose I'll rescind that a bit - other pages about this bug around the internet had been claiming that the 'requests' module uses urllib in the backend and was subject to this bug as well, but after experimenting myself, it seems like if that

[issue29514] Add a test case that prevents magic number changes in minor releases

2017-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the purpose of having a *table* of magic numbers? We need just one value. Different Python versions run different tests. And I don't think this test needs adding separate file. -- ___ Python tracker

[issue28929] Provide a link from documentation back to its source file

2017-02-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks all :) PRs have been merged on GitHub. Closing this. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue29514] Add a test case that prevents magic number changes in minor releases

2017-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Eric! I've left some detailed comments on the PR, with the main one being to include the "expected" table directly in the test case so it doesn't require any changes to importlib itself. For Serhiy - thanks for the explanation of the potential security

[issue29537] Alternative fix for BUILD_MAP_UNPACK_WITH_CALL opcode in 3.5

2017-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Serhiy, I think that will work well downstream in combination with Petr's patch to accept both magic numbers. -- ___ Python tracker

[issue22281] ProcessPoolExecutor/ThreadPoolExecutor should provide introspection APIs

2017-02-12 Thread Camilla Montonen
Changes by Camilla Montonen : -- nosy: +Winterflower ___ Python tracker ___ ___

[issue23267] multiprocessing pool.py doesn't close inqueue and outqueue pipes on termination

2017-02-12 Thread Camilla Montonen
Changes by Camilla Montonen : -- nosy: +Winterflower ___ Python tracker ___ ___

[issue5001] Remove assertion-based checking in multiprocessing

2017-02-12 Thread Camilla Montonen
Changes by Camilla Montonen : -- nosy: +Winterflower ___ Python tracker ___ ___

[issue14119] Ability to adjust queue size in Executors

2017-02-12 Thread Camilla Montonen
Changes by Camilla Montonen : -- nosy: +Winterflower ___ Python tracker ___ ___

[issue19675] Pool dies with excessive workers, but does not cleanup

2017-02-12 Thread Camilla Montonen
Camilla Montonen added the comment: I've reformatted Dustin Oprea's original patch to be compatible with git, applied it to master and executed _test_multiprocessing suite. All tests pass locally. -- Added file: http://bugs.python.org/file46635/bug19675git.patch

[issue29514] Add a test case that prevents magic number changes in minor releases

2017-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch looks overcomplicated to me. The test could be as simple as self.assertEqual(importlib.util.MAGIC_NUMBER, ...) -- ___ Python tracker

[issue29514] Add a test case that prevents magic number changes in minor releases

2017-02-12 Thread Eric Appelt
Eric Appelt added the comment: I added PR #54 with a test as Nick describes for checking magic number changes and explaining to the developer the procedure to follow if this is required in a maintenance release. -- nosy: +Eric Appelt pull_requests: +49

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-02-12 Thread STINNER Victor
STINNER Victor added the comment: I created the PR https://github.com/python/cpython/pull/53 for curses_temporaryfile.patch. -- pull_requests: +48 ___ Python tracker

[issue14044] IncompleteRead error with urllib2 or urllib.request -- fine with urllib, wget, or curl

2017-02-12 Thread CJ Kucera
CJ Kucera added the comment: I've just encountered this problem on Python 3.6, on a different URL. The difference being that it's not encountered with EVERY page load, though I'd say it happens with at least half: import urllib.request html =

[issue29176] /tmp does not exist on Android and is used by curses.window.putwin()

2017-02-12 Thread STINNER Victor
STINNER Victor added the comment: I created https://github.com/python/cpython/pull/52 for curses_fix_window_class_name.patch. -- pull_requests: +47 ___ Python tracker

[issue29514] Add a test case that prevents magic number changes in minor releases

2017-02-12 Thread Brett Cannon
Brett Cannon added the comment: That comment is poorly worded. All that is really necessary is that the tag differ when you want to have a .pyc file exist side-by-side with another .pyc file. So far we have only changed it when releasing a new version of Python, but for instance Python 3.5.2

[issue28598] RHS not consulted in `str % subclass_of_str` case.

2017-02-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> patch review versions: +Python 3.7 -Python 3.3, Python 3.4 ___ Python tracker

[issue29474] Grammatical errors in weakref.WeakValueDictionary docs

2017-02-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks, everyone :) The GitHub PRs have been merged. Closing this issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2017-02-12 Thread Berker Peksag
Berker Peksag added the comment: New changeset c6d2f498142c29ed62241ab6d89cb7b5e38f2fca by GitHub in branch '3.5': bpo-27122: Fix comment to point to correct issue number (#50) https://github.com/python/cpython/commit/c6d2f498142c29ed62241ab6d89cb7b5e38f2fca -- nosy: +berker.peksag

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2017-02-12 Thread Berker Peksag
Berker Peksag added the comment: New changeset 89b1824e693419b20b6a9113e5293f1c1a78065f by GitHub in branch '3.6': bpo-27122: Fix comment to point to correct issue number (#48) https://github.com/python/cpython/commit/89b1824e693419b20b6a9113e5293f1c1a78065f -- nosy: +berker.peksag

[issue28598] RHS not consulted in `str % subclass_of_str` case.

2017-02-12 Thread Martijn Pieters
Martijn Pieters added the comment: I'm not sure if issues are linked automatically yet. I put the patch up as a pull request on GitHub: https://github.com/python/cpython/pull/51 -- ___ Python tracker

[issue29537] Alternative fix for BUILD_MAP_UNPACK_WITH_CALL opcode in 3.5

2017-02-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch is an alternative fix of issue27286 for Python 3.5. Rather than fixing the compiler and bumping the magic number it just avoids using incorrect value in eval loop. The patch can be useful for disro maintainers that don't want to recompile

[issue29537] Alternative fix for BUILD_MAP_UNPACK_WITH_CALL opcode in 3.5

2017-02-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch Added file: http://bugs.python.org/file46634/BUILD_MAP_UNPACK_WITH_CALL-no-function_location.patch ___ Python tracker

[issue29463] Add `docstring` field to AST nodes

2017-02-12 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +46 ___ Python tracker ___ ___

[issue29463] Add `docstring` field to AST nodes

2017-02-12 Thread INADA Naoki
INADA Naoki added the comment: Thanks. I don't familiar with language frontend. I'll check NEWS entry. -- title: Add `docstring` attribute to AST nodes -> Add `docstring` field to AST nodes ___ Python tracker

[issue29428] Doctest documentation unclear about multi-line fixtures

2017-02-12 Thread Jim DeLaHunt
Jim DeLaHunt added the comment: Pull Request https://github.com/python/cpython/pull/45 submitted to new Github repo. I would appreciate a review. I attempted to balance all the different opinions in the discussion below: stay concise, but also improve the clarity. -- pull_requests: