[issue40507] FileNotFound error raised by os.exec* doesn't contain filename

2020-05-04 Thread Russell Davis
New submission from Russell Davis : To repro: >>> import os, sys >>> os.execv("nosuchfile", ["nosuchfile"]) Traceback (most recent call last): File "", line 1, in FileNotFoundError: [Errno 2] No such file or directory >>> print(sys.last_value.filename) None -- components: Library

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-04 Thread Stefan Behnel
Stefan Behnel added the comment: Christian, I understand your complaint, but I've actually never seen code in the wild that didn't provide a fallback for the import, usually something like what Serhiy spelled out and explained above: try: import xml.etree.cElementTree as ET

[issue40286] Add randbytes() method to random.Random

2020-05-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset f01d1be97d740ea0369379ca305646a26694236e by Raymond Hettinger in branch 'master': bpo-40286: Put methods in correct sections. Add security notice to use secrets for session tokens. (GH-19870)

Re: [ANN] Python Brain Teasers Book is Out

2020-05-04 Thread Abdur-Rahmaan Janhangeer
Greetings, Would be grateful if you could post it to python-authors also: https://mail.python.org/mailman/listinfo/python-authors Thanks! Kind Regards, Abdur-Rahmaan Janhangeer compileralchemy.com | github Mauritius On

[issue13097] [easy C issue] ctypes: segfault with large number of callback arguments

2020-05-04 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 5.0 -> 6.0 pull_requests: +19229 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19914 ___ Python tracker

[ANN] Python Brain Teasers Book is Out

2020-05-04 Thread Miki Tebeka
Hi All, I'm excited that my book "Python Brain Teasers: 30 brain teasers to tickle your mind and help become a better developer." is out. You can grab is from https://gum.co/iIQT (PDF & ePUB). Let me know how many teasers did you get right. If you're curious, a sample of the book, including

[issue40316] Add zero function to time, datetime, which acts as the use case of replace to limit resolution

2020-05-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I like the answer in the StackOverflow link better than this proposal. At any rate, I think Terry's suggestion is a good one. If you would like to move forward with this, please take it to python-ideas. That said, if another core-dev wants to

[issue40051] Dead link in help(lib2to3/idlelib/turtledemo/tkinter.sub/test_*/?)

2020-05-04 Thread wyz23x2
wyz23x2 added the comment: OK. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Consumer trait recognition

2020-05-04 Thread Jason Friedman
> > I constructed a lexicon for words that show how different words are linked > to consumer traits and motivations (e.g. Achievement and Power Motivation). > Now I have collected a large amount of online customer reviews and want to > match each review with the word definitions of the consumer

[issue40459] [easy] undefined names in platform.py

2020-05-04 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue40459] [easy] undefined names in platform.py

2020-05-04 Thread miss-islington
miss-islington added the comment: New changeset efc782d29e229924076ffb6645a72f26242fb3ef by Miss Islington (bot) in branch '3.8': bpo-40459: Fix NameError in platform.py (GH-19855) https://github.com/python/cpython/commit/efc782d29e229924076ffb6645a72f26242fb3ef --

[issue40459] [easy] undefined names in platform.py

2020-05-04 Thread miss-islington
miss-islington added the comment: New changeset 8ddf91543890e38c76aa0029482c6f5f5c444837 by Miss Islington (bot) in branch '3.7': bpo-40459: Fix NameError in platform.py (GH-19855) https://github.com/python/cpython/commit/8ddf91543890e38c76aa0029482c6f5f5c444837 --

Re: phyton hata

2020-05-04 Thread Michael Torrie
On 5/4/20 4:15 AM, HÜSEYİN KOÇ wrote: > Phyton 3.8.2 versiyonu bilgisayarıma indirdim fakat sorunlar ile > karşılaştınız diyerek hata veriyor > > > Windows 10 için Posta ile > gönderildi > Please ensure Windows is up to date using Windows

[issue40459] [easy] undefined names in platform.py

2020-05-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +19228 pull_request: https://github.com/python/cpython/pull/19913 ___ Python tracker ___

[issue40459] [easy] undefined names in platform.py

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 1e7e4519a8ddc2239101a0146d788c9161143a77 by Dennis Sweeney in branch 'master': bpo-40459: Fix NameError in platform.py (GH-19855) https://github.com/python/cpython/commit/1e7e4519a8ddc2239101a0146d788c9161143a77 -- nosy: +corona10

[issue40459] [easy] undefined names in platform.py

2020-05-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +19227 pull_request: https://github.com/python/cpython/pull/19912 ___ Python tracker

[issue40506] add support for os.Pathlike filenames in zipfile.ZipFile.writestr

2020-05-04 Thread Domenico Ragusa
New submission from Domenico Ragusa : ZipFile seems to support Pathlike objects pretty well, except in ZipFile.writestr. For example: >>> a = ZipFile(Path('test.zip'), 'w') # this works ok >>> a.write(Path('./foo.jpeg'), arcname=PurePath('/some/thing.jpeg')) # this >>> works as well >>>

[issue40504] Restore weakref support for lru_cache wrappers

2020-05-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: Yes. That is the desired behavior. Use Objects/setobject.c and Include/setobject.h as a model. -- ___ Python tracker ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 92a98ed97513c6e365ce8765550ea65d0ddc8cd7 by Dong-hee Na in branch 'master': bpo-1635741: Port syslog module to multiphase initialization (GH-19907) https://github.com/python/cpython/commit/92a98ed97513c6e365ce8765550ea65d0ddc8cd7 --

Re: Multiprocessing vs. concurrent.futures, Linux vs. Windows

2020-05-04 Thread John Ladasky
On Monday, May 4, 2020 at 4:09:53 PM UTC-7, Terry Reedy wrote: > On 5/4/2020 3:26 PM, John Ladasky wrote: > > Several years ago I built an application using multiprocessing. It only > > needed to work in Linux. I got it working fine. At the time, > > concurrent.futures did not exist. > > > >

Re: phyton hata

2020-05-04 Thread Souvik Dutta
ne hatası alıyorsun Souvik flutter dev On Tue, May 5, 2020, 1:28 AM HÜSEYİN KOÇ wrote: > Phyton 3.8.2 versiyonu bilgisayarıma indirdim fakat sorunlar ile > karşılaştınız diyerek hata veriyor > > > Windows 10 için Posta ile > gönderildi > > -- >

Re: Is there anything in the script which could cause it to not run its full course please?

2020-05-04 Thread ozstar1
On Tuesday, 5 May 2020 01:35:42 UTC+10, David Raymond wrote: > Not necessarily the cause of your problem, but if you're going to compare > dates it should be as objects, or as text as year-month-day. Here you're > comparing dates as text in day-month-year format. So January first comes >

[issue40464] functools.singledispatch doesn't verify annotation is on FIRST parameter

2020-05-04 Thread Filipe Laíns
Filipe Laíns added the comment: Right, forgot about that. We can get the first argument name from inspect.signature and then fetch it from the get_type_hints dictionary, I don't know a better way to do it. -- ___ Python tracker

[issue40454] DEBUG kw to asyncio.run overrides DEBUG mode set elsewhere

2020-05-04 Thread Yury Selivanov
Yury Selivanov added the comment: Good catch. The function should be fixed to: _marker = object() def run(coro, *, debug=_marker): if debug is not _marker: loop.set_debug(debug) -- ___ Python tracker

[issue40504] Restore weakref support for lru_cache wrappers

2020-05-04 Thread Dennis Sweeney
Dennis Sweeney added the comment: I can submit a PR. Just making sure I understand, is this essentially the desired behavior change? import weakref import functools if 0: from test.support import import_fresh_module functools = import_fresh_module('functools',

Re: Multiprocessing vs. concurrent.futures, Linux vs. Windows

2020-05-04 Thread Terry Reedy
On 5/4/2020 3:26 PM, John Ladasky wrote: Several years ago I built an application using multiprocessing. It only needed to work in Linux. I got it working fine. At the time, concurrent.futures did not exist. My current project is an application which includes a PyQt5 GUI, and a live video

[issue40505] getpath.c doesn't know about lib64

2020-05-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: No, I have not opened a bug report on OpenSUSE. Since the OS uses bi-arch throughout, using lib64 is the natural thing to use for libdir on the OS. I think the issue lies with getpath.c only, since it makes an assumption about the libdir config value,

Re: Is there anything in the script which could cause it to not run its full course please?

2020-05-04 Thread ozstar1
Many thanks for your help. It is really appreciated. I see both your points and maybe this is where my problems lays. If for example it starts (and it does) at 9.30am then the print is.. streaming It is supposed to wait for the 40 minutes, stop then print this.. Waiting for the next

[issue21596] asyncio.wait fails when futures list is empty

2020-05-04 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68 by Joel Rosdahl in branch 'master': bpo-40499: Mention that asyncio.wait() needs a non-empty aws set (GH-19900) https://github.com/python/cpython/commit/9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68

[issue33649] asyncio docs overhaul

2020-05-04 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68 by Joel Rosdahl in branch 'master': bpo-40499: Mention that asyncio.wait() needs a non-empty aws set (GH-19900) https://github.com/python/cpython/commit/9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68

[issue40499] asyncio.wait documentation on non-emptiness requirement lost in bpo-33649

2020-05-04 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40499] asyncio.wait documentation on non-emptiness requirement lost in bpo-33649

2020-05-04 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68 by Joel Rosdahl in branch 'master': bpo-40499: Mention that asyncio.wait() needs a non-empty aws set (GH-19900) https://github.com/python/cpython/commit/9d74658f0a6e8a9b8d6dcf199dda886f35c6ad68

[issue40505] getpath.c doesn't know about lib64

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: Hum, this issue seems to be specific to Fedora and SuSE. Did you open an issue on OpenSuSE bug tracker? > Looking at the master branch, this may already have been fixed for 3.9, since > a PLATLIBDIR variable is used instead. The patch would have to be

[issue40505] getpath.c doesn't know about lib64

2020-05-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Just to clarify: the CONFIG_SITE script on OpenSUSE causes configure to use lib64, not the Python configure script itself. -- ___ Python tracker

[issue40505] getpath.c doesn't know about lib64

2020-05-04 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg : On platforms which configure identifies as bi-arch platform, libdir is set to $[exec_prefix}/lib64, which results in the C extensions to get installed in e.g. /usr/local/lib64/python3.8/lib-dynload/. However, the getpath.c routines use a fixed

[issue39946] Remove _PyThreadState_GetFrame

2020-05-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks! We use this function internally in some VM traceback grabbing code but the best solution looks to just be for us to adopt the patch to 3.9 on our interpreter until we're running on 3.9. -- nosy: +gregory.p.smith

[issue39946] Remove _PyThreadState_GetFrame

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: > We use this function internally in some VM traceback grabbing code Would you mind to elaborate your use case? -- ___ Python tracker ___

Re: naN values

2020-05-04 Thread Peter Otten
J Conrado wrote: > I have a 2d array and I would how can I replace NaN values for example > with - value or other value. >>> a array([[ nan, 1., 2., 3.], [ 4., 5., 6., 7.], [ 8., 9., 10., nan]]) >>> a[numpy.isnan(a)] = 42 >>> a array([[ 42., 1., 2.,

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-04 Thread Christian Heimes
Christian Heimes added the comment: For the record, I'm quite unhappy that xml.etree.cElementTree was removed without going through a proper active deprecation cycle with plenty of head start. The removal came as a surprise to me -- and I'm a core dev, author of PEP 594 and owner of the

[issue40334] PEP 617: new PEG-based parser

2020-05-04 Thread Shantanu
Change by Shantanu : -- nosy: +hauntsaninja nosy_count: 7.0 -> 8.0 pull_requests: +19226 pull_request: https://github.com/python/cpython/pull/19911 ___ Python tracker ___

[issue40500] test_multiprocessing_fork leaks processes on PPC64LE RHEL8 LTO + PGO 3.x

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: Another example "PPC64LE RHEL8 LTO 3.x": https://buildbot.python.org/all/#/builders/356/builds/347 0:02:49 load avg: 9.54 [415/423/1] test_multiprocessing_spawn failed (env changed) (2 min 15 sec) -- running: test_concurrent_futures (58.1 sec),

[issue40504] Restore weakref support for lru_cache wrappers

2020-05-04 Thread Raymond Hettinger
New submission from Raymond Hettinger : The pure python version of lru_cache() wrappers supported weak references. It's not essential, but I have used it a couple of times. In the spirit of PEP 399, the C version should add back the weakref support (and a test). -- components:

[issue39470] Indicate that os.makedirs is equivalent to Path.mkdir

2020-05-04 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

2020-05-04 Thread Petter S
Petter S added the comment: The solution is incomplete because it fixes just this single security issue, not the inherent fragility of this file. If, in the future someone happens to add another method starting with open to this class, we are at risk of having the same problem again. As

naN values

2020-05-04 Thread J Conrado
Hi, I have a 2d array and I would  how can I replace NaN values for example with - value or other value. Thank, Conrado -- https://mail.python.org/mailman/listinfo/python-list

phyton hata

2020-05-04 Thread HÜSEYİN KOÇ
Phyton 3.8.2 versiyonu bilgisayarıma indirdim fakat sorunlar ile karşılaştınız diyerek hata veriyor Windows 10 için Posta ile gönderildi -- https://mail.python.org/mailman/listinfo/python-list

[issue40464] functools.singledispatch doesn't verify annotation is on FIRST parameter

2020-05-04 Thread Dutcho
Dutcho added the comment: I'm afraid my "even return" was interpreted in https://github.com/python/cpython/pull/19871 as "only return", while as stated "any annotation" suffices. To rephrase: If the *first* parameter of the registered function isn't annotated, any non-first annotation

[issue39470] Indicate that os.makedirs is equivalent to Path.mkdir

2020-05-04 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset f25fb6ebfec894c01bc927c9aae7924ffc826d11 by Joannah Nanjekye in branch 'master': bpo-39470: Indicate that ``os.makedirs`` is equivalent to ``Path.mkdir`` (GH-18216)

Multiprocessing vs. concurrent.futures, Linux vs. Windows

2020-05-04 Thread John Ladasky
Several years ago I built an application using multiprocessing. It only needed to work in Linux. I got it working fine. At the time, concurrent.futures did not exist. My current project is an application which includes a PyQt5 GUI, and a live video feed with some real-time image processing.

[issue40492] -m cProfile -o f.pstats with a script that does chdir() writes to the changed directory and not `.`

2020-05-04 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +19225 pull_request: https://github.com/python/cpython/pull/19910 ___ Python tracker ___

[issue39159] Ideas for making ast.literal_eval() usable

2020-05-04 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-05-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 18f1c60a1625d341a905c7e07367c32c08f222df by Miro Hrončok in branch 'master': bpo-40360: Add a What's New entry for lib2to3 pending deprecation (GH-19898) https://github.com/python/cpython/commit/18f1c60a1625d341a905c7e07367c32c08f222df

[issue40503] PEP 615: Add zoneinfo module

2020-05-04 Thread Paul Ganssle
Change by Paul Ganssle : -- keywords: +patch pull_requests: +19224 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19909 ___ Python tracker

[issue40503] PEP 615: Add zoneinfo module

2020-05-04 Thread Paul Ganssle
New submission from Paul Ganssle : This is an issue to track the implementation of PEP 615: https://www.python.org/dev/peps/pep-0615/ It should mostly involve migrating from the reference implementation: https://github.com/pganssle/zoneinfo/ -- assignee: p-ganssle components:

[issue40480] "fnmatch" exponential execution time

2020-05-04 Thread Tim Peters
Change by Tim Peters : -- keywords: +patch pull_requests: +19223 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19908 ___ Python tracker

[issue40480] "fnmatch" exponential execution time

2020-05-04 Thread Tim Peters
Tim Peters added the comment: Changed version to 3.9, because anything done would change the regexp generated, and fnmatch.translate()` makes that regexp visible. -- stage: -> needs patch versions: +Python 3.9 -Python 3.8 ___ Python tracker

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-05-04 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +19222 pull_request: https://github.com/python/cpython/pull/19907 ___ Python tracker ___

[issue40502] PyNode_New() does not initialize n->n_col_offset

2020-05-04 Thread Tomasz Pytel
New submission from Tomasz Pytel : I found this by accident by compiling empty strings since I use column information from the AST tree, if not initialized I get a starting column of -842150451. The easy fix is to initialize n->n_col_offset = 0; in Parser/node.c:PyNode_New(). --

[issue40275] test.support has way too many imports

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 975408c065b645e7d717546b0d744415abb45cd1 by Hai Shi in branch 'master': bpo-40275: test.support imports lazily locale import (GH-19761) https://github.com/python/cpython/commit/975408c065b645e7d717546b0d744415abb45cd1 --

[issue40489] INCREF/DECREFs around the rich comparison needs tests

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 785f5e6d674306052bf865677d885c30561985ae by Dong-hee Na in branch 'master': bpo-40489: Add test case for dict contain use after free (GH-19906) https://github.com/python/cpython/commit/785f5e6d674306052bf865677d885c30561985ae --

[issue39232] asyncio crashes when tearing down the proactor event loop

2020-05-04 Thread Chris Meyer
Change by Chris Meyer : -- nosy: +cmeyer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: > Do you think either need a deprecation cycle? I'd say not for the Windows > change, but I'm not sure whether people could be relying on libuuid showing > up after build. If the behavior doesn't change, no deprecation is needed. For example, if libuuid

[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-04 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-04 Thread Steve Dower
Steve Dower added the comment: Do you think either need a deprecation cycle? I'd say not for the Windows change, but I'm not sure whether people could be relying on libuuid showing up after build. -- ___ Python tracker

[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-04 Thread Brett Cannon
Brett Cannon added the comment: This can't be backported cleanly. If you're up for making PRs for 3.8 and 3.7, Robert, we can look at applying them. -- ___ Python tracker

[issue40275] test.support has way too many imports

2020-05-04 Thread hai shi
Change by hai shi : -- pull_requests: +19220 pull_request: https://github.com/python/cpython/pull/19905 ___ Python tracker ___ ___

[issue40489] INCREF/DECREFs around the rich comparison needs tests

2020-05-04 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +19221 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19906 ___ Python tracker ___

[issue40417] PyImport_ReloadModule emits deprecation warning

2020-05-04 Thread Brett Cannon
Change by Brett Cannon : -- versions: -Python 3.5, Python 3.6, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: Problem with doctest

2020-05-04 Thread Dieter Maurer
ast wrote at 2020-5-4 15:20 +0200: >doctest of the sample function funct() doesn't works >because flag used by funct() is the one defined in >first line "flag = True" and not the one in the >doctest code ">>> flag = False". > >Any work around known ? > > >flag = True # <- funct()

[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: uuid.py has a long history. The recent history is the addition of the _uuid module which exposes libuuid function properly. IMHO it's a better approach than ctypes. On Windows, it seems like ctypes remains used to get access to Windows function

[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-04 Thread Steve Dower
Steve Dower added the comment: There are three scenarios where ctypes is used in this module: * get libuuid.uuid_generate_time_safe and uuid_generate_time (if _uuid was not compiled) * get rpcrt4.UuidCreateSequential (on Windows, depending on how the libuuid lookup failed) *

[issue40350] modulefinder chokes on numpy - dereferencing None in spec.loader

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

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-05-04 Thread hongweipeng
Change by hongweipeng : -- nosy: +hongweipeng nosy_count: 9.0 -> 10.0 pull_requests: +19219 pull_request: https://github.com/python/cpython/pull/19904 ___ Python tracker ___

[issue40501] Deprecate and remove ctypes usage in uuid

2020-05-04 Thread Steve Dower
New submission from Steve Dower : The uuid module uses ctypes to try and load likely system libraries to provide some functionality of the uuid module. This is a security risk (depending on your sensitivity to DLL hijacking), but it also seems to be not very necessary? It would be nice to

[issue9216] FIPS support for hashlib

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: > _hashlib.get_fips_mode() is not compatible with new FIPS design in OpenSSL > 3.0.0: I suggest to modify the code so the private function becomes unavailable in _hashlib on OpenSSL 3.0 and newer. What do you think? --

[issue13097] [easy C issue] ctypes: segfault with large number of callback arguments

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: I suggest to raise an exception if it's called with more than 1024 arguments. -- keywords: +easy (C), newcomer friendly title: ctypes: segfault with large number of callback arguments -> [easy C issue] ctypes: segfault with large number of callback

[issue35907] [security][CVE-2019-9948] Unnecessary URL scheme exists to allow local_file:// reading file in urllib

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: > We should whitelist the protocols. The current solution with `getattr` is > really fragile. For example, this crashes with a `TypeError`: > `URLopener().open("unknown_proxy://test")` Would you mind to elaborate why do you consider that the solution is

[issue21596] asyncio.wait fails when futures list is empty

2020-05-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40334] PEP 617: new PEG-based parser

2020-05-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40246] Different error messages for same error - invalid string prefixes

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: Lysandros: > The revert is in. Now the question is if we want to take additional action to > address the original issue of this. If someone cares of that, I suggest to open an issue in pylint, pyflakes and similar tools to emit a warning in linters.

[issue38323] asyncio: MultiLoopWatcher has a race condition (test_asyncio: test_close_kill_running() hangs on AMD64 RHEL7 Refleaks 3.x)

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: Issue open since 2019-09-30 and tests still hang randomly. What's the progress on this issue? -- ___ Python tracker ___

[issue40458] test_bad_getattr crashes on APPX test

2020-05-04 Thread Steve Dower
Steve Dower added the comment: Yeah, I already got that part. If you check the PR, I added some better diagnostics to faulthandler for this case, but I don't see where I can add it for other platforms? -- ___ Python tracker

RE: Is there anything in the script which could cause it to not run its full course please?

2020-05-04 Thread David Raymond
Not necessarily the cause of your problem, but if you're going to compare dates it should be as objects, or as text as year-month-day. Here you're comparing dates as text in day-month-year format. So January first comes before May 4th 2020 "01-01-" < "04-05-2020" ... 04-05-2020

Re: Problem with doctest

2020-05-04 Thread Peter Otten
Unknown wrote: > Hello > > doctest of the sample function funct() doesn't works > because flag used by funct() is the one defined in > first line "flag = True" and not the one in the > doctest code ">>> flag = False". > > Any work around known ? You can import the module where funct() is

[issue32030] PEP 432: Rewrite Py_Main()

2020-05-04 Thread Gregory Szorc
Change by Gregory Szorc : -- nosy: +indygreg nosy_count: 7.0 -> 8.0 pull_requests: +19218 pull_request: https://github.com/python/cpython/pull/19746 ___ Python tracker ___

[issue40135] multiprocessing: test_shared_memory_across_processes() cannot be run twice in parallel

2020-05-04 Thread miss-islington
miss-islington added the comment: New changeset 70fe95cdc9ac1b00d4f86b7525dca80caf7003e1 by Miss Islington (bot) in branch '3.8': bpo-40135: Fix multiprocessing test_shared_memory_across_processes() (GH-19892) https://github.com/python/cpython/commit/70fe95cdc9ac1b00d4f86b7525dca80caf7003e1

[issue40494] collections.abc.Callable and type variables

2020-05-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Of course. There is more than one way to fix it: * Make GenericAlias substituting type variables in list. It is easier and it will fix this particular case, but there will be subtle differences in __args__. * Add a GenericAlias subclass with overridden

[issue40135] multiprocessing: test_shared_memory_across_processes() cannot be run twice in parallel

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix Hai Shi! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40135] multiprocessing: test_shared_memory_across_processes() cannot be run twice in parallel

2020-05-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +19217 pull_request: https://github.com/python/cpython/pull/19903 ___ Python tracker

[issue40494] collections.abc.Callable and type variables

2020-05-04 Thread Guido van Rossum
Guido van Rossum added the comment: Yeah, the fix will require a variant of types.GenericAlias that substitute's type variables in lists. -- ___ Python tracker ___

[issue40135] multiprocessing: test_shared_memory_across_processes() cannot be run twice in parallel

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset caa3ef284a2e5e5b9bdd6a9e619804122c842d80 by Hai Shi in branch 'master': bpo-40135: Fix multiprocessing test_shared_memory_across_processes() (GH-19892) https://github.com/python/cpython/commit/caa3ef284a2e5e5b9bdd6a9e619804122c842d80

[issue40426] Unable to use lowercase hexadecimal digits for percent encoding

2020-05-04 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- nosy: -lys.nikolaou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40455] GCC 10 compiler warnings

2020-05-04 Thread Andy Lester
Andy Lester added the comment: For anyone following along, note that the PR above is different than the original suggestion. The PR correctly sets x_size, not leaving it zero. -- ___ Python tracker

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-04 Thread STINNER Victor
STINNER Victor added the comment: tl; dr I wrote PR 19902 to remove the "XXX" comment. -- Commit 21893fbb74e8fde2931fbed9b511e2a41362b1ab adds the following code: /* XXX It seems like we shouldn't have to check not equal to Py_None here because exc_type should only ever be a

[issue29587] Generator/coroutine 'throw' discards exc_info state, which is bad

2020-05-04 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +19216 pull_request: https://github.com/python/cpython/pull/19902 ___ Python tracker ___

[issue40489] INCREF/DECREFs around the rich comparison needs tests

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: > Would you like to add a test for this case? Oh, I mean, is it good to add a test for this case? -- ___ Python tracker ___

[issue2380] Raise a Py3K warning for catching nested tuples with non-BaseException exceptions

2020-05-04 Thread Zachary Ware
Zachary Ware added the comment: With 2.7 out of support, closing. -- nosy: +zach.ware resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue40489] INCREF/DECREFs around the rich comparison needs tests

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: Would you like to add a test for this case? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue40489] INCREF/DECREFs around the rich comparison needs tests

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: I can crash python interpreter with few lines of code when if we remove those codes. class S(str): def __eq__(self, other): d.clear() return NotImplemented def __hash__(self): return hash('test') d = {S(): 'value'} 'test' in

[issue40455] GCC 10 compiler warnings

2020-05-04 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset b88cd585d36d6285a5aeb0b6fdb70c134062181e by Dong-hee Na in branch 'master': bpo-40455: Remove gcc10 warning about x_digits (#19852) https://github.com/python/cpython/commit/b88cd585d36d6285a5aeb0b6fdb70c134062181e --

  1   2   >