[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 --

[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 ___ ___

[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 ' >>>

[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,

[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

[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

[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.

[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

[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

[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

[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 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:

[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 >

[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 ___ ___

[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:

[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:

[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

[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 ___

[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

[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 ___ ___

[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:

[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! --

[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 ___ ___

[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

[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 &

[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:

[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

[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

[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

[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: 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

[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

[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

[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:

[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

[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: 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:

[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

[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:

[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 ___ ___

[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

[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

[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 >

[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 ___

[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:

[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)

[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)

[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

[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

[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:

[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)

[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:

[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

[issue34745] asyncio ssl memory leak

2018-12-20 Thread Chase N Peterson
Chase N Peterson added the comment: I ran the code snippet below using uvloop/master in a docker container. As it ran, the container continually leaked memory. I included a graph with the memory usage. Environment: # cat /etc/*-release PRETTY_NAME="Debian GNU/Linux 9 (stretch)" NAME="Debian

[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 --

[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

[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 ___ ___

[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

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

2018-12-20 Thread Martijn Pieters
Martijn Pieters added the comment: Right, re-educating myself on the MIME RFCs, and found https://bugs.python.org/issue1372770 where the same issue is being discussed for previous incarnations of the email library. Removing the FWS after CRLF is the wrong thing to do, **unless** RFC2047

[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:

[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:

[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

[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)

[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)

[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

[issue35485] Mac: tkinter windows turn black while resized

2018-12-20 Thread Kevin Walzer
Kevin Walzer added the comment: http://core.tcl.tk/tk/tktview?name=ef9c3730e3 has some useful information on this from the Tk side. -- ___ Python tracker ___

[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:

[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)

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

2018-12-20 Thread Erwan Le Pape
Change by Erwan Le Pape : -- keywords: +patch pull_requests: +10507 stage: -> patch review ___ Python tracker ___ ___

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

2018-12-20 Thread Martijn Pieters
Change by Martijn Pieters : -- components: +email nosy: +barry, r.david.murray type: -> behavior versions: +Python 3.7 ___ Python tracker ___

[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

[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:

[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

[issue34745] asyncio ssl memory leak

2018-12-20 Thread Alexander Mohr
Change by Alexander Mohr : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27772] Refer to actual format string when creating “zero padding” error message

2018-12-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +10506 stage: -> patch review ___ Python tracker ___ ___

[issue35537] use os.posix_spawn in subprocess

2018-12-20 Thread STINNER Victor
STINNER Victor added the comment: > I am going to merge the PR tomorrow, except if someone sees a good reason to > not merge it. I changed my mind and I decided to wait until I'm back from holiday instead :-) https://github.com/python/cpython/pull/11242#issuecomment-449151524 The function

[issue27772] Refer to actual format string when creating “zero padding” error message

2018-12-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Interpreter Core versions: +Python 3.8 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___

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

2018-12-20 Thread Erwan Le Pape
Erwan Le Pape added the comment: While the 3.7+ getaddrinfo isn't the best human representation of an IPv6 address, I believe it does make the most sense to keep it that way. In any case, this is a regression and changing return values of getaddrinfo for 3.7 isn't something that should be

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

2018-12-20 Thread Martijn Pieters
Martijn Pieters added the comment: That regex is incorrect, I should not post untested code from a mobile phone. Corrected workaround with more context: import re from email.policy import EmailPolicy class UnfoldingEncodedStringHeaderPolicy(EmailPolicy): def header_fetch_parse(self,

[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:

[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 --

[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:

[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)

[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

[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 ___

[issue27772] Refer to actual format string when creating “zero padding” error message

2018-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 11270 fixes this issue by making such format valid. Preceding the width field by '0' no longer affects the default alignment for strings, i.e. no longer sets the alignment to invalid '=' if it is not specified explicitly. >>> format('abc', '<8') 'abc

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

2018-12-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +10508 stage: needs patch -> patch review ___ Python tracker ___

[issue35259] Py_FinalizeEx unconditionally exists in Py_LIMITED_API

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

[issue24928] mock.patch.dict spoils order of items in collections.OrderedDict

2018-12-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thinking about it further the attached test is based on the ordering of dict and hence works only on 3.6 and above. But this test will be backported to mock on PyPI where this will fail on 2.7 and 3.4, 3.5. Is it okay to apply the fix that makes

[issue35208] IDLE: Squeezed lines count ignores window width

2018-12-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tal, trying to understand your confused description of what behavior you want to fix required me to experiment and think. There are at least 2 separate issues: triggering of auto-squeeze and lines reported (regardless of what triggers squeezing). The

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

2018-12-20 Thread era
era added the comment: I don't think this is a bug. My impression is that encoded words should be decodable in isolation. -- nosy: +era ___ Python tracker ___

[issue35548] memoryview needlessly (?) requires represented object to be hashable

2018-12-20 Thread Ilya Kulakov
New submission from Ilya Kulakov : Implementation of memoryview's hashing method [1] imposes the following constraints in order to be hashable (per documentation): > One-dimensional memoryviews of hashable (read-only) types with formats ‘B’, > ‘b’ or ‘c’ are also hashable. The hash is defined

[issue22703] Idle Code Context menu entrie(s)

2018-12-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a dependency of #33610. -- versions: -Python 3.6 ___ Python tracker ___ ___

[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?

  1   2   >