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

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

[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

[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

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

[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

[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

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

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

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

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

[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 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 Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[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

[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

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

[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

[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

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

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

[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 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 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: +17526 pull_request: https://github.com/python/cpython/pull/18140 ___ 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

[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

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

[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

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

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

[issue39418] str.strip() should have a means of adding to the default behaviour

2020-01-22 Thread Natalie Amery
New submission from Natalie Amery : If I want to remove the default set of 'whitespace' characters plus something else from a string there's currently no way to cleanly specify that. In addition there's no way to programatically acquire what characters are considered whitespace so you can't

[issue39417] Link to "Python Packaging User Guide: Creating and using virtual environments" is broken

2020-01-22 Thread Ammar Askar
Ammar Askar added the comment: Oh and I think the new link should point here: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment -- ___ Python tracker

[issue39375] Document os.environ[x] = y and os.putenv() as thread unsafe

2020-01-22 Thread Eryk Sun
Eryk Sun added the comment: > no need to remove that message. I was discussing the wrong API. It's not directly relevant that Windows API functions that access the process environment are protected by the PEB lock. Python primarily uses [_w]environ, a copy of the process environment

[issue39418] str.strip() should have a means of adding to the default behaviour

2020-01-22 Thread Natalie Amery
Natalie Amery added the comment: Oops, sorry, that should say 'strip' througout not 'split'. My bad. -- ___ Python tracker ___

[issue39411] pyclbr rewrite using AST

2020-01-22 Thread Batuhan
Batuhan added the comment: Thanks for the suggestions Terry, I didn't want to change any behavior or make any feature addition (except is_async as stated in issue description) in this PR. > The change is needed 2 other places. Could be part of this PR or another one. I have a friend who

[issue38860] GenericPyCData_new does not invoke new or init

2020-01-22 Thread Justin Capella
Justin Capella added the comment: Becca were you still interested in this issue? Anyone agree the unit test seems to have a bug if that is intended behavior? Is there a better forum for discussion about design/behavior, maybe the more generic issue of GenericPyCData_new using tp_alloc

[issue39397] Mac : fail to launch Python 3.8

2020-01-22 Thread Sebastien Foo
Sebastien Foo added the comment: Thanks a lot for you help, my issue is solved. My ~/.zshrc was having a LANG env var set to LANG=en_US I just commented out this line and everything works fine. I don't know why this was set like that. Thanks again for your time you can close this

[issue39417] Link to "Python Packaging User Guide: Creating and using virtual environments" is broken

2020-01-22 Thread Ammar Askar
Ammar Askar added the comment: Hi Angel, thank you for the report! The file that corresponds to that documentation is here https://github.com/python/cpython/blob/master/Doc/library/venv.rst and we'd be happy to have you make a PR for it :) -- nosy: +ammar2

[issue39417] Link to "Python Packaging User Guide: Creating and using virtual environments" is broken

2020-01-22 Thread Angel Cervera Claudio
New submission from Angel Cervera Claudio : The link "See also: Python Packaging User Guide: Creating and using virtual environments" Is broken. The problem is in line 30 of https://github.com/python/cpython/blob/3.8/Doc/library/venv.rst I don't know the right link, so I can not fix it. I

[issue39377] json.loads encoding parameter deprecation removal in Python 3.9

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

[issue39377] json.loads encoding parameter deprecation removal in Python 3.9

2020-01-22 Thread Inada Naoki
Inada Naoki added the comment: New changeset 5bbac8cbdf140ebce446ea4e7db2b20a5d7b8402 by Inada Naoki in branch 'master': bpo-39377: json: Update doc about the encoding option. (GH-18076) https://github.com/python/cpython/commit/5bbac8cbdf140ebce446ea4e7db2b20a5d7b8402 --

[issue39418] str.strip() should have a means of adding to the default behaviour

2020-01-22 Thread Steven D'Aprano
Steven D'Aprano added the comment: This is a new feature, not a bug, so it will apply only to 3.9. All older versions are in feature freeze. > there's no way to programatically acquire what characters are considered > whitespace https://docs.python.org/3/library/stdtypes.html#str.isspace

[issue39416] Document default numeric string formats

2020-01-22 Thread Karl O. Pinc
Karl O. Pinc added the comment: On Wed, 22 Jan 2020 06:09:41 + "Eric V. Smith" wrote: > Eric V. Smith added the comment: > > Is the lack of this documentation causing some confusion somewhere? > This isn't rhetorical, I'm genuinely curious what problem you're > trying to solve. I'd

[issue39418] str.strip() should have a means of adding to the default behaviour

2020-01-22 Thread Steven D'Aprano
Steven D'Aprano added the comment: Attached is a script I used to test: * that str.isspace() currently matches the definition given in the docs; * that string.whitespace contains all whitespace characters, and nothing but whitespace; * that str.strip() strips off all whitespace characters,

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

2020-01-22 Thread Erik Aronesty
Erik Aronesty added the comment: > The Scripts/bin thing is not specific to venv - for whatever reason, the > original Windows implementation chose to use "Scripts" rather than "bin" That's irrelevant to the PR, which solves the problem in a compatible way. There's no compatibility

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

2020-01-22 Thread Dk0n9
New submission from Dk0n9 : The variable `heap` in heappushpop does not add a reference count ```c cmp = PyObject_RichCompareBool(PyList_GET_ITEM(heap, 0), item, Py_LT); if (cmp < 0) return NULL; if (cmp == 0) { Py_INCREF(item); return item; } ``` POC:

[issue39413] Implement os.unsetenv() on Windows

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

[issue39413] Implement os.unsetenv() on Windows

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset f84f65be5602e561fef04b66bb487fbc4e560db5 by Victor Stinner in branch '3.8': bpo-39413: os.unsetenv() is not available on Windows (GH-18108) https://github.com/python/cpython/commit/f84f65be5602e561fef04b66bb487fbc4e560db5 --

[issue39413] Implement os.unsetenv() on Windows

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

[issue39419] Core dump when trying to use workaround for custom warning category (Fatal Python error: init_sys_streams: can't initialize sys standard streams)

2020-01-22 Thread Gerrit Holl
New submission from Gerrit Holl : Pythons commandline warning filter cannot currently handle custom warning categories. See https://bugs.python.org/issue22543 I tried a workaround as suggested on Stack Overflow to filter on a warning category

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

2020-01-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue39406 is a new feature. In any case we should fix potential crash in older Python versions. -- nosy: +serhiy.storchaka ___ Python tracker

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

2020-01-22 Thread STINNER Victor
New submission from STINNER Victor : os.environ is created by convertenviron() of posixmodule.c. The Windows implementation calls _wgetenv(L"") to initialize _wenviron, and then parses the _wenviron string. The _wenviron string is parsed by search for the first "=" character to split

[issue39418] str.strip() should have a means of adding to the default behaviour

2020-01-22 Thread Steven D'Aprano
Steven D'Aprano added the comment: There's a discrepancy between the string.whitespace constant and actual whitespace as tested by the str.isspace() method. I've found five ASCII whitespace characters (as reported by isspace) which aren't in the string.whitespace constant, and 18 non-ASCII

[issue39418] str.strip() should have a means of adding to the default behaviour

2020-01-22 Thread Natalie Amery
Natalie Amery added the comment: https://bugs.python.org/issue25433 has a summary of the issue about what actually constitutes whitespace from the perspective of improving the documentation. In terms of what strip does it turns out that string.whitespace is a red herring. A list of

[issue39397] Mac : fail to launch Python 3.8

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

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

2020-01-22 Thread Dk0n9
Change by Dk0n9 : -- components: Extension Modules nosy: dk0n9 priority: normal severity: normal status: open title: Use-after-free in heappushpop() of heapq module type: crash versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python

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

2020-01-22 Thread Alex Rebert
Change by Alex Rebert : -- pull_requests: +17504 pull_request: https://github.com/python/cpython/pull/18117 ___ Python tracker ___

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

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

[issue39413] Implement os.unsetenv() on Windows

2020-01-22 Thread miss-islington
miss-islington added the comment: New changeset 570724667d37fcb160cdef2b34190dc36e28155c by Miss Islington (bot) in branch '3.7': bpo-39413: os.unsetenv() is not available on Windows (GH-18108) https://github.com/python/cpython/commit/570724667d37fcb160cdef2b34190dc36e28155c --

[issue39082] AsyncMock is unable to correctly patch static or class methods

2020-01-22 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +17503 pull_request: https://github.com/python/cpython/pull/18116 ___ Python tracker ___

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

2020-01-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- type: -> crash versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

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

2020-01-22 Thread STINNER Victor
STINNER Victor added the comment: > Issue39406 is a new feature. In any case we should fix potential crash in > older Python versions. Python 3.8 and older are not affected by this issue since they never destroy the posix_putenv_garbage dictionary: memory is never released. --

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

2020-01-22 Thread STINNER Victor
Change by STINNER Victor : -- versions: -Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39408] Add support for SQLCipher

2020-01-22 Thread Manjusaka
Manjusaka added the comment: To be serious, I don't think using SQLCipher is a good idea for CPython Cause, SQLCipher is always released by the source code, not the binary. That means we should compile and manage the binary on different platforms, sush as ffi on windows, Openssl on Windows.

[issue39082] AsyncMock is unable to correctly patch static or class methods

2020-01-22 Thread Matt Kokotovich
Matt Kokotovich added the comment: I'd love to see this issue resolved, as it is keeping me from being able to switch to 3.8. I have a PR with Karthikeyan's suggestion, as I agree it makes more sense and could apply to more cases: https://github.com/python/cpython/pull/18116 --

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

2020-01-22 Thread Dong-hee Na
Dong-hee Na added the comment: Reproducible. It looks similar to bpo-38588. We will apply the same solution as we did at bpo-38588? or do we plan to apply the solution which is suggested on msg359023? -- nosy: +corona10, inada.naoki, pablogsal ___

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

2020-01-22 Thread Dong-hee Na
Change by Dong-hee Na : -- stage: -> needs patch versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[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

[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 Mark Dickinson
Change by Mark Dickinson : -- assignee: docs@python -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list

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

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

2020-01-22 Thread Dong-hee Na
Dong-hee Na added the comment: > To be honest, given how many ways this bug happens I think its time to > consider msg359023. +1 to me also -- ___ Python tracker ___

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

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

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

2020-01-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: AS this discussion will take a while and likely will have deeper consequences, in the meantime I created PR18118 to specifically fix this. -- stage: patch review -> needs patch ___ Python tracker

[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

[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

[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

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

[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

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

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

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

[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

[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

[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

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

[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

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

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

2020-01-22 Thread Cleland Loszewski
New submission from Cleland Loszewski : ```python from datetime import datetime print(datetime.strptime('2020016', '%Y%m%d')) print(datetime.strptime('20200116', '%Y%m%d')) ``` The former string has a format that does not match '%Y%m%d', but the latter does. Both report the same datatime

[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

[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

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

2020-01-22 Thread mapf
New submission from mapf : I have a program where I create some relatively nested data and within the same session, I have no issues accessing the data. I then use picke.dump() with pickle.HIGHEST_PROTOCOL to save the data so I can access it in a later session. These files are usually over

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

2020-01-22 Thread Manjusaka
Manjusaka added the comment: Hello Anthony would you mind to execute this command on your PC? python -c "import os; print(os.environ.get("PATHEXT", "").split(os.pathsep))" and show the result about this code? -- nosy: +Manjusaka ___ Python

[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

  1   2   >