[issue36943] Windows test changes for Windows ARM64

2019-06-27 Thread Paul Monson
Change by Paul Monson : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue36944] Add support for ARM64 to libffi

2019-06-27 Thread Paul Monson
Paul Monson added the comment: submitted new PR to fix build and test issues for Windows ARM64 in Python https://github.com/libffi/libffi/pull/496 -- ___ Python tracker ___ _

[issue37435] builtin map iterator should provide __length_hint__

2019-06-27 Thread Nicholas Musolino
Nicholas Musolino added the comment: Thanks, Serihy. I can close this issue. I actually have been looking at this problem for some time, and created a patch, but don't what the "length transparency issues" that led to #26828 being closed. Do you think I should close this and comment on t

[issue26828] Implement __length_hint__() on map() and filter() to optimize list(map) and list(filter)

2019-06-27 Thread Nicholas Musolino
Change by Nicholas Musolino : -- pull_requests: +14249 pull_request: https://github.com/python/cpython/pull/14432 ___ Python tracker ___ ___

[issue37435] builtin map iterator should provide __length_hint__

2019-06-27 Thread Nicholas Musolino
Change by Nicholas Musolino : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue37433] syntax error in f-string in multiline string produces ~40k spaces of output

2019-06-27 Thread Aaron Meurer
Aaron Meurer added the comment: This looks like the same issue I mentioned here https://bugs.python.org/msg344764 -- nosy: +asmeurer ___ Python tracker ___ __

[issue37415] Error build Python with Intel compiler: doesn't provide atomic_uintptr_t

2019-06-27 Thread Borja
Borja added the comment: Two things. I searched a bit more and found "atomic_uint" inside , but it's not exactly the same as what you wrote. What you have put me to try, where do I put it? I attached in case it helps. -- Added file: https://bugs.python.org/file48443/stdatomic.h _

[issue26828] Implement __length_hint__() on map() and filter() to optimize list(map) and list(filter)

2019-06-27 Thread Nicholas Musolino
Nicholas Musolino added the comment: Before seeing this issue and its closed status, I created PR 14432, which adds `__length_hint__()` to the iterator returned by builtin `map`. This PR differs from the original 2017 PR by MSeifert in that the code can distinguish between the cases where a

[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2019-06-27 Thread Brett Cannon
Brett Cannon added the comment: Feel free to open a new issue to propose changing it. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue37409] relative import without parent

2019-06-27 Thread Brett Cannon
Brett Cannon added the comment: Please open a separate issue for the relative import issue. -- stage: resolved -> test needed ___ Python tracker ___ __

[issue37416] If threading is not imported from the main thread it sees the wrong thread as the main thread.

2019-06-27 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue37433] syntax error in f-string in multiline string produces ~40k spaces of output

2019-06-27 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +14250 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14433 ___ Python tracker ___

[issue23014] Don't have importlib.abc.Loader.create_module() be optional

2019-06-27 Thread Anthony Sottile
Anthony Sottile added the comment: I suspect it would be closed since it's essentially just a revert of this issue :S -- ___ Python tracker ___ __

[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-27 Thread Eryk Sun
Eryk Sun added the comment: > you should go through your current user's apps directory > (C:\Users\name\AppData\Local\Microsoft\WindowsApps\, > which contains only symlinks to the actual executables). "%LocalAppData%\Microsoft\WindowsApps" contains IO_REPARSE_TAG_APPEXECLINK reparse points.

[issue37412] os.getcwdb() doesn't implement PEP 528 (UTF-8) on Windows

2019-06-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +14251 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/14434 ___ Python tracker ___ __

[issue37430] range is not a built-in function

2019-06-27 Thread bob gailer
bob gailer added the comment: Thanks for explaining. Indeed range appears in __builtins__. It is a surprise to type range and get in response. sum otoh gives . The distinction between function, type and class seems muddy. When I enter "range" in the index box in the windows documentation dis

[issue37415] Error build Python with Intel compiler: doesn't provide atomic_uintptr_t

2019-06-27 Thread STINNER Victor
STINNER Victor added the comment: I suggested you to test the following change on the master branch of Python: diff --git a/Include/internal/pycore_atomic.h b/Include/internal/pycore_atomic.h index 336bc3fec2..c624a0cf1c 100644 --- a/Include/internal/pycore_atomic.h +++ b/Include/internal/pyco

[issue37369] Issue with pip in venv on Powershell in Windows

2019-06-27 Thread STINNER Victor
STINNER Victor added the comment: > For 3.8 I can apply the same fix and make sys.base_executable public, or keep > it as sys._base_executable. Either way, it'll show up in PyConfig. (Victor - > thoughts here? Should be a non-breaking change, right?) There is _PyConfig._config_version which

[issue37428] SSLContext.post_handshake_auth implicitly enables cert validation

2019-06-27 Thread Ned Deily
Ned Deily added the comment: Christian, just confirming that, since you have not set this as a "release blocker", 3.7.4 will go out without it. -- nosy: +ned.deily ___ Python tracker ___

[issue26828] Implement __length_hint__() on map() and filter() to optimize list(map) and list(filter)

2019-06-27 Thread STINNER Victor
STINNER Victor added the comment: The main issue with using length hint is that calling a method is Python is not free. Calling the method may add more overhead than the speedup provided by smarter memory allocations. The worst case for this optimization should be measured on very small data

[issue20443] __code__. co_filename should always be an absolute path

2019-06-27 Thread STINNER Victor
STINNER Victor added the comment: Example of case where a module path is still relative: --- import sys import os modname = 'relpath' filename = modname + '.py' sys.path.insert(0, os.curdir) with open(filename, "w") as fp: print("import sys", file=fp) print("mod = sys.modules[__name__]"

[issue37422] Documentation on the change of __path__ in Python 3

2019-06-27 Thread Eric V. Smith
Eric V. Smith added the comment: It's a _NamespacePath in 3.7 because there's no __init__.py in the top-level "google" directory, and that makes it a namespace package. I'm not exactly sure why it works in 2.7, frankly. Looking some more: it's because they're playing tricks in a .pth file.

[issue37422] Documentation on the change of __path__ in Python 3

2019-06-27 Thread Eric V. Smith
Eric V. Smith added the comment: And I see you're not asking for changed behavior, just documentation. But I think it is documented that this is how namespace packages work. -- ___ Python tracker __

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-06-27 Thread Zufu Liu
New submission from Zufu Liu : I think it's should be TypeError as Python 2.7. The doc https://docs.python.org/3/library/os.path.html doesn't says it accept file descriptor. Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright",

[issue37422] Documentation on the change of __path__ in Python 3

2019-06-27 Thread Jim Li
Jim Li added the comment: Ah, that started to make sense. To be honest I didn't really pay much attention to the _namespace's documentation, I only looked at that of __path__ and somehow expected it to mention that certain namespace won't be a type anymore. I will re-read your comments and

[issue37437] update vendorized expat to 2.2.7

2019-06-27 Thread Benjamin Peterson
New submission from Benjamin Peterson : Fixes CVE-2018-20843. -- components: XML messages: 346794 nosy: benjamin.peterson priority: normal severity: normal status: open title: update vendorized expat to 2.2.7 versions: Python 2.7, Python 3.6, Python 3.7, Python 3.8, Python 3.9

[issue37437] update vendorized expat to 2.2.7

2019-06-27 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +14252 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14436 ___ Python tracker __

[issue37437] update vendorized expat to 2.2.7

2019-06-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 3b03b09fc94425915c5b1225e9200a3a95bc827b by Benjamin Peterson in branch 'master': closes bpo-37437: Update vendorized expat to 2.2.7. (GH-14436) https://github.com/python/cpython/commit/3b03b09fc94425915c5b1225e9200a3a95bc827b -- re

[issue37437] update vendorized expat to 2.2.7

2019-06-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +14255 pull_request: https://github.com/python/cpython/pull/14439 ___ Python tracker ___ __

[issue37437] update vendorized expat to 2.2.7

2019-06-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +14256 pull_request: https://github.com/python/cpython/pull/14440 ___ Python tracker ___ __

[issue37437] update vendorized expat to 2.2.7

2019-06-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +14253 pull_request: https://github.com/python/cpython/pull/14437 ___ Python tracker ___ __

[issue37437] update vendorized expat to 2.2.7

2019-06-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +14254 pull_request: https://github.com/python/cpython/pull/14438 ___ Python tracker ___ __

[issue37437] update vendorized expat to 2.2.7

2019-06-27 Thread miss-islington
miss-islington added the comment: New changeset 515a026eb068e2730b6e2cddc9bbb1aef39d71fd by Miss Islington (bot) in branch '3.8': closes bpo-37437: Update vendorized expat to 2.2.7. (GH-14436) https://github.com/python/cpython/commit/515a026eb068e2730b6e2cddc9bbb1aef39d71fd -- nosy:

[issue37437] update vendorized expat to 2.2.7

2019-06-27 Thread miss-islington
miss-islington added the comment: New changeset 6632906c08e1d4de0fceba42c47886be41b7ba3d by Miss Islington (bot) in branch '3.6': closes bpo-37437: Update vendorized expat to 2.2.7. (GH-14436) https://github.com/python/cpython/commit/6632906c08e1d4de0fceba42c47886be41b7ba3d --

[issue37437] update vendorized expat to 2.2.7

2019-06-27 Thread miss-islington
miss-islington added the comment: New changeset 87cc66877ccf9c8222d51515c0d8de40c39d8af2 by Miss Islington (bot) in branch '3.7': closes bpo-37437: Update vendorized expat to 2.2.7. (GH-14436) https://github.com/python/cpython/commit/87cc66877ccf9c8222d51515c0d8de40c39d8af2 --

[issue37437] update vendorized expat to 2.2.7

2019-06-27 Thread miss-islington
miss-islington added the comment: New changeset 4397c68663efe58930b31c561e5948b4038875ae by Miss Islington (bot) in branch '2.7': closes bpo-37437: Update vendorized expat to 2.2.7. (GH-14436) https://github.com/python/cpython/commit/4397c68663efe58930b31c561e5948b4038875ae --

[issue20443] __code__. co_filename should always be an absolute path

2019-06-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This change seems to produce a new warning on my Mac. ./Modules/getpath.c:764:23: warning: incompatible pointer types passing 'char [1025]' to parameter of type 'const wchar_t *' (aka 'const int *') [-Wincompatible-pointer-types] _Py_is

[issue37436] os.path.isfile() with big number cause OverflowError: fd is greater than maximum

2019-06-27 Thread Aldwin Pollefeyt
Aldwin Pollefeyt added the comment: Integers seems to be accepted, so not a TypeError? Maybe documentation needs some more information. Documentation os.path under os.path.exists(path): Changed in version 3.3: path can now be an integer: True is returned if it is an open file descriptor,

[issue37399] XML text behaviour change if there are comments

2019-06-27 Thread Stefan Behnel
Stefan Behnel added the comment: I think it might be this call that strikes here: https://github.com/python/cpython/commit/43851a202c#diff-f3b827d6e1d5c270ab42bc2c0523c1d2R2842 treebuilder_flush_data() is not made for concatenating text, it simply replaces it. If both text parts come separat

[issue37399] XML text behaviour change if there are comments

2019-06-27 Thread Dima Tisnek
Dima Tisnek added the comment: Yes that does look suspicious! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue37390] Generate table of audit events for docs

2019-06-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Steve, the page will serve as a good reference to all audit events. -- ___ Python tracker ___ __

<    1   2