[issue30362] Launcher add list and list with paths options

2017-06-14 Thread Steve Barnes
Steve Barnes added the comment: If this option is added into the py launcher it will make it usable for a multipy script/utility that would call py -0 to get a list of installed pythons and then call it for each of the returned versions with the remaining parameters. I personally would find

[issue30669] json.tool does not accept an --indent flag

2017-06-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Specifying indent in the json.tool command ___ Python tracker

[issue30670] pprint for dict in sorted order or insert order?

2017-06-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Concur with Raymond. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue29591] Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-14 Thread Ned Deily
Ned Deily added the comment: Thanks, Victor, for seeing this through and thanks, everyone else, for the reviews and assistance. -- ___ Python tracker

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2017-06-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It may be better to make _PyLong_FromByteArray() and _PyLong_AsByteArray() public. -- ___ Python tracker ___

[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2017-06-14 Thread Nick Coghlan
Changes by Nick Coghlan : -- pull_requests: +2252 ___ Python tracker ___ ___

[issue30670] pprint for dict in sorted order or insert order?

2017-06-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Until dict insertion order is guaranteed, it doesn't make sense to change pprint(). -- nosy: +rhettinger ___ Python tracker

[issue28180] Implementation of the PEP 538: coerce C locale to C.utf-8

2017-06-14 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, I finally understand Victor's comment on my initial attempt at fixing the tests on Mac OS X - the standard streams *don't* use the filesystem encoding, so they default to ASCII in the C locale, even on Mac OS X. --

[issue30603] textwrap: declining indent level has no test case

2017-06-14 Thread Jonathan Eunice
Jonathan Eunice added the comment: @emilyemorehouse Added new tests per your request: https://github.com/python/cpython/pull/2206 -- ___ Python tracker

[issue25026] (FreeBSD/OSX) Fix fcntl module to accept 'unsigned long' type commands for ioctl(2).

2017-06-14 Thread Martin Panter
Martin Panter added the comment: Maybe Issue 16124 is related; it mentions 64-bit values, but it sounds like an obscure use case. -- ___ Python tracker

[issue30632] IDLE: add unittests to test_autocomplete

2017-06-14 Thread Louie Lu
Louie Lu added the comment: This is a duplicate of #30348, I forgot there has a exists PR. I'll combine them and finish left 5 unittest in #30348. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue30669] json.tool does not accept an --indent flag

2017-06-14 Thread Martin Panter
Martin Panter added the comment: Issue 29636 looks related -- nosy: +martin.panter ___ Python tracker ___ ___

[issue30628] why venv install old pip?

2017-06-14 Thread Nick Coghlan
Nick Coghlan added the comment: Curtis: by design, ``ensurepip`` isn't permitted to assume internet access (since we want both it and venv to work without warnings or errors on systems with no internet access). This was covered in the original PEP:

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

2017-06-14 Thread Nick Coghlan
Nick Coghlan added the comment: Serhiy: I believe that magic number was current when the test was written, and it hasn't been getting updated since the test is currently being skipped. Given how we designed the skip logic, I think that counts as "working as intended" - we don't really care

[issue30565] PEP 538: default to skipping warning for implicit locale coercion?

2017-06-14 Thread Nick Coghlan
Nick Coghlan added the comment: As Victor notes above, for systems where no suitable coercion target locale is available, even the "unsupported locale" warning is an issue, since it's only full Unicode text handling that's unsupported in such locales - you can still process ASCII-only and

[issue30670] pprint for dict in sorted order or insert order?

2017-06-14 Thread Joseph Shen
New submission from Joseph Shen: start from 3.6+, dict keys are ordered heir creation order. the builtin print function works as we expected, but for pprint, the keys is sorted. should we using the sorted version or just obey the creation order as builtin print? -- components: Library

[issue30669] json.tool does not accept an --indent flag

2017-06-14 Thread eartheaterrr
New submission from eartheaterrr: I have been using the json.tool quite often by running `cat my-file.json | python -m json.tool` or (`:%! python -m json.tool` in vim) to pretty print the json file, but I would like to customize the indentation level to 2 indentation spaces instead of default

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2017-06-14 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: > Write your own C extension to do that. Sorry, I don't know what is the best > way to write such C extension. If everyone who wants to convert intptr_t to a python int has to write their own function, then why not just include it in the C-API? Having

[issue30603] textwrap: declining indent level has no test case

2017-06-14 Thread Jonathan Eunice
Changes by Jonathan Eunice : -- pull_requests: +2250 ___ Python tracker ___ ___

[issue30662] fix OrderedDict.__init__ docstring to reflect PEP 468

2017-06-14 Thread Jonathan Eunice
Jonathan Eunice added the comment: PR updated to incorporate Serhiy Storchaka and Brett Cannon feedback. -- ___ Python tracker ___

[issue30284] Build CPython out of tree with a read-only source tree

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: I don't think that the test_pydoc failure is very important. I'm not interested to fix it right now. The main blocker issue was regrtest and it's now fixed in the master branch. I don't recall any user complaining about issues with read-only source tree, so

[issue29591] Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8c797ed8a0fea5e3162b9415f13e270d4d5d9549 by Victor Stinner in branch '3.5': bpo-29591: Upgrade Modules/expat to libexpat 2.2 (#2164) (#2201) https://github.com/python/cpython/commit/8c797ed8a0fea5e3162b9415f13e270d4d5d9549 --

[issue29591] Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0e4571a68a7f48e8469ef05b04ba3463d3fd82c0 by Victor Stinner in branch '2.7': bpo-29591: Upgrade Modules/expat to libexpat 2.2 (#2164) (#2202) https://github.com/python/cpython/commit/0e4571a68a7f48e8469ef05b04ba3463d3fd82c0 --

[issue27485] urllib.splitport -- is it official or not?

2017-06-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: Martin, thank you for the information and for pointing out those other related issues. It makes sense to separate the security or bug issues from this change. -- ___ Python tracker

[issue29591] Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: @Ned Deily: I removed the "release blocker" flag, since I just merged my PR to update libexpat to 2.2 in the Python 3.6 branch. -- priority: release blocker -> ___ Python tracker

[issue29591] Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 86b95370c45dedb8a56c9894372a43681de47a73 by Victor Stinner in branch '3.6': bpo-29591: Upgrade Modules/expat to libexpat 2.2 (#2164) (#2200) https://github.com/python/cpython/commit/86b95370c45dedb8a56c9894372a43681de47a73 --

[issue27485] urllib.splitport -- is it official or not?

2017-06-14 Thread Cheryl Sabella
Changes by Cheryl Sabella : -- pull_requests: +2249 ___ Python tracker ___ ___

[issue29591] Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: Python 3.3 currently embeds a copy of libexpat 2.1.0, wheras other branches have libexpat 2.1.1: http://python-security.readthedocs.io/vuln/issue_26556_expat_2.1.1.html -- ___ Python tracker

[issue29591] Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-14 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2248 ___ Python tracker ___ ___

[issue29591] Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +georg.brandl versions: +Python 3.3, Python 3.4 ___ Python tracker ___

[issue29591] Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-14 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2247 ___ Python tracker ___ ___

[issue29591] Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-14 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2246 ___ Python tracker ___ ___

[issue29591] Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-14 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2245 ___ Python tracker ___ ___

[issue29591] Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-14 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2244 ___ Python tracker ___ ___

[issue29591] Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 23ec4b57e1359f9c539b8defc317542173ae087e by Victor Stinner in branch 'master': bpo-29591: Upgrade Modules/expat to libexpat 2.2 (#2164) https://github.com/python/cpython/commit/23ec4b57e1359f9c539b8defc317542173ae087e --

[issue30284] Build CPython out of tree with a read-only source tree

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset f7e07840d725f2ebb469129cb5e6574ce61725ef by Victor Stinner in branch 'master': bpo-30284: Fix regrtest for out of tree build (#1481) https://github.com/python/cpython/commit/f7e07840d725f2ebb469129cb5e6574ce61725ef --

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: > Hold on, nobody ever answered the question in the OP. How would you convert > an intptr_t (e.g. Rust's int type) to a Python int? Write your own C extension to do that. Sorry, I don't know what is the best way to write such C extension. Maybe look at

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2017-06-14 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: > I wrote my first patch in 2013, but I still fail to find a very good example > where intmax_t would be an obvious choice. So I have to agree and I will now > close the issue. Hold on, nobody ever answered the question in the OP. How would you convert an

[issue30436] importlib.find_spec raises AttributeError when parent is not a package/module

2017-06-14 Thread Brett Cannon
Brett Cannon added the comment: New changeset 8c3f05e9f0f0b30a3d4a2433e92471794d8258af by Brett Cannon (Milan Oberkirch) in branch 'master': bpo-30436: Raise ModuleNotFoundError for importlib.util.find_spec() when parent isn't a package (GH-1899)

[issue30436] importlib.find_spec raises AttributeError when parent is not a package/module

2017-06-14 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue17870] Python does not provide PyLong_FromIntMax_t() or PyLong_FromUintMax_t() function

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka: "The patch adds too much code, but there is very little need of new feature (...)" I wrote my first patch in 2013, but I still fail to find a very good example where intmax_t would be an obvious choice. So I have to agree and I will now

[issue30662] fix OrderedDict.__init__ docstring to reflect PEP 468

2017-06-14 Thread Brett Cannon
Brett Cannon added the comment: Past Python details should not be included in docstrings; it should simply represent the current code. -- nosy: +brett.cannon, eric.snow ___ Python tracker

[issue30231] test_imaplib needs a TLS server accepting self-signed certificates

2017-06-14 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.5, Python 3.6 ___ Python tracker

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-14 Thread Brett Cannon
Brett Cannon added the comment: Yes, we're as corporate as an open source project that doesn't have enough funding to be able to defend against a lawsuit but is big enough that simply shutting down would really suck for millions of people. ;) Anyway, your CLA signing came through so now we

[issue30400] Race condition in shutil.copyfile()

2017-06-14 Thread Preston Moore
Preston Moore added the comment: Pull request is now passing with no conflicts. -- ___ Python tracker ___ ___

[issue30231] test_imaplib needs a TLS server accepting self-signed certificates

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7895a0585b4b6a1c8082d17227307c6ce2c8bb8b by Victor Stinner in branch '3.5': bpo-30231: Remove skipped test_imaplib tests (#1419) (#2193) https://github.com/python/cpython/commit/7895a0585b4b6a1c8082d17227307c6ce2c8bb8b --

[issue30231] test_imaplib needs a TLS server accepting self-signed certificates

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8a39af945796164a16a607fecfef5297b7a87deb by Victor Stinner in branch '3.6': bpo-30231: Remove skipped test_imaplib tests (#1419) (#2192) https://github.com/python/cpython/commit/8a39af945796164a16a607fecfef5297b7a87deb --

[issue28603] traceback module can't format/print unhashable exceptions

2017-06-14 Thread Chris Barth
Chris Barth added the comment: There are now several patches for this problem, which also affects me. What are the next steps to get this resolved? -- ___ Python tracker

[issue28603] traceback module can't format/print unhashable exceptions

2017-06-14 Thread Chris Barth
Changes by Chris Barth : -- nosy: +Chris Barth ___ Python tracker ___ ___

[issue27609] IDLE completions: format, factor, and fix

2017-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: #30632 autocomplete tests #30666 autocomplete_w tests -- dependencies: +IDLE: add tests for autocomplete window., IDLE: add unittests to test_autocomplete, IDLE: revise doc subsections 'Completions' -IDLE code completion window can hang or misbehave

[issue27609] IDLE completions: format, factor, and fix

2017-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: #30666 Add completion tests #30667 Revise completion doc #15786 and additional discussion of completion behavior Tab in opened box should and usually completes, but sometimes not. I don't have a consistent example. -- nosy: -python-dev

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: With the severe click bug apparently fixed, I focused on Suddha Sourav last sentence "In addition, pressing enter does not autocomplete but execute what was meant to be selected." In current freshly started IDLE, for example >>> re.c<^-space> brings up a

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 6628006941f4382813a9af4628894c99bb333b8f by terryjreedy in branch '3.6': [3.6]bpo-15786: Fix IDLE autocomplete return problem. (#2198) (#2199) https://github.com/python/cpython/commit/6628006941f4382813a9af4628894c99bb333b8f --

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-06-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2243 ___ Python tracker ___ ___

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 32fd874afe55e396e3c9a5af35e7bb3d8e0b8f02 by terryjreedy in branch 'master': bpo-15786: Fix IDLE autocomplete return problem. (#2198) https://github.com/python/cpython/commit/32fd874afe55e396e3c9a5af35e7bb3d8e0b8f02 --

[issue30632] IDLE: add unittests to test_autocomplete

2017-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ping. Please answer question about two PRs. For #30666, I wrote 1. Test_autocomplete.AutoCompleteTest has a test_method for each method of autocomplete.AutoComplete. The last 5 test methods are empty ('pass'). Finish them. A couple of the methods might be

[issue30666] IDLE: add tests for autocomplete window.

2017-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: #30632 (and #30348) partly address 1., so transferring it there, and keeping this for autocomplete_w. -- title: IDLE: add tests for auto-completions -> IDLE: add tests for autocomplete window. ___ Python tracker

[issue30628] why venv install old pip?

2017-06-14 Thread Curtis Doty
Curtis Doty added the comment: diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py index 716129d139..757e8de4e7 100644 --- a/Lib/venv/__init__.py +++ b/Lib/venv/__init__.py @@ -243,6 +243,9 @@ class EnvBuilder: cmd = [context.env_exe, '-Im', 'ensurepip', '--upgrade',

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-06-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2242 ___ Python tracker ___ ___

[issue30659] Use ** correctly for "kwargs" in signature of namedtuple._replace()

2017-06-14 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Fixed and backported. Thanks. -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue30659] Use ** correctly for "kwargs" in signature of namedtuple._replace()

2017-06-14 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset a3afdca2190201bf6572435226dd3f8668139002 by Mariatta in branch '3.5': bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2197) https://github.com/python/cpython/commit/a3afdca2190201bf6572435226dd3f8668139002

[issue30659] Use ** correctly for "kwargs" in signature of namedtuple._replace()

2017-06-14 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 4b30107bfdc9ba5afbe7f4a9d96273d6078bc310 by Mariatta in branch '2.7': bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2196) https://github.com/python/cpython/commit/4b30107bfdc9ba5afbe7f4a9d96273d6078bc310

[issue30659] Use ** correctly for "kwargs" in signature of namedtuple._replace()

2017-06-14 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 789f47ebb56283bd0156957121ac2854817b2bf9 by Mariatta in branch '3.6': bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2195) https://github.com/python/cpython/commit/789f47ebb56283bd0156957121ac2854817b2bf9

[issue30659] Use ** correctly for "kwargs" in signature of namedtuple._replace()

2017-06-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2241 ___ Python tracker ___ ___

[issue30659] Use ** correctly for "kwargs" in signature of namedtuple._replace()

2017-06-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2240 ___ Python tracker ___ ___

[issue1615158] POSIX capabilities support

2017-06-14 Thread Christian H
Changes by Christian H : -- nosy: +Christian H ___ Python tracker ___ ___

[issue30659] Use ** correctly for "kwargs" in signature of namedtuple._replace()

2017-06-14 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2239 ___ Python tracker ___ ___

[issue30668] DOC: missing word in license.rst

2017-06-14 Thread Cheryl Sabella
New submission from Cheryl Sabella: The 'Select kqueue' section starts with: "The `select` and contains the following notice for the kqueueinterface:" And the 'SipHash24' section has: "The file Python/pyhash.c contains Marek Majkowski’ implementation of Dan Bernstein’s SipHash24

[issue30667] IDLE: revise doc subsections 'Completions'

2017-06-14 Thread Terry J. Reedy
New submission from Terry J. Reedy: The current subsection omits Expand Word and seems not as clear as it could be. Completions rely on source information. Three possible sources are the text, Shell globals, and filesystem. Open latter two by tab, shortcut, or (in special circumstance)

[issue30666] IDLE: add tests for auto-completions

2017-06-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___

[issue30666] IDLE: add tests for auto-completions

2017-06-14 Thread Terry J. Reedy
New submission from Terry J. Reedy: 1. Test_autocomplete.AutoCompleteTest has a test_method for each method of autocomplete.AutoComplete. The last 5 test methods are empty ('pass'). Finish them. A couple of the methods might be usefully split into smaller methods. Get_entity is actually a

[issue30658] Buildbot: don't sent email notification for custom builders

2017-06-14 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: I didn't know about buildmaster-config repo. It's not listed as one of the projects for the Python Core team :) https://github.com/orgs/python/teams/python-core/repositories Should it be? -- ___ Python tracker

[issue30231] test_imaplib needs a TLS server accepting self-signed certificates

2017-06-14 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2238 ___ Python tracker ___ ___

[issue30231] test_imaplib needs a TLS server accepting self-signed certificates

2017-06-14 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2237 ___ Python tracker ___ ___

[issue30231] test_imaplib needs a TLS server accepting self-signed certificates

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset b18563da8803433509e9a0e29718e0271014659f by Victor Stinner in branch 'master': bpo-30231: Remove skipped test_imaplib tests (#1419) https://github.com/python/cpython/commit/b18563da8803433509e9a0e29718e0271014659f --

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

2017-06-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it intentionally that old magic number is used in 3.7? The test will become failing just after reaching the RC stage. -- ___ Python tracker

[issue30628] why venv install old pip?

2017-06-14 Thread Emily Morehouse
Emily Morehouse added the comment: A quick note on how to include system packages in the "How Do I..?" section could be helpful, though does not necessarily solve the current issue. I would be hesitant to instruct people to use the system-site-packages flag simply to have an updated version

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: After hand-testing everything I could think of, including clicking outside the box after clicking inside, I applied the click (and Mac crash) fix to 3.7 and 3.6. As far as I know, it should appear in 3.6.2rc whenever that appears. If so, I hope people who

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 3280579450e3ee94e4916e2543b4dd8898d51b02 by terryjreedy in branch '3.6': bpo-15786: IDLE: Fix mouse clicks on autocompletetion window (#1811) (#2187) https://github.com/python/cpython/commit/3280579450e3ee94e4916e2543b4dd8898d51b02 --

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-14 Thread R. David Murray
R. David Murray added the comment: Yes, that's all you needed to do. She updated your status in the tracker (you now have the CLA signed '*' next to your name). -- ___ Python tracker

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-06-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2236 ___ Python tracker ___ ___

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-06-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 778b484145edfd0d9b65129322d3295bed8eb71a by terryjreedy (mlouielu) in branch 'master': bpo-15786: IDLE: Fix mouse clicks on autocompletetion window (#1811) https://github.com/python/cpython/commit/778b484145edfd0d9b65129322d3295bed8eb71a

[issue30625] Documentation is unclear how "y*" and "y#" format units vary

2017-06-14 Thread Stefan Krah
Stefan Krah added the comment: Out of curiosity: Is the 3.2 documentation clearer? https://docs.python.org/3.2/c-api/arg.html#strings-and-buffers Lately we have a lot of churn in the docs, not necessarily written by subject experts. -- ___

[issue30665] pass big values for arg to fcntl.ioctl

2017-06-14 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue30563] [Cygwin] multiprocessing module with pool object issue

2017-06-14 Thread Julien Verger
Julien Verger added the comment: Hello Antoine, I've installed python throught the cygwin.exe installer. I've tried to add many pythons libs without more success. I didn't know that cygwin was an unsupported platform. Unfortunately, my goal is to develop an automation tool based on pexpect

[issue30665] pass big values for arg to fcntl.ioctl

2017-06-14 Thread Uwe Kleine-König
New submission from Uwe Kleine-König: When passing a big integer value to fcntl.ioctl this might result in OverflowError: signed integer is greater than maximum . Traditionally ioctl(3) takes a pointer as third argument. The fcntl module however uses an int (format specifier 'i') which

[issue30565] PEP 538: default to skipping warning for implicit locale coercion?

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: I wrote a PR to remove PEP 538 warnings: https://github.com/python/cpython/pull/2186 Reference (unpatched): haypo@selma$ env -i LC_ALL=C ./python -c "import locale; print(locale.getpreferredencoding())" Python runtime initialized with LC_CTYPE=C (a locale

[issue30565] PEP 538: default to skipping warning for implicit locale coercion?

2017-06-14 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2235 ___ Python tracker ___ ___

[issue30625] Documentation is unclear how "y*" and "y#" format units vary

2017-06-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list

[issue30565] PEP 538: default to skipping warning for implicit locale coercion?

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: The warnings caused something around 27 test failures on "AMD64 FreeBSD CURRENT Non-Debug 3.x" buildbot: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Non-Debug%203.x/builds/438/steps/test/logs/stdio 27 tests failed again:

[issue30664] Change unittest's _SubTest to not sort its params when printing test failures

2017-06-14 Thread Eric V. Smith
Eric V. Smith added the comment: Correct on the order changed with regular dicts. That's why I'm targeting this specifically for Python 3.7 and with **kwargs, where order is guaranteed. We might have to use a structure other than a ChainMap of dicts, like a ChainMap of OrderDicts. --

[issue30664] Change unittest's _SubTest to not sort its params when printing test failures

2017-06-14 Thread Louie Lu
Louie Lu added the comment: Additional note, the order will changed it random way in ChainMap, e.g.: >>> for k, v in ChainMap({'a': 0, 'b': 1, 'c': 2}, {'b': 3, 'a': 4}).items(): >>> print(k, v) ... a 0 c 2 b 1 -restart >>> for k, v in ChainMap({'a': 0, 'b': 1, 'c': 2}, {'b': 3,

[issue30664] Change unittest's _SubTest to not sort its params when printing test failures

2017-06-14 Thread Eric V. Smith
Eric V. Smith added the comment: Good question. It looks like ChainMap does something I wouldn't expect: >>> for k, v in ChainMap({'a': 0, 'b': 1, 'c': 2}, {'b': 3, 'a': 4}).items(): ... print(k, v) ... b 1 a 0 c 2 Once we define what we'd like the output to look like, I'm sure it would be

[issue30664] Change unittest's _SubTest to not sort its params when printing test failures

2017-06-14 Thread Nitish
Changes by Nitish : -- nosy: +nitishch ___ Python tracker ___ ___

[issue30664] Change unittest's _SubTest to not sort its params when printing test failures

2017-06-14 Thread Louie Lu
Louie Lu added the comment: I think the question will be, when using multiple subTest (this is why using ChainMap I think), how to determine their order?: with self.subTest(c=i, b=i, a=i): with self.subTest(b=i, c=50, a=60): self.assertEqual(i, 2) >>> FAIL: test_foo

[issue30664] Change unittest's _SubTest to not sort its params when printing test failures

2017-06-14 Thread Eric V. Smith
Eric V. Smith added the comment: Correction: it's implemented in unittest.case._SubTest, specifically in _subDescription(). -- title: Change unittest's _SubTest to not sort its params -> Change unittest's _SubTest to not sort its params when printing test failures

[issue30649] test_utime_current_old() of test_os fails randomy on x86 Windows7 3.6

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset c2a506e40e9135bfd17b59fffc62261dc95bc535 by Victor Stinner in branch '3.6': [3.6] bpo-30649: test_os tolerates 50 ms delta for utime (#2156) (#2175) https://github.com/python/cpython/commit/c2a506e40e9135bfd17b59fffc62261dc95bc535 --

[issue30602] [Windows] os.spawn*() tests of test_os leak references on Windows

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 526b22657cb18fe79118c2ea68511aca09430c2c by Victor Stinner in branch 'master': bpo-30602: Fix refleak in os.spawnve() (#2184) https://github.com/python/cpython/commit/526b22657cb18fe79118c2ea68511aca09430c2c --

[issue30664] Change unittest's _SubTest to not sort its params

2017-06-14 Thread Eric V. Smith
New submission from Eric V. Smith: Now that **kwargs are sorted, it would be better if the error given by a unittest subTest (as implemented in uniitest._case._SubTest) didn't sort the parameters when they're printed, but instead printed them out in order. This might be complicated by the

[issue30649] test_utime_current_old() of test_os fails randomy on x86 Windows7 3.6

2017-06-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3402f7268897db15053866e1e68404cfa0e02706 by Victor Stinner in branch 'master': bpo-30649: Revert utime delta in test_os (#2176) https://github.com/python/cpython/commit/3402f7268897db15053866e1e68404cfa0e02706 --

  1   2   >