[issue33234] Improve list() pre-sizing for inputs with known lengths

2018-12-20 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- pull_requests: +10490 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34271] Please support logging of SSL master secret by env variable SSLKEYLOGFILE

2018-12-20 Thread Nathaniel Smith
Nathaniel Smith added the comment: It's confusing, but AFAICT what happened is that Mozilla started to disable it in release builds, but got a bunch of pushback from users and changed their minds and decided to keep it enabled. But then there was a snafu tracking the patch for that, so there

[issue18085] Verifying refcounts.dat

2018-12-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker __

[issue35538] splitext does not seems to handle filepath ending in .

2018-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Not a bug. The current behavior is consistent and unsurprising. -- nosy: +serhiy.storchaka resolution: -> not a bug status: pending -> closed ___ Python tracker _

[issue35543] re.sub is only replacing max. of 2 string found by regexp.

2018-12-20 Thread Sagar
New submission from Sagar : Below are the logs: >>> dat = '"10GE" "4x" "AMPC" "B3" "BUILTIN" "DOWN" "LU" "SFP+" "ether" "xe" >>> "DOWN" "MPC" "BUILTIN"' >>> type = >>> re.subn(r'\"BUILTIN\"|\"B\d\"|\"I\d\"|\"LU\"|\"Trinity\"|\"Trio\"|\"DOWN\"|\"UNKNOWN\"|' ... r'^AND$|\"Q\"|\"MPC\"|\"EA\d

[issue35529] A reference counting bug in ctypes

2018-12-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +10491 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35529] A reference counting bug in ctypes

2018-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d77d97c9a1f593fe161afab97e2a3e2292ab88b9 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229) https://github.com/python/cpython/commit/d77d97c9a1f593fe161afab97e2a3

[issue35529] A reference counting bug in ctypes

2018-12-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +10492 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35543] re.sub is only replacing max. of 2 string found by regexp.

2018-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The third argument of re.sub() is the maximal number of replacements. re.I == 2. sub(pattern, repl, string, count=0, flags=0) Return the string obtained by replacing the leftmost non-overlapping occurrences of the pattern in string by the replace

[issue35529] A reference counting bug in ctypes

2018-12-20 Thread miss-islington
miss-islington added the comment: New changeset 4b6caaca41def86d80819f1f93c647918e98393f by Miss Islington (bot) in branch '3.7': bpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229) https://github.com/python/cpython/commit/4b6caaca41def86d80819f1f93c647918e98393f ---

[issue35529] A reference counting bug in ctypes

2018-12-20 Thread miss-islington
miss-islington added the comment: New changeset 3752bc96c0ea1ecf28903cc34cdcd75c658e92ce by Miss Islington (bot) in branch '2.7': bpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229) https://github.com/python/cpython/commit/3752bc96c0ea1ecf28903cc34cdcd75c658e92ce ---

[issue35544] unicode.encode docstring says return value can be unicode

2018-12-20 Thread radiocane
New submission from radiocane : In Python 2.7.15rc1 the docstring for unicode.encode starts with: "S.encode([encoding[,errors]]) -> string or unicode" But if this answer https://stackoverflow.com/a/449281/5397695 is correct, then unicode.encode will never return a unicode object. Am I right?

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread STINNER Victor
Change by STINNER Victor : -- assignee: -> vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: "posix_spawn() is faster" This assumption needs a benchmark! I ran a benchmark on Linux (Fedora 29, Linux kernel 4.19.9-300.fc29.x86_64, glibc 2.28) using attached subprocess_bench.py. I rebased the PR 11242 on master and run the benchmark in virtual enviro

[issue35544] unicode.encode docstring says return value can be unicode

2018-12-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue30455] Generate all tokens related code and docs from Grammar/Tokens

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: > If there are no objections I am going to merge PR 10370 in few days. LGTM. I guess that PR 9343 should be closed once PR 10370 is merged. -- ___ Python tracker __

[issue35544] unicode.encode docstring says return value can be unicode

2018-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no code that prevents unicode.encode() from returning the result of arbitrary type. Seems all standard codecs return str, but you can not be sure about custom codecs. -- nosy: +serhiy.storchaka ___ Pyth

[issue35529] A reference counting bug in ctypes

2018-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Zackery. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue35544] unicode.encode docstring says return value can be unicode

2018-12-20 Thread Steven D'Aprano
Steven D'Aprano added the comment: Encoding and decoding, in the most general sense, can include unicode -> unicode and bytestring -> bytestring. I can't see any standard unicode->unicode encodings in Python 2.7 https://docs.python.org/2/library/codecs.html but we can create one: py> impor

[issue35544] unicode.encode docstring says return value can be unicode

2018-12-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue35544] unicode.encode docstring says return value can be unicode

2018-12-20 Thread radiocane
radiocane added the comment: Given that: 1) No standard codec returns unicode 2) I consider as "most common scenario" the case where a user wants to encode a unicode object using some character encoding and get back an str-like object I'll keep on finding "-> string or unicode" misleading. I'

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: Benchmark on macOS Mojave (10.14.2), x86_64: $ ./python.exe -m perf compare_to fork_exec.json posix_spawn.json Mean +- std dev: [fork_exec] 2.79 ms +- 0.06 ms -> [posix_spawn] 1.64 ms +- 0.03 ms: 1.70x faster (-41%) The speedup is "only" 1.7x faster, it's l

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2018-12-20 Thread Максим Аристов
New submission from Максим Аристов : loop.create_connection doesn't handle ipv6 RFC4007 addresses right since 3.7 TEST CASE # Set up listener on link-local address fe80::1%lo sudo ip a add dev lo fe80::1 # 3.6 handles everything fine socat file:/dev/null tcp6-listen:12345,REUSEADDR & python3.

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: Benchmark on FreeBSD: $ env/bin/python -m perf compare_to fork_exec.json posix_spawn.json Mean +- std dev: [fork_exec] 52.8 ms +- 4.7 ms -> [posix_spawn] 499 us +- 45 us: 105.91x faster (-99%) Wow! 106x faster! -- _

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: See also: "How a fix in Go 1.9 sped up our Gitaly service by 30x" (hint: posix_spawn) https://about.gitlab.com/2018/01/23/how-a-fix-in-go-19-sped-up-our-gitaly-service-by-30x/ fork/exec vs. posix_spawn benchmarks: https://github.com/rtomayko/posix-spawn#bench

[issue35521] IDLE: Add doc section for Code Context and ref links.

2018-12-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +10493 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35521] IDLE: Add doc section for Code Context and ref links.

2018-12-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 292cd6e33104d9f458232a14998fe5c62f7f7e81 by Terry Jan Reedy in branch 'master': bpo-35521: Add more cross-refs to IDLE docs (#11257) https://github.com/python/cpython/commit/292cd6e33104d9f458232a14998fe5c62f7f7e81 --

[issue35544] unicode.encode docstring says return value can be unicode

2018-12-20 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: You can install any codec you like and those essentially decide on what to return as type. However, the unicode methods only allow strings or unicode to be returned in Python 2. In Python 3, .encode() only allows bytes. You can still get the full codec enc

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We need to add tests for all corner cases. I.e. disabling any of conditions for posix_spawn should cause the failure. We need to do also something with PyOS_BeforeFork/PyOS_AfterFork_Child/PyOS_AfterFork_Parent. -- nosy: +pablogsal, pitrou, serhiy

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: > We need to add tests for all corner cases. I.e. disabling any of conditions > for posix_spawn should cause the failure. Do you mean running tests twice, one with posix_spawn(), one without? > We need to do also something with > PyOS_BeforeFork/PyOS_After

[issue35521] IDLE: Add doc section for Code Context and ref links.

2018-12-20 Thread miss-islington
miss-islington added the comment: New changeset 5d0498a6967d45042b7a9345f6d871047edbaa25 by Miss Islington (bot) in branch '3.7': bpo-35521: Add more cross-refs to IDLE docs (GH-11257) https://github.com/python/cpython/commit/5d0498a6967d45042b7a9345f6d871047edbaa25 --

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Do you mean running tests twice, one with posix_spawn(), one without? I mean that after writing tests they can be tested manually by disabling conditions for posix_spawn one by one. I.e. some tests should fail if remove "stdout is None" and some tests sh

[issue35544] unicode.encode docstring says return value can be unicode

2018-12-20 Thread Steven D'Aprano
Steven D'Aprano added the comment: > I'll keep on finding "-> string or unicode" misleading. How is it misleading when its true? -- ___ Python tracker ___ ___

[issue25184] "python -m pydoc -w" fails in nondecodable directory

2018-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please create a PR for your path Martin? -- ___ Python tracker ___ ___ Python-bugs-li

[issue25184] "python -m pydoc -w" fails in nondecodable directory

2018-12-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- versions: +Python 3.7, Python 3.8 -Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Pyt

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Serhiy, PyOS_* functions are called only if preexec_fn != None. But it will never be possible to implement support for preexec_fn (and some other subprocess features, e.g. close_fds) if processes are run via posix_spawn, so I don't see why anything should b

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, nice! So this is not an obstacle for using os.posix_spawn(). -- ___ Python tracker ___ ___

[issue35302] create_connection with local_addr misses valid socket bindings

2018-12-20 Thread twisteroid ambassador
twisteroid ambassador added the comment: I don't have a Mac, so I have not tested Ronald's workaround. Assuming it works, we will have to either i) implement platform-specific behavior and only apply IPV6_V6ONLY on macOS for each AF_INET6 socket created, or ii) apply it to all AF_INET6 socket

[issue35544] unicode.encode docstring says return value can be unicode

2018-12-20 Thread radiocane
radiocane added the comment: >> I'll keep on finding "-> string or unicode" misleading. > How is it misleading when its true? [I promise this is the last reply: I won't waste more of your time] me: How fast does this car go? docstring: 100 km/h or 300 km/h me: actually most people use it to

[issue35324] ssl: FileNotFoundError when do handshake

2018-12-20 Thread Windson Yang
Windson Yang added the comment: >From the docs Changed in version 3.7: Hostname or IP address is matched by OpenSSL during handshake. The function match_hostname() is no longer used. In case OpenSSL refuses a hostname or IP address, the handshake is aborted early and a TLS alert message

[issue35105] Document that CPython accepts "invalid" identifiers

2018-12-20 Thread Windson Yang
Change by Windson Yang : -- keywords: +patch pull_requests: +10494 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10495 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-20 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: This change fixes a regression introduced in 3.6.8rc1 with https://bugs.python.org/issue31354 -- ___ Python tracker ___ _

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-20 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: And also 3.7.2rc1 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

2018-12-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10497 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10496 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: Ned: We have to do something with this issue before 3.6 and 3.7 releases. Either revert or backport fixes (merge PR 11264 and PR 11265). -- priority: critical -> release blocker ___ Python tracker

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-20 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Small correction. This regression has been on 3.7 for some time now (since it was the master branch then), but then I requested to have the buggy commit backported to 3.6 to fix the --with-lto flag there. Which unfortunately introduced the issue to 3.

[issue35546] String formatting produces incorrect result with left-aligned zero-padded format

2018-12-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Compare printf-style string formatting and new-style string formatting. >>> '%-020d' % 42 '42 ' >>> format(42, '<020') '4200' >>> format(42, '<020d') '4200' >>> '%-020x' % 42 '2a ' >>> forma

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: I repeated the same tests for Python 3.7 on PR 11264. I replaced "38" with "37" and "3.8" and 3.7" and my 3 scripts :-) I modified step1.sh for PGO+LTO with -O0: set -x -e git clean -fdx ./configure CC=clang --with-lto --prefix /opt/py37 --enable-optimizatio

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0198f52ea2328fd932622ad2299381f617a041f2 by Victor Stinner in branch '3.7': bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (GH-11264) https://github.com/python/cpython/commit/0198f52ea2328fd932622ad2299381f617a041f2 --

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: I repeated the same tests for Python 3.6 on PR 11265: all tests are ok! I replaced "38" with "36" and "3.8" and 3.6" and my 3 scripts :-) I modified step1.sh for PGO+LTO and to compile with -O0 (just to make tests faster): similar script than in my previous

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Victor and Joannah, thanks for working on adding vfork() support to subprocess. Regarding speedups in the real world, I can share a personal anecdote. Back at the time when AOSP was built with make (I think it was AOSP 5) I've observed ~2x slowdown (or some

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: > In the end, I think that migrating subprocess to vfork-exec would have more > impact for users than adding "fast paths" and have consistent performance > regardless of subprocess.Popen arguments (with few exceptions). Please > consider it. Thanks! I'm ope

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

2018-12-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10498 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: > I'm open to experiment to use vfork() in _posixsubprocess Are you going to do experiments? If not, I can try to do some in early January. > Using vfork() can cause new issues: that's why there is a > POSIX_SPAWN_USE_VFORK flag (the caller had to explicitly

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: > Are you going to do experiments? If not, I can try to do some in early > January. I'm only interested to use posix_spawn(). If you want to experiment vfork() in _posixsubprocess: please go ahead! > I've studied that, and that's what I referred to as > "

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka, Alexey Izbyshev: I read and understood your valid concerns. restore_signals=True will be quickly implemented, and so posix_spawn() code path will be tested by more tests of test_subprocess. If not, I will ensure that missing tests will be a

[issue22831] Use "with" to avoid possible fd leaks

2018-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c5d5dfdb223efb0e668e3f317d31b8b70ae96aa6 by Serhiy Storchaka in branch 'master': bpo-22831: Use "with" to avoid possible fd leaks in distutils. (GH-10921) https://github.com/python/cpython/commit/c5d5dfdb223efb0e668e3f317d31b8b70ae96aa6

[issue35521] IDLE: Add doc section for Code Context and ref links.

2018-12-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue35482] can't open python368rc1.chm and python372rc1.chm

2018-12-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +10499 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35482] can't open python368rc1.chm and python372rc1.chm

2018-12-20 Thread miss-islington
miss-islington added the comment: New changeset aae2e85af772a409bf8904bddc17efe9bf809174 by Miss Islington (bot) in branch '3.7': bpo-35482: Fixes HTML escaping in CHM index and build location of NEWS file (GH-11224) https://github.com/python/cpython/commit/aae2e85af772a409bf8904bddc17efe9bf

[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-20 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +10500 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue35504] `del OSError().characters_written` raises `SystemError`

2018-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset f347c6eb75ca46990cd7ad3efbe02002603d8460 by Serhiy Storchaka (Zackery Spytz) in branch '2.7': bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175) (GH-11249) https://github.com/python/cpython/commit/f347c6eb75ca46

[issue35547] email.parser / email.policy does correctly handle multiple RFC2047 encoded-word tokens across RFC5322 folded headers

2018-12-20 Thread Martijn Pieters
New submission from Martijn Pieters : The From header in the following email headers is not correctly decoded; both the subject and from headers contain UTF-8 encoded data encoded with RFC2047 encoded-words, in both cases a multi-byte UTF-8 codepoint has been split between the two encoded-word

[issue35546] String formatting produces incorrect result with left-aligned zero-padded format

2018-12-20 Thread Matthew Barnett
Matthew Barnett added the comment: A similar issue exists with centring: >>> format(42, '^020') '0420' -- nosy: +mrabarnett ___ Python tracker ___ ___

[issue35482] can't open python368rc1.chm and python372rc1.chm

2018-12-20 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +10501 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue35482] can't open python368rc1.chm and python372rc1.chm

2018-12-20 Thread Steve Dower
Steve Dower added the comment: The 3.6 PR is blocked from merging, so looking to Ned to resolve. -- ___ Python tracker ___ ___ Pyth

[issue35482] can't open python368rc1.chm and python372rc1.chm

2018-12-20 Thread Ned Deily
Ned Deily added the comment: New changeset 789b0ee023f14385a2fd635272768c3b55a99773 by Ned Deily (Steve Dower) in branch '3.6': bpo-35482: Fixes HTML escaping in CHM index and build location of NEWS file (GH-11224) (GH-11251) https://github.com/python/cpython/commit/789b0ee023f14385a2fd63527

[issue35485] Mac: tkinter windows turn black while resized

2018-12-20 Thread Ned Deily
Ned Deily added the comment: I'm seeing the same behavior, Terry. The installer's version was built from the Tk 8.6.9.1 release. I'll try building Tk from the core-8-6-branch unless Kevin has a better idea. -- ___ Python tracker

[issue35485] Mac: tkinter windows turn black while resized

2018-12-20 Thread Ned Deily
Ned Deily added the comment: Also, to be clear, I'm seeing any IDLE window turn completely black while resizing including IDLE's shell window; the "import tkinter" ... commands aren't necessary to see the problem. -- ___ Python tracker

[issue35424] multiprocessing.Pool: emit ResourceWarning

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9a8d1d7562b11969034b92217fe66aab7a951fb6 by Victor Stinner in branch 'master': bpo-35424: emit ResourceWarning at multiprocessing.Pool destruction (GH-10974) https://github.com/python/cpython/commit/9a8d1d7562b11969034b92217fe66aab7a951fb6 ---

[issue35424] multiprocessing.Pool: emit ResourceWarning

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: The first implementation of my PR also emitted ResourceWarning when .join() hasn't been called, but the merged PR only emit a warning if .close() and .terminated() have not been called: if the pool is still running. -- resolution: -> fixed stage: pa

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

2018-12-20 Thread Ned Deily
Ned Deily added the comment: New changeset 782e1d537778d93eb4cba1343f71bfc51e7e3c00 by Ned Deily (Victor Stinner) in branch '3.6': bpo-35499: make profile-opt don't override CFLAGS_NODIST (GH-11164) (GH-11267) https://github.com/python/cpython/commit/782e1d537778d93eb4cba1343f71bfc51e7e3c00

[issue21478] mock calls don't propagate to parent (autospec)

2018-12-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think this should be handled in _check_and_set_parent where if value's type is FunctionType then value.mock should be used against which parent and name should be set since create_autospec returns function with mock attached to 'mock' attribute a

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

2018-12-20 Thread Ned Deily
Change by Ned Deily : -- pull_requests: -10497 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue22166] test_codecs leaks references

2018-12-20 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31715] Add mimetype for extension .mjs

2018-12-20 Thread Ned Deily
Ned Deily added the comment: New changeset c7b7a43cd8964a90669bb37735cdafc5b0ec60cc by Ned Deily (Myles Borins) in branch '3.7': [3.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10977) https://github.com/python/cpython/commit/c7b7a43cd8964a90669bb37735cdafc5b0ec60cc --

[issue31715] Add mimetype for extension .mjs

2018-12-20 Thread Ned Deily
Ned Deily added the comment: New changeset 70db385944ecf2ceed10ed7d91fce68399f9ca8a by Ned Deily (Myles Borins) in branch '3.6': [3.6] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10976) https://github.com/python/cpython/commit/70db385944ecf2ceed10ed7d91fce68399f9ca8a --

[issue31715] Add mimetype for extension .mjs

2018-12-20 Thread Ned Deily
Ned Deily added the comment: New changeset d9a2aca839b1326e011ecca17ba7b45123c47a64 by Ned Deily (Myles Borins) in branch '2.7': [2.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10978) https://github.com/python/cpython/commit/d9a2aca839b1326e011ecca17ba7b45123c47a64 --

[issue31715] Add mimetype for extension .mjs

2018-12-20 Thread Ned Deily
Change by Ned Deily : -- versions: +Python 2.7, Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

2018-12-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10503 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35499] "make profile-opt" overrides CFLAGS_NODIST

2018-12-20 Thread Ned Deily
Change by Ned Deily : -- pull_requests: -10503 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-20 Thread Ned Deily
Ned Deily added the comment: Also cherry-picked to 3.6 in commit a21bedf9edeacce6f0de3b2df0783e2ad6aa3b18 [3.6] bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (GH-11265) -- priority: release blocker -> resolution: -> fixed stage: patch review -> resolved status:

[issue35482] can't open python368rc1.chm and python372rc1.chm

2018-12-20 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue35475] Docs do not show PyImport_AddModuleObject() returns a borrowed reference.

2018-12-20 Thread Ned Deily
Ned Deily added the comment: New changeset 75f187478603de33c15f501a947207bfe8ba833f by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-35475: Add more PyImport* functions in refcounts.dat. (GH-11142) (GH-11199) https://github.com/python/cpython/commit/75f187478603de33c15f501a947207bfe8b

[issue35257] Avoid leaking linker flags into distutils: add PY_LDFLAGS_NODIST

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: Just in case, I checked again 3.6 and 3.7 branches with "./configure CC=clang --with-lto --enable-shared": they still pass my manual tests ;-) -- ___ Python tracker ___

[issue35259] Py_FinalizeEx unconditionally exists in Py_LIMITED_API

2018-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3e8f962e63c2f929604443531a9a3aced242f3e8 by Serhiy Storchaka (Arthur Neufeld) in branch 'master': bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x0306`. (GH-10620) https://github.com/python/cpython/commit/3e8f962e63c2f9296044435

[issue35259] Py_FinalizeEx unconditionally exists in Py_LIMITED_API

2018-12-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +10505 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35259] Py_FinalizeEx unconditionally exists in Py_LIMITED_API

2018-12-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +10504 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35360] Update SQLite to 3.26 in Windows and macOS installer builds

2018-12-20 Thread Ned Deily
Ned Deily added the comment: We should look at doing this for the next set of maintenance updates. This doesn't appear to be critical enough to delay current releases unless someone can show how this exploit could be used in a typical Python application. -- components: +macOS nosy:

[issue35461] Document C API functions which swallow exceptions

2018-12-20 Thread Ned Deily
Ned Deily added the comment: New changeset ff740db42326082fac7d415ae9aff148628a83ed by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-35461: Document C API functions which suppress exceptions. (GH-9) (GH-11210) https://github.com/python/cpython/commit/ff740db42326082fac7d415ae9aff

[issue34686] Add `-r`, as opposed to `-R` to Python core interpreter

2018-12-20 Thread Erwan Le Pape
Erwan Le Pape added the comment: As mentioned by Benjamin Peterson, this is a duplicate of #34722, which already has an implementation proposal by Peter Ebden. While implementation specifics change, the aim is the same and #34722 is the better solution (again, credit to Benjamin Peterson).

[issue35259] Py_FinalizeEx unconditionally exists in Py_LIMITED_API

2018-12-20 Thread miss-islington
miss-islington added the comment: New changeset d1e717588728a23d576c4ead775f7dbd68149696 by Miss Islington (bot) in branch '3.7': bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x0306`. (GH-10620) https://github.com/python/cpython/commit/d1e717588728a23d576c4ead775f7dbd68149696

[issue35546] String formatting produces incorrect result with left-aligned zero-padded format

2018-12-20 Thread Eric V. Smith
Eric V. Smith added the comment: I think this falls in to the consenting adults category. You can also do things like: >>> format(42, '->3') '-42' But why bother preventing this? It is unfortunate that %-formatting and .__format__() are different in this regard, but at this point I wouldn't

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: I wasn't sure how posix_spawn() handles file descriptors of standard streams with O_CLOEXEC flag set. I wrote a test. Result: _posixsubprocess and os.posix_spawn() have the same behavior! If fd 2 (stderr) is marked with O_CLOEXEC, the fd 2 is closed in the

[issue35259] Py_FinalizeEx unconditionally exists in Py_LIMITED_API

2018-12-20 Thread Ned Deily
Ned Deily added the comment: New changeset 5241ecff161ccf34083b6a824d1ae6d79917d889 by Ned Deily (Miss Islington (bot)) in branch '3.6': bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x0306`. (GH-10620) (GH-11269) https://github.com/python/cpython/commit/5241ecff161ccf34083b6a

[issue35485] Mac: tkinter windows turn black while resized

2018-12-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: The point of the minimal code snippet is that the behavior is tk/tkinter generic and not specific to Texts or IDLE or particular non-default parameters or geometry. -- ___ Python tracker

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: Options that should be easy to support later: * relative executable: use shutil.which() or expose C posix_spawnp() function as os.posix_spawnp() * env: just pass it as the 3rd argument of os.posix_spawn() (trivial patch) * restore_signals: use setsigdef (Jo

[issue35485] Mac: tkinter windows turn black while resized

2018-12-20 Thread Ned Deily
Ned Deily added the comment: > The point of the minimal code snippet is that the behavior is tk/tkinter > generic Ah! -- ___ Python tracker ___ _

  1   2   >