[issue21983] segfault in ctypes.cast

2018-09-21 Thread Steve Dower
Steve Dower added the comment: Still needs a backport to 2.7 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue34700] typing.get_type_hints doesn't know about typeshed

2018-09-21 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: I think there is also a fourth option: add a flag to `get_type_hints()` that will guard evaluation of forward references, as proposed in https://github.com/python/typing/issues/508. If the evaluation of a "forward reference" raises an error, then we keep it

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-09-21 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +8892 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-09-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Can you describe what usages of the old API will continue to work, and what > part will break? Very good question! What will continue to work: * Instantiating. Both `Num(42)` and `Num(n=42)` will continue to work, but they will return an instance of Co

[issue34725] Py_GetProgramFullPath() odd behaviour in Windows

2018-09-21 Thread Mario
Mario added the comment: On 21/09/2018 21:44, Steve Dower wrote: > > Steve Dower added the comment: > > I meant returning the full name of the process is intentional. But you're > right that overriding it should actually override it. > > I found the prior bug at issue33180, but I'm closing

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-09-21 Thread STINNER Victor
STINNER Victor added the comment: > * If the user of NodeVisitor implemented visit_Num(), but not implemented > visit_Constant(), his handler will not be triggered. This can be easily fixed > by implementing visit_Constant(). Constant was introduced in 3.6. IHMO that's an acceptable tradeoff

[issue34750] locals().update doesn't work in Enum body, even though direct assignment to locals() does

2018-09-21 Thread Dan Snider
Dan Snider added the comment: It's working as intended. locals() and vars() simply returns the current frame's f_locals. In functions, modifying this usually accomplishes nothing useful because the code object has OPTIMIZED and NEWLOCALS flags set, meaning local variables are looked up or se

[issue34764] Improve documentation example for using iter() with sentinel value

2018-09-21 Thread ChrisRands
ChrisRands added the comment: Thank you Raymond, I like both your examples, although I think I prefer 1) for the simplicity -- ___ Python tracker ___

[issue34537] test_gdb fails with LC_ALL=C

2018-09-21 Thread Elvis Pranskevichus
Change by Elvis Pranskevichus : -- keywords: +patch pull_requests: +8893 stage: -> patch review ___ Python tracker ___ ___ Python-b

[issue34744] New %(flag)s format specifier for argparse.add_argument help string

2018-09-21 Thread paul j3
paul j3 added the comment: In your proposed change: params = dict(vars(action), prog=self._prog) + if action.option_strings: + params['flag'] = action.option_strings[0] 'params', as I noted earlier already includes the 'dest' and 'option_strings' list. 'option_st

[issue34751] Hash collisions for tuples

2018-09-21 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I pushed a minor update to the PR, changing the MULTIPLIER and explaining the chosen constants. -- ___ Python tracker ___ __

[issue34561] Replace list sorting merge_collapse()?

2018-09-21 Thread Tim Peters
Tim Peters added the comment: Thank you, Vincent! I very much enjoyed - and appreciated - your paper I referenced at the start. Way back when, I thought I had a proof of O(N log N), but never wrote it up because some details weren't convincing - even to me ;-) . Then I had to move on to o

[issue34575] Python 3.6 compilation fails on AppVeyor: libeay.lib was created with an older compiler

2018-09-21 Thread STINNER Victor
STINNER Victor added the comment: It seems like the bug has been fixed. Thanks Zachary Ware for the fix, and thanks everybody for helping to fix this cache issue ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed __

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-09-21 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +easy title: SimpleHTTPServer: warn users on security -> [EASY doc] http.server, SimpleHTTPServer: warn users on security ___ Python tracker __

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2018-09-21 Thread STINNER Victor
STINNER Victor added the comment: Yury, Andrew: Do you know if the executor doesn't wait on purpose? Would it be possible to change that in Python 3.8? -- ___ Python tracker

[issue32718] Install PowerShell activation scripts for venv for all platforms

2018-09-21 Thread miss-islington
miss-islington added the comment: New changeset d64ee1a5ba2007ae5fe085dd3495013d940a51bb by Miss Islington (bot) (Brett Cannon) in branch 'master': bpo-32718: Make Activate.ps1 for venv cross-platform and available on all platforms (GH-9321) https://github.com/python/cpython/commit/d64ee1a5b

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2018-09-21 Thread Yury Selivanov
Yury Selivanov added the comment: > Yury, Andrew: Do you know if the executor doesn't wait on purpose? Would it > be possible to change that in Python 3.8? Maybe. At least we need to add a "timeout" argument to asyncio.run() to let it wait for executor jobs. I'm also thinking about making

[issue32718] Install PowerShell activation scripts for venv for all platforms

2018-09-21 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-09-21 Thread Elvis Pranskevichus
Change by Elvis Pranskevichus : -- keywords: +patch pull_requests: +8894 stage: -> patch review ___ Python tracker ___ ___ Python-b

[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-09-21 Thread Elvis Pranskevichus
Elvis Pranskevichus added the comment: > In particular, if a build system sets SOURCE_DATE_EPOCH without specifying a pyc format for py_compile or compileall, Python 3.7 will give you checked hashes by default Actually, py_compile will _force_ the CHECKED_HASH mode if SOURCE_DATE_EPOCH is set

[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-09-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: I dislike that having SOURCE_DATE_EPOCH set magically changes command line tools behavior. In my view, this problem should be fixed by reverting ccbe5818af2. -- nosy: +benjamin.peterson ___ Python tracker

[issue34763] Python lacks 0x4E17

2018-09-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: As I said on the PR, this is because Unicode gives U+4E17 (and other CJK ideographs) a numeric value only in the UniHan database not the normal UCD. makeunicodedata.py only looks at UCD for numeric values. -- nosy: +benjamin.peterson

[issue32706] test_check_hostname() of test_ftplib started to fail randomly

2018-09-21 Thread STINNER Victor
STINNER Victor added the comment: Christian: It seems like the test now pass on my Fedora 27. Is it time to enable the test again? -- ___ Python tracker ___ _

[issue31986] [2.7] test_urllib2net.test_sites_no_connection_close() randomly fails on Python 2.7

2018-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue31511] test_normalization: test.support.open_urlresource() doesn't handle urllib.error.URLError timeout

2018-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue31007] ERROR: test_pipe_handle (test.test_asyncio.test_windows_utils.PipeTests) expected ERROR_INVALID_HANDLE on x86 Windows7 3.x

2018-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-09-21 Thread Elvis Pranskevichus
Elvis Pranskevichus added the comment: Perhaps SOURCE_DATE_EPOCH should only be consulted to determine the default behavior if invalidation_mode was not passed explicitly to py_compile.compile(). -- ___ Python tracker

[issue30350] devguide suggests to use VS 2008 to build Python 2.7, but VS 2008 is no more supported?

2018-09-21 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyth

[issue34768] Add documentation explaining __init__.py in packages

2018-09-21 Thread Benito Kestelman
Change by Benito Kestelman : -- title: Add documentation for the purpose of __init__.py in packages -> Add documentation explaining __init__.py in packages ___ Python tracker

[issue34576] [EASY doc] http.server, SimpleHTTPServer: warn users on security

2018-09-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: There was some disagreement later on the list about adding this warning. We will fix security issues in SimpleHTTPServer. -- nosy: +benjamin.peterson ___ Python tracker

[issue34537] test_gdb fails with LC_ALL=C

2018-09-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7279b5125e7c5d84a473d250b27d353cb7f6628e by Victor Stinner (Elvis Pranskevichus) in branch 'master': bpo-34537: Fix test_gdb:test_strings with LC_ALL=C (GH-9483) https://github.com/python/cpython/commit/7279b5125e7c5d84a473d250b27d353cb7f6628e

[issue34537] test_gdb fails with LC_ALL=C

2018-09-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +8895 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34537] test_gdb fails with LC_ALL=C

2018-09-21 Thread STINNER Victor
STINNER Victor added the comment: I don't think that it's worth it to backport the change to Python 3.6 and older, since "LC_ALL=C ./python -m test test_gdb" already pass on 2.7 and 3.6. -- ___ Python tracker _

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2018-09-21 Thread Guido van Rossum
Guido van Rossum added the comment: I was pointed here after we found some erroneous behavior. We have a script run by the system python that invokes a specific venv's python3 with a -m flag requesting a module that is installed (only) in that venv. A user complained that this failed, with t

[issue34537] test_gdb fails with LC_ALL=C

2018-09-21 Thread miss-islington
miss-islington added the comment: New changeset e5fde1f992e94f166415ab96d874ed1d2e0c8004 by Miss Islington (bot) in branch '3.7': bpo-34537: Fix test_gdb:test_strings with LC_ALL=C (GH-9483) https://github.com/python/cpython/commit/e5fde1f992e94f166415ab96d874ed1d2e0c8004 -- nosy: +

[issue32117] Tuple unpacking in return and yield statements

2018-09-21 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset fd97d1f1af910a6222ea12aec42c456b64f9aee4 by Guido van Rossum (David Cuthbert) in branch 'master': bpo-32117: Allow tuple unpacking in return and yield statements (gh-4509) https://github.com/python/cpython/commit/fd97d1f1af910a6222ea12aec42c45

[issue32117] Tuple unpacking in return and yield statements

2018-09-21 Thread Guido van Rossum
Guido van Rossum added the comment: Fixed by https://github.com/python/cpython/pull/4509. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue29577] Enum: mixin classes don't mix well with already mixed Enums

2018-09-21 Thread Ethan Furman
Ethan Furman added the comment: New changeset 5bdab641da0afd8aa581dfbde4f82d88d337c4b5 by Ethan Furman in branch 'master': bpo-29577: Enum: mixin classes don't mix well with already mixed Enums (GH-9328) https://github.com/python/cpython/commit/5bdab641da0afd8aa581dfbde4f82d88d337c4b5 -

[issue29577] Enum: mixin classes don't mix well with already mixed Enums

2018-09-21 Thread Ethan Furman
Change by Ethan Furman : -- pull_requests: +8896 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue34397] remove redundant overflow checks in tuple and list implementations

2018-09-21 Thread Windson Yang
Windson Yang added the comment: Hello, Tim Peters. I wonder why we need to add size_t here: assert((size_t)Py_SIZE(a) + (size_t)Py_SIZE(b) <= (size_t)PY_SSIZE_T_MAX); AFAIK, PY_SSIZE_T_MAX = ((Py_ssize_t)(((size_t)-1)>>1)) which is signed, either Py_SIZE(a) or Py_SIZE(b) is a positive nu

[issue34751] Hash collisions for tuples

2018-09-21 Thread Tim Peters
Tim Peters added the comment: >> Why do you claim the original was "too small"? Too small for >> what purpose? > If the multiplier is too small, then the resulting hash values are > small too. This causes collisions to appear for smaller numbers: All right! An actual reason ;-) So there ar

[issue32117] Tuple unpacking in return and yield statements

2018-09-21 Thread Jordan Chapman
Change by Jordan Chapman : -- pull_requests: +8897 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34397] remove redundant overflow checks in tuple and list implementations

2018-09-21 Thread Tim Peters
Tim Peters added the comment: Because the behavior of signed integer overflow isn't defined in C. Picture a 3-bit integer type, where the maximum value of the signed integer type is 3. 3+3 has no defined result. Cast them to the unsigned flavor of the integer type, though, and the result

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

2018-09-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-09-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +8898 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-09-21 Thread miss-islington
miss-islington added the comment: New changeset 026337a7101369297c8083047d2f3c6fc9dd1e2b by Miss Islington (bot) (Christian Heimes) in branch 'master': bpo-34623: Mention CVE-2018-14647 in news entry (GH-9482) https://github.com/python/cpython/commit/026337a7101369297c8083047d2f3c6fc9dd1e2b

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-09-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +8900 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-09-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +8899 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +8901 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-21 Thread miss-islington
miss-islington added the comment: New changeset c0da582b227f311126e278b5553a7fa89c79b054 by Miss Islington (bot) (Nathaniel J. Smith) in branch 'master': bpo-34759: Fix error handling in ssl 'unwrap()' (GH-9468) https://github.com/python/cpython/commit/c0da582b227f311126e278b5553a7fa89c79b054

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-21 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +8902 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-09-21 Thread miss-islington
miss-islington added the comment: New changeset d1b336e530472f316b1d164d04626724c83b16d7 by Miss Islington (bot) in branch '3.6': [3.6] bpo-34623: Mention CVE-2018-14647 in news entry (GH-9482) (GH-9489) https://github.com/python/cpython/commit/d1b336e530472f316b1d164d04626724c83b16d7 -

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-09-21 Thread miss-islington
miss-islington added the comment: New changeset 10be1d3f802b874914b2a13eb41407c7a582d9b3 by Miss Islington (bot) in branch '2.7': [2.7] bpo-34623: Mention CVE-2018-14647 in news entry (GH-9482) (GH-9490) https://github.com/python/cpython/commit/10be1d3f802b874914b2a13eb41407c7a582d9b3 -

[issue34623] _elementtree.c doesn't call XML_SetHashSalt()

2018-09-21 Thread miss-islington
miss-islington added the comment: New changeset 5c3d8b2efda1b99abe09ad925f366c5695bd66fb by Miss Islington (bot) in branch '3.7': [3.7] bpo-34623: Mention CVE-2018-14647 in news entry (GH-9482) (GH-9488) https://github.com/python/cpython/commit/5c3d8b2efda1b99abe09ad925f366c5695bd66fb -

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-21 Thread miss-islington
miss-islington added the comment: New changeset c00f7037df3607c89323e68db3ab996b7df394de by Miss Islington (bot) in branch '3.7': bpo-34759: Fix error handling in ssl 'unwrap()' (GH-9468) https://github.com/python/cpython/commit/c00f7037df3607c89323e68db3ab996b7df394de -- _

[issue34759] Possible regression in ssl module in 3.7.1 and master

2018-09-21 Thread miss-islington
miss-islington added the comment: New changeset 7529754d26f5e744ae25bee56fdc1937bcf08c7e by Miss Islington (bot) (Christian Heimes) in branch '3.6': [3.6] bpo-34759: Fix error handling in ssl 'unwrap()' (GH-9468) (GH-9492) https://github.com/python/cpython/commit/7529754d26f5e744ae25bee56fdc1

[issue32352] `inspect.getfullargspec` doesn't work fine for some builtin callable objects

2018-09-21 Thread thautwarm
thautwarm added the comment: Maybe a few adjustments to this one? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue29577] Enum: mixin classes don't mix well with already mixed Enums

2018-09-21 Thread Ethan Furman
Ethan Furman added the comment: New changeset 0c076caaa82a9c6596e1fe1dbe6384d53f30a1a3 by Ethan Furman in branch '3.7': [3.7] bpo-29577: Enum: mixin classes don't mix well with already mixed Enums (GH-9328) (GH-9486) https://github.com/python/cpython/commit/0c076caaa82a9c6596e1fe1dbe6384d53f

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-09-21 Thread thautwarm
thautwarm added the comment: I'm in favor of this idea for prospective extensions that could be implemented through this brand-new ast.Constant. Actually I used to expect a more general ast.Constant when I was manipulating ASTs half a year ago, at that time my job is to make staging functi

<    1   2