[issue28994] Misc fixes and cleanups in error handling C code

2017-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.6 no longer compiles for me on Windows. A repeat of pcbuild\build.bat -d gives the same error report as below. My previous build was 25 hours ago. atexitmodule.c is the only C file in the 3.6 merge update, so the backport might be to blame. Git status say

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 37e04153d5e331162608b33639ecd3c9a5ae2432 by Mariatta (Marco Buttu) in branch '3.5': bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2138) https://github.com/python/cpython/commit/37e04153d5e331162608b33639ecd3c9a5ae2432

[issue30217] Missing entry for the tilde (~) operator in the Index

2017-06-12 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue28994] Misc fixes and cleanups in error handling C code

2017-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Last time Objects/listobject.c was changed 2 months ago. This looks as an error in your workspace. Maybe something wrong happened when you switched from master to 3.6. -- ___ Python tracker

[issue28994] Misc fixes and cleanups in error handling C code

2017-06-12 Thread Steve Dower
Steve Dower added the comment: I just updated to the latest 3.6 commit and listobject.c doesn't even use clinic in this branch. Serhiy is probably right - this is a workspace issue. -- ___ Python tracker

[issue28994] Misc fixes and cleanups in error handling C code

2017-06-12 Thread Zachary Ware
Zachary Ware added the comment: Agreed, looks like something went wrong in your checkout, Terry. Just confirmed that a 3.6 build on a fresh checkout on Windows is fine. -- priority: release blocker -> normal ___ Python tracker

[issue28994] Misc fixes and cleanups in error handling C code

2017-06-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since I fetch, merge, and build with a .bat file that has worked fine at least 10 times, with pushes in between, the glitch is a puzzle. Next time I will just revert, as I did, or reclone and rebuild the 3.6 worktree. -- _

[issue30050] Please provide a way to disable the warning printed if the signal module's wakeup fd overflows

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It would be nice if there were a way to disable this; perhaps something like: > signal.set_wakeup_fd(fd, warn_on_full_buffer=False) That's a reasonable idea. Nathaniel, would you like to submit a PR for this? -- nosy: +pitrou __

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: @akuchling Can you prepare a PR on GitHub? -- nosy: +Mariatta ___ Python tracker ___ ___ Python-bugs

[issue30641] No way to specify "File name too long" error in except statement.

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: On Unix, you can simply check the errno value: >>> fn = "x" * 999 >>> try: open(fn, "r") ... except OSError as e: exc = e ... >>> exc.errno 36 >>> exc.errno == errno.ENAMETOOLONG True I don't know about Windows. -- ___

[issue30641] No way to specify "File name too long" error in except statement.

2017-06-12 Thread Max Staff
Max Staff added the comment: Yes I know about the errno. There would be two ways to resolve this: One way would be by introducing a new exception class which would be nice because it's almost impossible to reliably check the allowed filename length (except for trial and error) and I have quite

[issue30641] No way to specify "File name too long" error in except statement.

2017-06-12 Thread Max Staff
Max Staff added the comment: ...at least those are the only two ways that I can think of. -- ___ Python tracker ___ ___ Python-bugs-li

[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'

2017-06-12 Thread Brett Cannon
Brett Cannon added the comment: What commands did you use to launch this build? (E.g. I noticed you are trying to do a PGO build.) -- nosy: +brett.cannon ___ Python tracker ___

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

2017-06-12 Thread Nick Coghlan
Nick Coghlan added the comment: We don't use the alpha and beta phases for maintenance releases, so I think the checks are functionally equivalent. For example, the 3.6 branch currently reports itself as "3.6.1 final", will temporarily report itself as "3.6.2 release" during the rc period, and

[issue30641] No way to specify "File name too long" error in except statement.

2017-06-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: I don't understand what you actually are requesting here. Are you requesting a way to tell whether or not the filename is too long? You've already been told that the way to do that is to check errno, and you say that you already knew that. exc.errno == errno

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread A.M. Kuchling
A.M. Kuchling added the comment: PR filed against master: https://github.com/python/cpython/pull/2143 -- pull_requests: +2193 ___ Python tracker ___ __

[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 81f67b6f48820beed6e138077fd785020bbfd5d6 by Nick Coghlan (Stéphane Wirtel) in branch 'master': bpo-30636: Fix the indentation for the help (#2131) https://github.com/python/cpython/commit/81f67b6f48820beed6e138077fd785020bbfd5d6 -- __

[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks once again! :) -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___ __

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-12 Thread Ned Deily
Ned Deily added the comment: New changeset 2997fec01ee7300c6d5940e6c55e4ccf9f56f1b5 by Ned Deily (Dino Viehland) in branch '3.6': [3.6] bpo-30604: Move co_extra_freefuncs to interpreter state to avoid crashes in threads (#2015) https://github.com/python/cpython/commit/2997fec01ee7300c6d5940e6c

[issue23894] lib2to3 doesn't recognize rb'...' and f'...' in Python 3.6

2017-06-12 Thread Ned Deily
Ned Deily added the comment: Misc/NEWS entries for these changes? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'

2017-06-12 Thread Andreas Jung
Andreas Jung added the comment: Just the standard ./configure --prefix=... --enable-optimizations dance -- nosy: +ajung ___ Python tracker ___ _

[issue29504] blake2: compile error with -march=bdver2

2017-06-12 Thread Ned Deily
Changes by Ned Deily : -- priority: release blocker -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'

2017-06-12 Thread Andreas Jung
Andreas Jung added the comment: --enable-optimizations is not the issue Seems to be somehow related to the locales. My env is: ALSA_CONFIG_PATH=/etc/alsa-pulse.conf AUDIODRIVER=pulseaudio AUTOJUMP_ERROR_PATH=/home/ajung/.local/share/autojump/errors.log COLORTERM=1 CONFIG_SITE=/usr/share/site/x

[issue30610] Python's libexpat vulnerable to CVE-2016-0718

2017-06-12 Thread Ned Deily
Ned Deily added the comment: I am closing this issue as a duplicate of the existing Issue29591. We can retitle the PR to be associated with it. And I am making Issue29591 a release blocker for 3.6.2; regardless of what we decide to for 3.7, we're not going to drop the embedded copies of expat

[issue26656] Documentation for re.compile is a bit outdated

2017-06-12 Thread Emily Morehouse
Emily Morehouse added the comment: YAHO (yet another humble opinion), I support improving the current re.compile documentation by adding a link to the regular expression object documentation. Great way to point a user to the complete list of methods and attributes while keeping match() and sea

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

2017-06-12 Thread Ned Deily
Ned Deily added the comment: Note that a duplicate of this issue was opened as Issue30610 and @matrixise was working on a PR there to update the embedded expat to 2.2.0. Since there are CVE's and a demo crash supplied in Issue30610, it seems to me we need to fix this for 3.6.2rc1 so I'm makin

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

2017-06-12 Thread Ned Deily
Changes by Ned Deily : -- nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue30038] Race condition in how trip_signal writes to wakeup fd

2017-06-12 Thread Ned Deily
Ned Deily added the comment: Misc/NEWS entries for 3.6 and master for these changes? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue30628] why venv install old pip?

2017-06-12 Thread Emily Morehouse
Changes by Emily Morehouse : -- nosy: +emilyemorehouse ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Lisa Roach
Lisa Roach added the comment: I can't see the drawback of being able to format two's complement easily, isn't it more common to represent negative binary numbers in two's complement form? I find the - sign a little odd myself. I agree with the idea of using "!" with the precision to represent

[issue30628] why venv install old pip?

2017-06-12 Thread Emily Morehouse
Emily Morehouse added the comment: You're certainly right. venv uses ensurepip to install pip when creating a virtual environment and does not access the internet/upgrade any packages. ensurepip was specifically designed to use the bundled version of setuptools. The bundled version of setuptoo

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-12 Thread Dino Viehland
Changes by Dino Viehland : -- pull_requests: +2194 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Avoid using double underscores in C code. C compiler uses names with double underscores for its own needs, and this can lead to conflicts. -- ___ Python tracker

[issue30642] Fix leaks in idlelib

2017-06-12 Thread Terry J. Reedy
New submission from Terry J. Reedy: When Louie Lu posted a link to https://blog.louie.lu/2017/06/12/diagnosing-and-fixing-reference-leaks-in-cpython/ on core-mentorship list, I tested idlelib. python -m test -ugui test_idle # SUCCESS, no extraneous output python -m test -R: test_idle # SUCCESS,

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset bd4e9e0ca96dabf33605d9b1fd1e0562ece8ae18 by Mariatta (Andrew Kuchling) in branch 'master': bpo-6519: Improve Python Input Output Tutorial (GH-2143) https://github.com/python/cpython/commit/bd4e9e0ca96dabf33605d9b1fd1e0562ece8ae18 -- __

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2196 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +2195 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 5a86154a931083e6a9f9bdf9cc8b3bc33abb673d by Mariatta in branch '3.5': bpo-6519: Improve Python Input Output Tutorial (GH-2143) (GH-2146) https://github.com/python/cpython/commit/5a86154a931083e6a9f9bdf9cc8b3bc33abb673d -- _

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks everyone! I merged the PR and backported to 3.6 and 3.5. There are a bunch of conflicts when trying to backport to 2.7, so I decided not to bother. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Pyth

[issue6519] Reorder 'with' statement for files in Python Tutorial

2017-06-12 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 81c05ccc10d044584dff3a69ee531094ed76ee2c by Mariatta in branch '3.6': bpo-6519: Improve Python Input Output Tutorial (GH-2143) (GH-2145) https://github.com/python/cpython/commit/81c05ccc10d044584dff3a69ee531094ed76ee2c -- _

[issue30642] Fix leaks in idlelib

2017-06-12 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +2197 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30641] No way to specify "File name too long" error in except statement.

2017-06-12 Thread Eryk Sun
Eryk Sun added the comment: An exception specifically for ENAMETOOLONG would be limited to Unix systems. The Windows CRT defines ENAMETOOLONG but doesn't use it. Windows file systems do not return a specific status code for a filename that's too long. Per MS-FSA 2.1.5.1 [1], a request to open

[issue30642] Fix leaks in idlelib

2017-06-12 Thread Louie Lu
Louie Lu added the comment: test_query were fixed in PR 2147, which is leak by not removing mock.Mock() in dialog. -- ___ Python tracker ___

[issue30628] why venv install old pip?

2017-06-12 Thread Nick Coghlan
Nick Coghlan added the comment: Indeed, Emily is correct: this is expected behaviour for system Python versions that don't patch their ensurepip modules, as the default pip (et al) used in virtual environments created with the venv module generally only gets upgraded when upgrading to a new ma

[issue30643] test_basic_script_no_suffix() of test_multiprocessing_main_handling timeout after 20 min on Travis CI

2017-06-12 Thread STINNER Victor
New submission from STINNER Victor: https://travis-ci.org/python/cpython/jobs/242108490#L2211 0:22:46 load avg: 62.38 [406/406/1] test_multiprocessing_main_handling crashed (Exit code 1) Timeout (0:20:00)! Thread 0x2b175d341400 (most recent call first): File "/home/travis/build/python

[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Mark Dickinson
Mark Dickinson added the comment: -1 from me. Using `format(x % 2**8, '08b')` seems both short enough to be easy to use, and long enough to remind one that there's something a little bit unnatural going on here, given that two's complement isn't something that makes sense for arbitrary-sized i

[issue30596] Add close() to multiprocessing.Process

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: That's a good question. close() methods on other objects tend to avoid taking an infinite amount of time :-) But then, Process objects are different enough that they don't need to follow that rule. -- ___ Python t

[issue27240] 'UnstructuredTokenList' object has no attribute '_fold_as_ew'

2017-06-12 Thread Zhang Wenbo
Zhang Wenbo added the comment: I think I find a case which can reproduct this bug: the UnstructuredTokenList has a ValueTerminal which is long enough(its encoded word is longer than policy.maxlen ) and not at the beginning. For examples, the following subjects can cause this bug: - 'Re: 我只是一个

[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Concur with Mark. Similar issues already were raised multiple times on mailing lists and the conclusion is that explicit wrapping integers to specific range is better. Different behavior for integers out of range is needed in different applications. ---

[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is a recurring need in my teaching of Python to hardware engineers. The whole point of having a binary format code is to show which bits are set. For negative values, that need is not being served by the current option. And it makes it awkward when

[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > The idea is that modifier (such as "!" would require a width argument (the > signed representation only make sense in fixed width concepts as every > assembly language programmer knows). Its presence would also imply the "0". I would use the precision for

[issue30632] IDLE: add unittest to test_autocomplete

2017-06-12 Thread Louie Lu
New submission from Louie Lu: Add unittest to test_open_completions, test_fetch_copmletions, and test_get_entity in test_autocomplete -- assignee: terry.reedy components: IDLE messages: 295755 nosy: louielu, terry.reedy priority: normal severity: normal status: open title: IDLE: add uni

[issue30632] IDLE: add unittest to test_autocomplete

2017-06-12 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +2178 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue23033] Disallow support for a*.example.net, *a.example.net, and a*b.example.net in certificate wildcard handling.

2017-06-12 Thread Christian Heimes
Christian Heimes added the comment: It's probably not a good idea to port it to 3.6. It's a backwards incompatible change. -- ___ Python tracker ___

[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'

2017-06-12 Thread Andreas Jung
New submission from Andreas Jung: Installing Python 3.6.1 from the sources on OpenSuse 42.1 gives me: o Python/mystrtoul.o Python/mysnprintf.o Python/peephole.o Python/pyarena.o Python/pyctype.o Python/pyfpe.o Python/pyhash.o Python/pylifecycle.o Python/pymath.o Python/pystate.o Python/pythonr

[issue30634] ctypes.cast(obj, ctypes.c_void_p) invalid return in linux_x64

2017-06-12 Thread fooofei
New submission from fooofei: module:ctypes pyversion: 2.7.13 python platform : win32, linux_x86_x64 I use ctypes.cast(v,ctypes.c_void_p).value to get address of 'helloworld' and u'helloworld' internal buffer address. the result is both right in win32,but not in linux. 'helloworld' is right,

[issue30635] Leak in test_c_locale_coercion

2017-06-12 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue30635] Leak in test_c_locale_coercion

2017-06-12 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: ./python -m test -R 3:3 test_c_locale_coercion -m test_external_target_locale_configuration Mon 12 Jun 2017 10:57:14 AM CEST Run test

[issue30635] Leak in test_c_locale_coercion

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: Likely a leak in the implementation of the PEP 538, commit 6ea4186de32d65b1f1dc1533b6312b798d300466, bpo-28180. -- nosy: +haypo ___ Python tracker

[issue11822] Improve disassembly to show embedded code objects

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: Thanks Serhiy, it works and I like the result :-) >>> def f(): ... def g(): ... return 3 ... return g ... >>> import dis; dis.dis(f) 2 0 LOAD_CONST 1 (", line 2>) 2 LOAD_CONST 2 ('f..g') 4

[issue27425] Tests fail because of git's newline preferences on Windows

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: I'm happy to see this "old" issue now fixed :-) -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue30609] Python 3.6.1 fails to generate 256 colors on Cygwin based 64-bit Windows 10

2017-06-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: Add the description of PYTHONCOERCECLOCALE in the command line. -- messages: 295763 nosy: matrixise, ncoghlan priority: normal severity: normal status: open title: Add PYTHONCOERCECLOCALE to the help of the command line versions: Python 3.7 _

[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +2179 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30635] Leak in test_c_locale_coercion

2017-06-12 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2180 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue9566] Compilation warnings under x64 Windows

2017-06-12 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue23404] 'make touch' does not work with git clones of the source repository

2017-06-12 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2181 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue23404] 'make touch' does not work with git clones of the source repository

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: I wrote https://github.com/python/cpython/pull/2127 to document "make regen-all". I'm not sure that it's the correct way to document such build change in minor 3.6 releases. Can someone please take a look? -- ___ Py

[issue29679] Add @contextlib.asynccontextmanager

2017-06-12 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___ _

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2017-06-12 Thread Yury Selivanov
Yury Selivanov added the comment: See also issue 29970. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue30634] ctypes.cast(obj, ctypes.c_void_p) invalid return in linux_x64

2017-06-12 Thread Eryk Sun
Eryk Sun added the comment: It's undocumented that cast() should work to directly convert Python strings to pointers. Even when it seems to work, it's a risky thing to depend on because there's no source ctypes data object to reference. Thus there's neither _b_base_ nor anything in _objects to

[issue23404] 'make touch' does not work with git clones of the source repository

2017-06-12 Thread Nick Coghlan
Changes by Nick Coghlan : -- pull_requests: +2182 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue23404] 'make touch' does not work with git clones of the source repository

2017-06-12 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for that Victor. I started to review the PR, and then realised my suggestions were going to be extensive enough that it made more sense to post an alternate PR for you to review: https://github.com/python/cpython/pull/2128 --

[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 7d1017d9ed3285857e827635eda966da246dcd5f by Nick Coghlan (Stéphane Wirtel) in branch 'master': bpo-30636: Add PYTHONCOERCECLOCALE to the help of the command line (GH-2125) https://github.com/python/cpython/commit/7d1017d9ed3285857e827635eda966da246d

[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Nick Coghlan
Changes by Nick Coghlan : -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___ ___

[issue23404] 'make touch' does not work with git clones of the source repository

2017-06-12 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset e1b690370fd8f93bef1e69eeea2695f95a7cfff5 by Nick Coghlan in branch '3.6': bpo-23404: `make regen-all` What's New entry (#2128) https://github.com/python/cpython/commit/e1b690370fd8f93bef1e69eeea2695f95a7cfff5 -- __

[issue30615] [EASY][2.7] test_recursive_repr() of test_xml_etree_c leaks references

2017-06-12 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +2183 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue23404] 'make touch' does not work with git clones of the source repository

2017-06-12 Thread Nick Coghlan
Nick Coghlan added the comment: Moving to deferred blocker and taking 3.6 off the affected versions list, since the 3.6 What's New has now been updated appropriately. Items still to be done: - make a similar change to the 3.5 What's New on the 3.5 branch - update the maintenance release change

[issue30637] Syntax error reported on compile(...), but not on compile(..., ast.PyCF_ONLY_AST)

2017-06-12 Thread Hrvoje Nikšić
New submission from Hrvoje Nikšić: Our application compiles snippets of user-specified code using the compile built-in with ast.PyCF_ONLY_AST flag. At this stage we catch syntax errors and perform some sanity checks on the AST. The AST is then compiled into actual code using compile() and run

[issue30624] selectors should use bare except clauses

2017-06-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: New changeset ced36a993fcfd1c76637119d31c03156a8772e11 by Giampaolo Rodola in branch 'master': bpo-30624 remaining bare except (#2108) https://github.com/python/cpython/commit/ced36a993fcfd1c76637119d31c03156a8772e11 -- ___

[issue30624] selectors should use bare except clauses

2017-06-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I see that on 3.6 except BaseException: is used, so the backport should not be necessary. -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed versions: -Python 3.5, Python 3.6 ___ P

[issue28414] SSL match_hostname fails for internationalized domain names

2017-06-12 Thread Nick Lamb
Nick Lamb added the comment: I endorse njs' recommended fix here. Don't try to get clever, this is a security component, it should be the dumbest it can be possibly be while being correct, because if it's smarter it will probably be wrong. -- nosy: +tialaramex

[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Nick Coghlan
Nick Coghlan added the comment: I just noticed that there's a line-wrapping problem in the patch as-merged. The output ends up being: PYTHONCOERCECLOCALE: if this variable is set to 0, it disables the locale coercion behavior It should either match the immediately preceding settings, which use

[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: yep, I see that, I fix it asap -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue30636] Add PYTHONCOERCECLOCALE to the help of the command line

2017-06-12 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +2185 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30589] With forkserver, Process.exitcode does not get signal number

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset dfd5f34634f9c505945e9348b4b799544680a7cf by Antoine Pitrou in branch 'master': Fix bpo-30589: improve Process.exitcode with forkserver (#1989) https://github.com/python/cpython/commit/dfd5f34634f9c505945e9348b4b799544680a7cf --

[issue30589] With forkserver, Process.exitcode does not get signal number

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've merged a fix for Python 3.7. Since the fix is a bit delicate, I don't want to risk regression by merging it into 3.6 and 3.5. Closing now. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5, Pyth

[issue28180] sys.getfilesystemencoding() should default to utf-8

2017-06-12 Thread Nick Coghlan
Changes by Nick Coghlan : -- pull_requests: +2184 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue30615] [EASY][2.7] test_recursive_repr() of test_xml_etree_c leaks references

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 41af942e57f9a450cf273ef6b72a21380c6ba8d1 by Victor Stinner (Stéphane Wirtel) in branch '2.7': bpo-30615: Fix the leak reference in Modules/_elementtree.c (#2129) https://github.com/python/cpython/commit/41af942e57f9a450cf273ef6b72a21380c6ba8d1 -

[issue30638] Additional dependencies and rule for `make regen-all`

2017-06-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: `make regen-all` regenerates many generated files. But not all. 1. Argument Clinic files has their own make target, `make clinic`. Perhaps "clinic" should be a dependency for "regen-all". 2. Lib/token.py and Lib/symbols.py are generated from Include/token.

[issue30615] [EASY][2.7] test_recursive_repr() of test_xml_etree_c leaks references

2017-06-12 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue30639] inspect.getfile(obj) calls object repr on failure

2017-06-12 Thread Thomas Kluyver
New submission from Thomas Kluyver: This came up in IPython & Jedi: several functions in inspect end up calling getfile(). If the object is something for which it can't find the source file, it throws an error, the message for which contains the object's repr. This is problematic for us becaus

[issue30596] Add close() to multiprocessing.Process

2017-06-12 Thread Jim Jewett
Jim Jewett added the comment: Could join be called in a background thread, or even asynchronously? That seems like mixing paradigms, but ... On Jun 12, 2017 3:15 AM, "Antoine Pitrou" wrote: > > Antoine Pitrou added the comment: > > That's a good question. close() methods on other objects ten

[issue30596] Add close() to multiprocessing.Process

2017-06-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I want close() to be deterministic. So I guess we have two simple possibilities: 1) close() raises if the process is still alive 2) close() calls join() implicitly if the process is still alive -- ___ Python tracker

[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: Here are benchmark results. Sorry, but I'm not really convinced that this specialization is worth it. The change adds yet another calling convention where we already have METH_NOARG, METH_VARARGS, METH_O, METH_NOARG | METH_KEYWORDS, METH_FASTCALL... I'm ok to

[issue30640] NULL + 1

2017-06-12 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: In _PyFunction_FastCallDict() if nk == 0, k is set to NULL. After that k + 1 is passed to _PyEval_EvalCodeWithName(). NULL + 1 is an undefined behavior. -- components: Interpreter Core messages: 295786 nosy: haypo, serhiy.storchaka priority: normal

[issue30640] NULL + 1 in _PyFunction_FastCallDict()

2017-06-12 Thread STINNER Victor
Changes by STINNER Victor : -- title: NULL + 1 -> NULL + 1 in _PyFunction_FastCallDict() ___ Python tracker ___ ___ Python-bugs-list m

[issue30638] Additional dependencies and rule for `make regen-all`

2017-06-12 Thread Zachary Ware
Zachary Ware added the comment: Agreed with all of the above, with the possible exception of 6; I don't think that we want `make regen-all` to require internet access. Please make sure that the PR for this includes removing the explicit `make clinic` from .travis.yml. -- nosy: +zach.w

[issue30571] Add integer formatting code for fixed-width signed arithmetic (2's complement)

2017-06-12 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30640] NULL + 1 in _PyFunction_FastCallDict()

2017-06-12 Thread STINNER Victor
STINNER Victor added the comment: Can you please show me the line doing NULL+1? I don't see it. Or do you mean the "k + 1" with k=NULL? _PyEval_EvalCodeWithName() ignores kwnames and kwargs when kwcount is zero. So I don't think that the value of NULL+1 matters here :-) -- __

  1   2   >