[issue39279] Don't allow non-Ascii digits in platform.py

2020-01-22 Thread Mark Dickinson
Mark Dickinson added the comment: > If you think I need to come up with a specific example where this can be > misused I think so, yes. :-) We shouldn't change this (and risk other breakage) without evidence that there's an actual problem. -- nosy: +mark.dickinson

[issue39407] Bitfield Union does not work for bit widths greater than 8 bits

2020-01-22 Thread Ammar Askar
Change by Ammar Askar : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39295] usage of bitfields in ctypes structures changed between 3.7.5 and 3.7.6

2020-01-22 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue38921] Max Recursion Depth Reached in Logging Library

2020-01-22 Thread Vinay Sajip
Vinay Sajip added the comment: @yang, thanks for the analysis - spot on. Closing, as this is a bug in the reporter's code and not in logging. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue35003] Provide an option to venv to put files in a bin/ directory on Windows

2020-01-22 Thread Vinay Sajip
Vinay Sajip added the comment: > This *should* reside in the bin directory That's your opinion, but there are other views. As Paul Moore said in this comment: https://github.com/python/cpython/pull/18083#issuecomment-577278587 Having things in bin *and* Scripts is more confusing than "on

[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread miss-islington
miss-islington added the comment: New changeset 545fc51d950558ecec9ff64cb2f9c11469051524 by Miss Islington (bot) in branch '3.8': bpo-32989: IDLE - remove unneeded parameter (GH-18138) https://github.com/python/cpython/commit/545fc51d950558ecec9ff64cb2f9c11469051524 --

[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread miss-islington
miss-islington added the comment: New changeset 36968c13cb9800559dbb90686933da7daf52c788 by Miss Islington (bot) in branch '3.7': bpo-32989: IDLE - remove unneeded parameter (GH-18138) https://github.com/python/cpython/commit/36968c13cb9800559dbb90686933da7daf52c788 --

[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset f9e07e116c32b6dc4561d0bdeb452ccde13b0e7c by Terry Jan Reedy in branch 'master': bpo-32989: IDLE - remove unneeded parameter (GH-18138) https://github.com/python/cpython/commit/f9e07e116c32b6dc4561d0bdeb452ccde13b0e7c --

[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +17525 pull_request: https://github.com/python/cpython/pull/18139 ___ Python tracker ___

[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +17526 pull_request: https://github.com/python/cpython/pull/18140 ___ Python tracker ___

[issue39279] Don't allow non-Ascii digits in platform.py

2020-01-22 Thread Ezio Melotti
Ezio Melotti added the comment: Do you know/can you verify if Chinese versions of Windows/Linux/MacOS include non-ASCII version numbers (e.g. fullwidth digits)? -- ___ Python tracker

[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +17524 pull_request: https://github.com/python/cpython/pull/18138 ___ Python tracker ___

[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tim, idlelib.pyparse has this definition: # Find what looks like the start of a popular statement. _synchre = re.compile(r""" ^ [ \t]* (?: while | else | def | return | assert | break | class | continue

[issue32989] IDLE: Fix pyparse.find_good_parse_start

2020-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Cheryl, sorry to take so long. I will look at and probably remove the _synchre parameter, on this issue. Feel free to pursue any of the other possible followups. -- versions: +Python 3.9 -Python 3.6 ___ Python

[issue39050] The "Help" button in IDLE's config dialog does not work

2020-01-22 Thread miss-islington
miss-islington added the comment: New changeset 3b7618809df647574e8aad4c2d869a1d55df147c by Miss Islington (bot) in branch '3.8': bpo-39050: The Help button in IDLE's config menu works again (GH-17611) https://github.com/python/cpython/commit/3b7618809df647574e8aad4c2d869a1d55df147c

[issue39050] The "Help" button in IDLE's config dialog does not work

2020-01-22 Thread miss-islington
miss-islington added the comment: New changeset ba83d1eb1c7b5e8eab17da364a6324b0b0e0932b by Miss Islington (bot) in branch '3.7': bpo-39050: The Help button in IDLE's config menu works again (GH-17611) https://github.com/python/cpython/commit/ba83d1eb1c7b5e8eab17da364a6324b0b0e0932b

[issue39050] The "Help" button in IDLE's config dialog does not work

2020-01-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +17523 pull_request: https://github.com/python/cpython/pull/18137 ___ Python tracker ___

[issue39050] The "Help" button in IDLE's config dialog does not work

2020-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 2e43b64c94e49f7133b9c26e84c9519935c49063 by Terry Jan Reedy (Zackery Spytz) in branch 'master': bpo-39050: The Help button in IDLE's config menu works again (GH-17611)

[issue39050] The "Help" button in IDLE's config dialog does not work

2020-01-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +17522 pull_request: https://github.com/python/cpython/pull/18136 ___ Python tracker ___

[issue39298] add BLAKE3 to hashlib

2020-01-22 Thread Jack O'Connor
Jack O'Connor added the comment: Version 0.1.3 of the official BLAKE3 repo includes some significant performance improvements: - The x86 implementations include explicit prefetch instructions, which helps with long inputs. (commit b8c33e1) - The C implementation now uses the same parallel

[issue39401] Unsafe dll loading in getpathp.c on Win7

2020-01-22 Thread Ned Deily
Change by Ned Deily : -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39401] Unsafe dll loading in getpathp.c on Win7

2020-01-22 Thread Ned Deily
Change by Ned Deily : -- priority: normal -> deferred blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39279] Don't allow non-Ascii digits in platform.py

2020-01-22 Thread Xiang Zhang
Xiang Zhang added the comment: I can't understand the rational for rejecting localized digits though I don't know who will use them in practise. I'd rather fix it until there is a real problem with it. -- nosy: +xiang.zhang ___ Python tracker

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread STINNER Victor
Change by STINNER Victor : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29435] Allow to pass fileobj to is_tarfile

2020-01-22 Thread William Woodruff
William Woodruff added the comment: Thanks to you to! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29435] Allow to pass fileobj to is_tarfile

2020-01-22 Thread Ethan Furman
Ethan Furman added the comment: Thanks, William! -- assignee: -> ethan.furman resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29435] Allow to pass fileobj to is_tarfile

2020-01-22 Thread Ethan Furman
Ethan Furman added the comment: New changeset dd754caf144009f0569dda5053465ba2accb7b4d by Ethan Furman (William Woodruff) in branch 'master': bpo-29435: Allow is_tarfile to take a filelike obj (GH-18090) https://github.com/python/cpython/commit/dd754caf144009f0569dda5053465ba2accb7b4d

[issue39395] The os module should unset() environment variable at exit

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: Clearing environment variables at exit has a drawback: it changes the behavior in code executed after Python finalization (Py_FinalizeEx() call). It may cause regression. So I proposed PR 18135 to fix this issue differently: on non-Windows platforms,

[issue39395] The os module should unset() environment variable at exit

2020-01-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17521 pull_request: https://github.com/python/cpython/pull/18135 ___ Python tracker ___

[issue39401] Unsafe dll loading in getpathp.c on Win7

2020-01-22 Thread Steve Dower
Steve Dower added the comment: Agreed, we can just search System32 for this. Thanks for doing the patch! For future reference, and for anyone else reading this, we generally prefer unavoidable DLL hijacking bugs to come to the Python Security Response Team first (secur...@python.org).

[issue39412] Install launcher for all users

2020-01-22 Thread Steve Dower
Steve Dower added the comment: It's also a little bit historical - there was no way to *remove* the Python 3.4 launcher (always in C:\Windows), and it wasn't going to find many 3.5 installs, so we stomp on it. At this stage, it's potentially safe to turn it into a per-user install by

[issue39412] Install launcher for all users

2020-01-22 Thread Steve Dower
Change by Steve Dower : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39427] python -X options are not documented in the CLI --help

2020-01-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +17520 pull_request: https://github.com/python/cpython/pull/18134 ___ Python tracker ___

[issue39427] python -X options are not documented in the CLI --help

2020-01-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +17519 pull_request: https://github.com/python/cpython/pull/18133 ___ Python tracker ___

[issue39429] Add a new "Python Development Mode" page to the documentation

2020-01-22 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +17518 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18132 ___ Python tracker ___

[issue39427] python -X options are not documented in the CLI --help

2020-01-22 Thread miss-islington
miss-islington added the comment: New changeset 41f0ef6abbd304409c55612a08788cdd59fbc8a3 by Miss Islington (bot) (Pablo Galindo) in branch 'master': bpo-39427: Document -X opt options in the CLI --help and the man page (GH-18131)

[issue39429] Add a new "Python Development Mode" page to the documentation

2020-01-22 Thread STINNER Victor
New submission from STINNER Victor : Currently, the Python Development Mode is under-documented. The documentation lives in the documentation of the -X command line option which doesn't give much space to elaborate on effects of the development mode, how it should be used, suggest ways to

[issue39336] Immutable module type can't be used as package in custom loader

2020-01-22 Thread Dino Viehland
Change by Dino Viehland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39336] Immutable module type can't be used as package in custom loader

2020-01-22 Thread Dino Viehland
Dino Viehland added the comment: New changeset 9b6fec46513006d7b06fcb645cca6e4f5bf7c7b8 by Dino Viehland in branch 'master': bpo-39336: Allow packages to not let their child modules be set on them (#18006) https://github.com/python/cpython/commit/9b6fec46513006d7b06fcb645cca6e4f5bf7c7b8

[issue39389] gzip metadata fails to reflect compresslevel

2020-01-22 Thread William Chargin
William Chargin added the comment: My pleasure; thanks for the triage and review! -- ___ Python tracker ___ ___ Python-bugs-list

[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2020-01-22 Thread Miro Hrončok
Miro Hrončok added the comment: For the record, looking at https://docs.python.org/3.9/whatsnew/3.9.html I had an impression that this also affects regular imports, as described in https://bugzilla.redhat.com/show_bug.cgi?id=1791769#c2 -- if that's not that case, I'm sorry. Anyway, I get

[issue39428] allow creation of "symtable entry" objects from Python

2020-01-22 Thread Carl Meyer
New submission from Carl Meyer : Currently the "symtable entry" extension type (PySTEntry_Type) defined in `Python/symtable.c` defines no `tp_new` or `tp_init`, making it impossible to create instances of this type from Python code. I have a use case for pickling symbol tables (as part of a

[issue35182] Popen.communicate() breaks when child closes its side of pipe but not exits

2020-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: backport automation appears unhappy at the moment. I'm keeping this open and assigned to me to manually run cherry_picker on this for 3.8 and 3.7 (if still open for non-security fixes). -- assignee: -> gregory.p.smith stage: patch review ->

[issue35182] Popen.communicate() breaks when child closes its side of pipe but not exits

2020-01-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset d3ae95e1e945ed20297e1c38ba43a18b7a868ab6 by Gregory P. Smith (Alex Rebert) in branch 'master': bpo-35182: fix communicate() crash after child closes its pipes (GH-17020) (GH-18117)

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread Martin Panter
Martin Panter added the comment: Building and verifying the checksum in "RTA protocol" that uses this: . But I understand CRC-CCITT is one of the two popular 16-bit CRC polynomials, used in

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: > Is there a recommended replacement for calculating CRC-CCITT? Do it yourself > in Python code, or use a particular external module? What is your use case? -- ___ Python tracker

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread Martin Panter
Martin Panter added the comment: Is there a recommended replacement for calculating CRC-CCITT? Do it yourself in Python code, or use a particular external module? -- nosy: +martin.panter ___ Python tracker

[issue39427] python -X options are not documented in the CLI --help

2020-01-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +17517 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18131 ___ Python tracker

[issue39427] python -X options are not documented in the CLI --help

2020-01-22 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : When running python --help there is no documentation on the -X opt options available. It just says: -X opt : set implementation-specific option without what 'opt' can be. -- assignee: pablogsal components: Interpreter Core messages: 360516

[issue39425] list.count performance regression

2020-01-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17516 pull_request: https://github.com/python/cpython/pull/18130 ___ Python tracker ___

[issue39395] The os module should unset() environment variable at exit

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: I closed bpo-39406: os.putenv() is now implemented with setenv() if available. The internal putenv_dict is no longer used on Windows and if setenv() is available. Now only non-Windows platforms without setenv() are affected by this issue. --

[issue39366] Remove deprecated nntplib method

2020-01-22 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the PR! I'm glad these previously deprecated functions are now gone. -- components: +Library (Lib) resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___

[issue39406] Implement os.putenv() with setenv() if available

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: The initial issue has been fixed, so I close the issue. Big thanks to Eryk Sun for your great help, thanks also Serhiy Storchaka. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue39406] Implement os.putenv() with setenv() if available

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: > Maybe use SetEnvironmentVariable() on Windows? In bpo-39413, I implemented os.unsetenv() on Windows using SetEnvironmentVariable(), but Eryk reported that SetEnvironmentVariable() does not update the CRT API (_environ, _wenviron, getenv, etc.). So

[issue39366] Remove deprecated nntplib method

2020-01-22 Thread Berker Peksag
Berker Peksag added the comment: New changeset 1f0f102dec506fd06f912b74dd2be64a7fba0d3f by Berker Peksag (Dong-hee Na) in branch 'master': bpo-39366: Remove xpath() and xgtitle() methods of NNTP (GH-18035) https://github.com/python/cpython/commit/1f0f102dec506fd06f912b74dd2be64a7fba0d3f

[issue39425] list.count performance regression

2020-01-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > The following result is a little bit surprising: haha, I went to exactly the same journey when reviewing this PR :) -- ___ Python tracker

[issue39406] Implement os.putenv() with setenv() if available

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset b477d19a6b7751b0c933b239dae4fc96dbcde9c4 by Victor Stinner in branch 'master': bpo-39406: Implement os.putenv() with setenv() if available (GH-18128) https://github.com/python/cpython/commit/b477d19a6b7751b0c933b239dae4fc96dbcde9c4 --

[issue39425] list.count performance regression

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: > In fact, PyObject_RichCompareBool() has a fast path if the two object > pointers are equal It's documented: https://docs.python.org/dev/c-api/object.html?highlight=pyobject_richcomparebool#c.PyObject_RichCompareBool --

[issue39425] list.count performance regression

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: The following result is a little bit surprising: >>> nan=float("nan"); ([nan]*5).count(nan) 5 >>> nan == nan False But in fact, the optimization doesn't change the value. It was already 5 previously. In fact, PyObject_RichCompareBool() has a fast path if

[issue39411] pyclbr rewrite using AST

2020-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: A separate doc change issue and PR would be fine. Should we add a note explaining the module name as a contraction of an originally restricted scope? Make me nosy and invite review. Actually, a doc issue for the module as is should *fully* explain

[issue39406] Implement os.putenv() with setenv() if available

2020-01-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17515 pull_request: https://github.com/python/cpython/pull/18128 ___ Python tracker ___

[issue39406] Implement os.putenv() with setenv() if available

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0852c7dd52ac42e7843ddfef44571494e4c86070 by Victor Stinner in branch 'master': bpo-39406: os.putenv() avoids putenv_dict on Windows (GH-18126) https://github.com/python/cpython/commit/0852c7dd52ac42e7843ddfef44571494e4c86070 --

[issue24337] Implement `http.client.HTTPMessage.__repr__` to make debugging easier

2020-01-22 Thread R. David Murray
R. David Murray added the comment: Thanks for the PR, but I've noted an issue on the review. In any case we should agree on what goes in the repr here in this issue before actually implementing anything. -- ___ Python tracker

[issue24337] Implement `http.client.HTTPMessage.__repr__` to make debugging easier

2020-01-22 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.9 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list

[issue24337] Implement `http.client.HTTPMessage.__repr__` to make debugging easier

2020-01-22 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +17514 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18127 ___ Python tracker ___

[issue39406] Implement os.putenv() with setenv() if available

2020-01-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17513 pull_request: https://github.com/python/cpython/pull/18126 ___ Python tracker ___

[issue39413] Implement os.unsetenv() on Windows

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset b73dd02ea744288831f71363a7467552c09875ea by Victor Stinner in branch 'master': Revert "bpo-39413: Implement os.unsetenv() on Windows (GH-18104)" (GH-18124) https://github.com/python/cpython/commit/b73dd02ea744288831f71363a7467552c09875ea

[issue39361] [C API] Document PyTypeObject.tp_print removal in What's New In Python 3.9

2020-01-22 Thread Ammar Askar
Change by Ammar Askar : -- keywords: +patch pull_requests: +17512 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18125 ___ Python tracker ___

[issue39413] Implement os.unsetenv() on Windows

2020-01-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +17511 pull_request: https://github.com/python/cpython/pull/18124 ___ Python tracker ___

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: > I agree with deprecating binhex. Good :-) It's now deprecated. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39353] Deprecate the binhex module, binhex4 and hexbin4 standards

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset beea26b57e8c80f1eff0f967a0f9d083a7dc3d66 by Victor Stinner in branch 'master': bpo-39353: Deprecate the binhex module (GH-18025) https://github.com/python/cpython/commit/beea26b57e8c80f1eff0f967a0f9d083a7dc3d66 --

[issue38076] Make struct module PEP-384 compatible

2020-01-22 Thread Dino Viehland
Dino Viehland added the comment: With either fix, or with both, on Linux I still see this hang at shutdown. Victor mentioned the fact that he had to hit Ctrl-C on Linux to see this, and I have to do the same thing. Then with the fixes in place the original test case still hangs on

[issue39400] pydoc: Use of MANPAGER variable is incorrect

2020-01-22 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +17510 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18123 ___ Python tracker ___

[issue39426] Pickler docstring misstates default and highest protocols

2020-01-22 Thread Mark Dickinson
Change by Mark Dickinson : -- assignee: docs@python -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39426] Pickler docstring misstates default and highest protocols

2020-01-22 Thread Mark Dickinson
Mark Dickinson added the comment: > Do you want to submit a PR? Not immediately. I'll add it to my to-do list, but definitely won't complain if someone else gets there first. -- ___ Python tracker

[issue39426] Pickler docstring misstates default and highest protocols

2020-01-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Good catch. Do you want to submit a PR? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue39426] Pickler docstring misstates default and highest protocols

2020-01-22 Thread Mark Dickinson
New submission from Mark Dickinson : >From the pickle.Pickler docstring: > The optional *protocol* argument tells the pickler to use the given > protocol; supported protocols are 0, 1, 2, 3 and 4. The default > protocol is 3; a backward-incompatible protocol designed for Python 3. That's out

[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2020-01-22 Thread Brett Cannon
Brett Cannon added the comment: The problem with the hybrid exception is that importlib would then still raise a different exception from import itself, so the discrepancy would persist. And if you updated import you could then break people in another way where they were catching ValueError

[issue39422] datetime.datetime.strptime incorrectly interpretting format '%Y%m%d'

2020-01-22 Thread Cleland Loszewski
Cleland Loszewski added the comment: You're right, I did mean the second string to report '20200106'. Looking closer, I see that I was reading the documentation incorrectly and getting hung up on an introduced ambiguity. ```python from datetime import datetime

[issue39425] list.count performance regression

2020-01-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 9e06d61af30bac4fcacb7973f826147ccc010392 by Pablo Galindo (Miss Islington (bot)) in branch '3.7': bpo-39425: Fix list.count performance regression (GH-18119) (GH-18121)

[issue39425] list.count performance regression

2020-01-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the PR, Dong-hee Na :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39425] list.count performance regression

2020-01-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset fdb21609d944941f0732df72dc3d07a7a9a7efea by Pablo Galindo (Miss Islington (bot)) in branch '3.8': bpo-39425: Fix list.count performance regression (GH-18119) (GH-18120)

[issue35003] Provide an option to venv to put files in a bin/ directory on Windows

2020-01-22 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39390] shutil.copytree - 3.8 changed argument types of the ignore callback

2020-01-22 Thread Manuel Barkhau
Change by Manuel Barkhau : -- pull_requests: +17509 pull_request: https://github.com/python/cpython/pull/18122 ___ Python tracker ___

[issue39425] list.count performance regression

2020-01-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +17507 pull_request: https://github.com/python/cpython/pull/18120 ___ Python tracker ___

[issue39425] list.count performance regression

2020-01-22 Thread miss-islington
miss-islington added the comment: New changeset 14d80d0b605d8b148e14458e4c1853a940071462 by Miss Islington (bot) (Dong-hee Na) in branch 'master': bpo-39425: Fix list.count performance regression (GH-18119) https://github.com/python/cpython/commit/14d80d0b605d8b148e14458e4c1853a940071462

[issue39425] list.count performance regression

2020-01-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +17508 pull_request: https://github.com/python/cpython/pull/18121 ___ Python tracker ___

[issue39425] list.count performance regression

2020-01-22 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39420] Windows: convertenviron() doesn't parse environment variables properly

2020-01-22 Thread Eryk Sun
Eryk Sun added the comment: > The problem is that the _wputenv() function allows to insert variable > names containing the "=" character No, it does not. Your experiments uncovered bugs elsewhere with the implementations of _wgetenv and WINAPI GetEnvironmentVariableW, but this isn't one

[issue38495] print built-in function docs bug

2020-01-22 Thread Julien Palard
Julien Palard added the comment: PR 17062 about stating it's a space by default has been rejected. I also feel we should just enhance the space width in the prototype. I personally see the space, but as it's in italic, I can understand it's very easy to miss it. I like the `font-family:

[issue39425] list.count performance regression

2020-01-22 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +inada.naoki, pablogsal, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39425] list.count performance regression

2020-01-22 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +17506 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18119 ___ Python tracker ___

[issue39425] list.count performance regression

2020-01-22 Thread Dong-hee Na
New submission from Dong-hee Na : ./python.exe -m pyperf timeit -s 'a = [1]*100' 'a.count(1)' Current Master: Mean +- std dev: 1.05 us +- 0.03 us My patch: Mean +- std dev: 423 ns +- 11 ns This is the side-effect of pr 17022. -- assignee: corona10 messages: 360488 nosy: corona10

[issue39422] datetime.datetime.strptime incorrectly interpretting format '%Y%m%d'

2020-01-22 Thread SilentGhost
SilentGhost added the comment: They do not "report same datetime output". Did you mean to use '20200106' as the second input string? Because, leading zeros being optional for certain format specifiers is a documented feature of strptime. -- nosy: +SilentGhost status: open -> pending

[issue39424] test_signal: test_pidfd_send_signal() uses deprecated assertRaisesRegexp() method

2020-01-22 Thread STINNER Victor
New submission from STINNER Victor : test_signal.test_pidfd_send_signal() should use assertRaisesRegex() rather than assertRaisesRegexp(): $ ./python -Werror -m test -v test_signal -m test_pidfd_send_signal (...) == ERROR:

[issue31405] shutil.which doesn't find files without PATHEXT extension on Windows

2020-01-22 Thread Anthony Sottile
Anthony Sottile added the comment: sure, it's the standard PATHEXT (basically a fresh vm from modern.ie) -- the only reason I noticed this is I was reading the source: https://github.com/python/cpython/blob/5bbac8cbdf140ebce446ea4e7db2b20a5d7b8402/Lib/shutil.py#L1367-L1373

[issue39421] Use-after-free in heappushpop() of heapq module

2020-01-22 Thread Dong-hee Na
Dong-hee Na added the comment: @pablogsal I agree with hotfix is needed and also for discussion. I left a comment for PR 18118. Please take a look :) -- ___ Python tracker

[issue39423] Process finished with exit code -1073741819 (0xC0000005) when trying to access data from a pickled file

2020-01-22 Thread mapf
mapf added the comment: I forgot to mention that sometimes, when I dump and load the data in the same session and try to access / use the data in question, I get the following Error: "Fatal Python error: GC object already tracked" -- ___ Python

[issue39422] datetime.datetime.strptime incorrectly interpretting format '%Y%m%d'

2020-01-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list

  1   2   >