[issue33065] IDLE debugger: failure stepping through module loading

2020-04-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe I found the bug. For IDLE's original single process mode, still available with the -n startup option, debugger.py contains the entire debugger. The values displayed for global and local names are obtained with reprlib.Repr.repr. That in turn cal

[issue40342] Programming FAQ about "How do I apply a method to a sequence of objects?" should include the option of an explicit for-loop

2020-04-21 Thread Mark Dickinson
Mark Dickinson added the comment: However, the list comprehension pattern is not as bad as lines like this one [#1]: map(lambda plugin: self.start_plugin(plugin), self._plugins) ... which of course stopped working as soon as we transitioned to Python 3. :-( [#1] https://github.com/ent

[issue40342] Programming FAQ about "How do I apply a method to a sequence of objects?" should include the option of an explicit for-loop

2020-04-21 Thread Mark Dickinson
Mark Dickinson added the comment: This is an antipattern I've seen on multiple occasions in real code. A common offender is: [worker.join() for worker in workers] Similarly, things like: [plugin.start() for plugin in plugins] I do think it would be worth updating the FAQ text. ---

[issue38946] IDLE on macOS 10.15 Catalina does not open double-clicked files if app already launched

2020-04-21 Thread AndrewGYork
AndrewGYork added the comment: We have a 10.15.3 Mac with python 3.8.2, IDLE version 3.8.2, and we see similar behavior. Summary: The *second* 'bad' .py file you double-click won't open in IDLE. This seems unrelated to permissions, but a 'bad' file (saved by IDLE) can be converted to a 'goo

[issue32966] Python 3.7.2 - 0x80070643 - Fatal Error during installation

2020-04-21 Thread Jacob Melendrez
Jacob Melendrez added the comment: I am trying to uninstall python 3.7.2 because I think it is preventing me from correctly using python 3.8.2. When I go to my program list on windows 10 and try to uninstall it, it gets approximately 10% in and then gives me the message that No python 3.7 in

[issue40222] "Zero cost" exception handling

2020-04-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is an exciting prospect. Am looking forward to it :-) -- nosy: +rhettinger ___ Python tracker ___ __

[issue40358] pathlib's relative_to should behave like os.path.relpath

2020-04-21 Thread Bowie Chen
Change by Bowie Chen : -- nosy: +bowiechen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

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

2020-04-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +18969 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19645 ___ Python tracker

[issue40222] "Zero cost" exception handling

2020-04-21 Thread Shantanu
Change by Shantanu : -- nosy: +hauntsaninja ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue40346] Redesign random.Random class inheritance

2020-04-21 Thread Tim Peters
Tim Peters added the comment: This wasn't written with subclassing in mind to begin with. A class was just an obvious way to allow advanced users to construct instances with their own states (e.g., so they could build pseudo-independent generators for parallel programming). When SystemRand

[issue40314] python code order of magnitude faster than equivalent CPython code for simple import statement

2020-04-21 Thread deekay
deekay added the comment: The times are correct. It's very noticeable even without using a stopwatch. The C version actually takes 23 seconds to execute. -- ___ Python tracker __

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

2020-04-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- components: +2to3 (2.x to 3.x conversion tool) stage: -> needs patch ___ Python tracker ___ ___ Pyt

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

2020-04-21 Thread Gregory P. Smith
New submission from Gregory P. Smith : Based on the PEP 617 acceptance thread on python-dev, lib2to3 is eventually going to run into trouble parsing modern syntax a few releases from now. It would be better off maintained outside of the standard library. It gets used by a lot of things and i

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread Ned Deily
Ned Deily added the comment: New changeset 7ad3adda9bff8a9055eaf0b66489e8204f1e7cc6 by Miss Islington (bot) in branch '3.7': bpo-40164: Update macOS installer builds to use OpenSSL 1.1.1g. (GH-19642) (GH-19644) https://github.com/python/cpython/commit/7ad3adda9bff8a9055eaf0b66489e8204f1e7cc6

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread miss-islington
miss-islington added the comment: New changeset 9e51aab37e9af6fa0fe406fd56184a0aded28e11 by Miss Islington (bot) in branch '3.8': bpo-40164: Update macOS installer builds to use OpenSSL 1.1.1g. (GH-19642) https://github.com/python/cpython/commit/9e51aab37e9af6fa0fe406fd56184a0aded28e11

[issue40358] pathlib's relative_to should behave like os.path.relpath

2020-04-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread Ned Deily
Ned Deily added the comment: New changeset 783a673f23c5e9ffafe12fe172e119dc0fa2abda by Ned Deily in branch 'master': bpo-40164: Update macOS installer builds to use OpenSSL 1.1.1g. (GH-19642) https://github.com/python/cpython/commit/783a673f23c5e9ffafe12fe172e119dc0fa2abda -- _

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

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

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +18968 pull_request: https://github.com/python/cpython/pull/19644 ___ Python tracker ___ __

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +18966 pull_request: https://github.com/python/cpython/pull/19642 ___ Python tracker ___ ___

[issue40260] modulefinder traceback regression starting on Windows

2020-04-21 Thread Anthony Sottile
Anthony Sottile added the comment: actually I said that backwards in the previous message -- it was a text file and now it's a binary file -- ___ Python tracker ___ _

[issue40260] modulefinder traceback regression starting on Windows

2020-04-21 Thread Anthony Sottile
Change by Anthony Sottile : -- pull_requests: +18965 pull_request: https://github.com/python/cpython/pull/19641 ___ Python tracker ___ _

[issue40260] modulefinder traceback regression starting on Windows

2020-04-21 Thread Anthony Sottile
Anthony Sottile added the comment: The failure above is `fp` is now a text file but before it was a binary file. this causes `fp.read()` + `b'\n'` to fail I can send a patch -- I don't think the `b'\n'` is necessary any more (as far as I can tell it used to be there for an old version of py

[issue40260] modulefinder traceback regression starting on Windows

2020-04-21 Thread Anthony Sottile
Anthony Sottile added the comment: This is still failing, but now in a different way: Traceback (most recent call last): File "../debian/pymindeps.py", line 185, in main(sys.argv[1:]) File "../debian/pymindeps.py", line 178, in main mf.run_script(arg) File "/tmp/code/Lib/module

[issue40359] email.parse part.get_filename() fails to unwrap long attachment file names

2020-04-21 Thread Matthew Davis
Matthew Davis added the comment: 36041 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue40359] email.parse part.get_filename() fails to unwrap long attachment file names

2020-04-21 Thread Matthew Davis
Matthew Davis added the comment: Ah woops, I mistyped the relevant ticket. It's issue 36401 https://bugs.python.org/issue36041 -- ___ Python tracker ___

[issue39939] PEP 616: Add str methods to remove prefix or suffix

2020-04-21 Thread Dennis Sweeney
Dennis Sweeney added the comment: Oops -- I now see the message on Python-Dev. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue40359] email.parse part.get_filename() fails to unwrap long attachment file names

2020-04-21 Thread Matthew Davis
New submission from Matthew Davis : # Summary When parsing emails with long attachment file names, part.get_filename() often returns \n or \r\n. It should strip those characters out. # Steps to reproduce I have attached a minimal working example. The relevant part of the raw email is: --_0

[issue40346] Redesign random.Random class inheritance

2020-04-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: -1 I am opposed to this redesign. There is no problem being solved that warrants changing a long standing public API. It is irresponsible to just guess at whether anyone is using the API. To add randbytes() could have just been a simple two line addi

[issue40354] problem when using yield

2020-04-21 Thread xie
xie added the comment: Okay,I agree with you.I did not get the priority. -- stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue39939] PEP 616: Add str methods to remove prefix or suffix

2020-04-21 Thread Dennis Sweeney
Dennis Sweeney added the comment: I'm personally -0 for underscores -- they might slightly improve readability of the function name in isolation but may also add confusion about which methods have underscores. Only one out of the 45 non-dunder str methods has an underscore right now: >

[issue33065] IDLE debugger: failure stepping through module loading

2020-04-21 Thread Timothy Geiser
Timothy Geiser added the comment: It looks like the IDLE debugger seems to call repr on objects to present in the Locals list, even before they've been properly initialized. If __repr__ needs to refer to variables that don't exist until __init__ is done (and I don't think it's unreasonable f

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

2020-04-21 Thread Furkan Onder
Furkan Onder added the comment: Hi, Can you share the program codes to better understand the problem? -- nosy: +furkanonder ___ Python tracker ___

[issue40358] pathlib's relative_to should behave like os.path.relpath

2020-04-21 Thread Domenico Ragusa
New submission from Domenico Ragusa : Can we improve pathlib.relative_to(other) so that it handles the case of a path not being a direct child of other, like os.path.relpath? For example: Path('/some/thing').relative_to('/foo') -> Path('../some/thing') At the moment it just raises an exceptio

[issue38770] Pickle handle self references in classes

2020-04-21 Thread Furkan Onder
Furkan Onder added the comment: Ahh. I misunderstood the problem. Pickle behaves differently when it is a circular reference. If you have a solution, I am waiting with curiosity. -- ___ Python tracker _

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread Ned Deily
Ned Deily added the comment: > Are we even impacted by the issue though? Certainly we use a check_chain function at least indirectly but, whether that path is vulnerable, dunno. But, in any case, we will no doubt be pinged about it so best to be ahead of the curve, I think. -- ___

[issue40356] OverflowError: mktime argument out of range

2020-04-21 Thread Eric V. Smith
Eric V. Smith added the comment: FWIW, that time.struct_time value is: >>> d time.struct_time(tm_year=2020, tm_mon=4, tm_mday=16, tm_hour=19, tm_min=12, tm_sec=35, tm_wday=3, tm_yday=107, tm_isdst=1) I don't get an error on 3.7.4 from Cygwin or 3.7.6 from stock Fedora. -- component

[issue39817] CRITICAL: TypeError: cannot pickle 'generator'

2020-04-21 Thread Furkan Onder
Furkan Onder added the comment: Can you send your code? -- nosy: +furkanonder ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue40327] list(sys.modules.items()) can throw RuntimeError: dictionary changed size during iteration

2020-04-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 75bedbe2ed4119ff18a2ea86c544b3cf08a92e75 by Raymond Hettinger in branch 'master': bpo-40327: Improve atomicity, speed, and memory efficiency of the items() loop (GH-19628) https://github.com/python/cpython/commit/75bedbe2ed4119ff18a2ea86c544

[issue40327] list(sys.modules.items()) can throw RuntimeError: dictionary changed size during iteration

2020-04-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +18964 pull_request: https://github.com/python/cpython/pull/19640 ___ Python tracker _

[issue34204] Bump the default pickle protocol in shelve

2020-04-21 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 4.0 -> 5.0 pull_requests: +18963 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19639 ___ Python tracker

[issue38770] Pickle handle self references in classes

2020-04-21 Thread Furkan Onder
Furkan Onder added the comment: I ran your script and didn't get RecursionError. The issue seems to be fixed. Python 3.8.2 (default, Apr 8 2020, 14:31:25) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from __future__ import print_function >>>

[issue32912] Raise non-silent warning for invalid escape sequences

2020-04-21 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue27635] pickle documentation says that unpickling may not call __new__

2020-04-21 Thread Furkan Onder
Furkan Onder added the comment: The problem is fixed, issue can be closed. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread Steven D'Aprano
Steven D'Aprano added the comment: > independent class Oops, sorry I mean independent implementation. -- ___ Python tracker ___ __

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread Steven D'Aprano
Steven D'Aprano added the comment: I don't think this is needed in the builtin zip at all. I think that there is no consensus on Python-Ideas that this is needed or desirable. I especially don't think the API should be a keyword flag on zip. Flag arguments which change the behaviour of funct

[issue40357] asyncio: will shutdown_default_executor work in single step (stop, run_forever) mode?

2020-04-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue40357] asyncio: will shutdown_default_executor work in single step (stop, run_forever) mode?

2020-04-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +aeros ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue40138] Windows implementation of os.waitpid() truncates the exit status (status << 8)

2020-04-21 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18962 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19637 ___ Python tracker ___ _

[issue38870] Expose ast.unparse in the ast module

2020-04-21 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +18961 pull_request: https://github.com/python/cpython/pull/19636 ___ Python tracker ___ _

[issue33065] IDLE debugger: failure stepping through module loading

2020-04-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Timothy, this is already more helpful than a simple 'me too'. Can you reduce pgdata.dump to a truly minimal file that exhibits the bug? and then upload it? Installing any package into my local copy of the master CPython repository is problemmatical. What

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread Brandt Bucher
Brandt Bucher added the comment: Slight edit: if the shortest iterator is "first", one additional item will have to be drawn from the next non-exhausted iterator. I missed that, initially. > It would be better to implement it as a separate function. I disagree. It's not intrusive here; I thi

[issue40357] asyncio: will shutdown_default_executor work in single step (stop, run_forever) mode?

2020-04-21 Thread Chris Meyer
New submission from Chris Meyer : Is the new asyncio.loop.shutdown_default_executor() suitable for event loops that are run in single-step mode? event_loop.create_task(event_loop.shutdown_default_executor()) event_loop.stop() event_loop.run_forever() I don't see how it will work since shutdow

[issue40356] OverflowError: mktime argument out of range

2020-04-21 Thread darkman66
New submission from darkman66 : example test import time, pickle d=pickle.loads(b'\x80\x03ctime\nstruct_time\nq\x00(M\xe4\x07K\x04K\x10K\x13K\x0cK#K\x03KkK\x01tq\x01}q\x02(X\x07\x00\x00\x00tm_zoneq\x03NX\t\x00\x00\x00tm_gmtoffq\x04Nu\x86q\x05Rq\x06.') time.mktime(d) on macox python compiled v

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

2020-04-21 Thread Kyle Stanley
Kyle Stanley added the comment: PR-19634 should address the primary issue of documenting in the 3.9 whatsnew that alternative event loops should implement loop.shutdown_default_executor(). For reference, here's the implementation in BaseEventLoop: https://github.com/python/cpython/blob/9c82e

[issue39943] Meta: Clean up various issues in C internals

2020-04-21 Thread STINNER Victor
STINNER Victor added the comment: > Yes, it is a consequence of PR 19345. But it looks like a compiler bug. It > complains about implicit conversion from `const void **` to `void *` in > memcpy() and PyMem_Del(). Is it possible to add an explicit cast to make the compiler warnings quiet? --

[issue40355] The ast module fails to reject certain malformed nodes

2020-04-21 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: See https://bugs.python.org/msg360767 for ast.unparse's point of view regarding malformed nodes. -- nosy: +BTaskaya, pablogsal ___ Python tracker _

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread Steve Dower
Steve Dower added the comment: That'll teach me for being so quick on this... Are we even impacted by the issue though? I don't see any calls to SSL_check_chain() in our code or the SSL sources. Advisory: https://www.openssl.org/news/secadv/20200421.txt Full diff: https://

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

2020-04-21 Thread Kyle Stanley
Kyle Stanley added the comment: New changeset 9c82ea7868a1c5ecf88891c627b5c399357eb05e by Kyle Stanley in branch 'master': bpo-34037: Add Python API whatsnew for loop.shutdown_default_executor() (#19634) https://github.com/python/cpython/commit/9c82ea7868a1c5ecf88891c627b5c399357eb05e -

[issue40355] The ast module fails to reject certain malformed nodes

2020-04-21 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2020-04-21 Thread Kyle Stanley
Change by Kyle Stanley : -- pull_requests: +18960 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/19634 ___ Python tracker ___

[issue40355] The ast module fails to reject certain malformed nodes

2020-04-21 Thread Brandt Bucher
New submission from Brandt Bucher : There are several places in the ast module where the use of zip is allowing malformed nodes to have unpaired children silently thrown away. A couple of short examples: >>> from ast import Constant, Dict, literal_eval, unparse >>> nasty_dict = Dict(keys=[Con

[issue40235] confusing documentation for IOBase.__exit__

2020-04-21 Thread Daniel Holth
Daniel Holth added the comment: Possibly the best io module example I've found https://github.com/python/cpython/blob/master/Lib/_compression.py -- ___ Python tracker ___ ___

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

2020-04-21 Thread Kyle Stanley
Kyle Stanley added the comment: > Kyle: Can you please add a short sentence there to document the new > requirement? Yep, I'll open a PR soon. I'm glad this is coming up now rather than post-release, thanks for bringing attention to it. -- ___ Py

[issue33065] IDLE debugger: failure stepping through module loading

2020-04-21 Thread Timothy Geiser
Timothy Geiser added the comment: I wish I could be more helpful than to just pipe up with a "this bug affects me, too," note, but wanted to poke this bug report since it's been dormant for 14 months. With Python 3.8.2 I tried using the pgpdump module (version 1.5, installed from pip) on Win

[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-04-21 Thread Kjell Braden
Kjell Braden added the comment: Please let me know if there is anything else I can do to get this going. -- ___ Python tracker ___

[issue40354] problem when using yield

2020-04-21 Thread Mark Dickinson
Mark Dickinson added the comment: Which part of the behaviour do you think is a bug? In version1, you want to think of the yield expression as though it were bracketed like this: result = yield (a+100 if b>100 else (yield a)) With the particular values of a and b that you have, that sta

[issue40164] Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g

2020-04-21 Thread Ned Deily
Ned Deily added the comment: And today (2020-04-21) 1.1.1g is released with a high severity fix. -- title: Upgrade Windows and macOS installer builds to OpenSSL 1.1.1f -> Upgrade Windows and macOS installer builds to OpenSSL 1.1.1g ___ Python track

[issue40354] problem when using yield

2020-04-21 Thread xie
New submission from xie : --version1:-- def func1(): a=0 b=10 for i in range(4): result = yield a+100 if b>100 else (yield a) print(result) f1 = func1() print("value:%s" % next(f1)) print("--") print("value:%s" % next(f1)) print("-

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread Ram Rachum
Ram Rachum added the comment: Here are the tests I made: https://github.com/cool-RR/cpython/commit/766409748a107f290997b0cfab5aa19d0c2888e5 -- ___ Python tracker ___

[issue40352] SocketHandler silently drops log messages on re-connect

2020-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If sending log messages is not guaranteed, we could use UDP. But when we use TCP it is expected that log messages will not be lost. -- nosy: +serhiy.storchaka ___ Python tracker

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Also you can just get a ready implementation from more-tertools. -- ___ Python tracker ___ ___

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread Brandt Bucher
New submission from Brandt Bucher : As discussed on Python-ideas: https://mail.python.org/archives/list/python-id...@python.org/thread/6GFUADSQ5JTF7W7OGWF7XF2NH2XUTUQM/ When a keyword-only argument "strict=True" is passed to zip's constructor, a ValueError will be raised in the case where one

[issue40353] Add an optional "strict" check to zip

2020-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be better to implement it as a separate function. -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue40352] SocketHandler silently drops log messages on re-connect

2020-04-21 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: On one hand it's bad messages get lost, one the other retrying to send the message would take a lot of time and make `SocketHandler` very slow. Maybe we could had the record to a very short queue so we can retry to send it with the next message? -- nos

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-21 Thread STINNER Victor
STINNER Victor added the comment: Brett: > The historical background is code coverage of C code seemed like a good idea, > so we set it up. :) Not much else to it. If there is no user of code coverage *on pull requests*, maybe the simplest fix is to remove this job. There is also Codecov se

[issue40346] Redesign random.Random class inheritance

2020-04-21 Thread STINNER Victor
STINNER Victor added the comment: > It may be time to start emitting a warning if a Random subclass overrides > random() but not getrandbits() or vice versa. Does someone know if there are users outside the stdlib of random subclass which only implements random()? I guess that a deprecation

[issue40346] Redesign random.Random class inheritance

2020-04-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It may be time to start emitting a warning if a Random subclass overrides random() but not getrandbits() or vice versa. If you only override random(), methods which rely on generating random integers will use worse algorithm (slightly less uniform). If you

[issue40237] Test code coverage (C) job of Travis CI fails on test_distutils which creates _configtest.gcno file

2020-04-21 Thread hai shi
hai shi added the comment: > The historical background is code coverage of C code seemed like a good idea, > so we set it up. :) Not much else to it. Hm, code coverage of C code including two parts: 1) coverage of inner c code; 2) extension modules built by distutils; If I understand correct

[issue40352] SocketHandler silently drops log messages on re-connect

2020-04-21 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue40352] SocketHandler silently drops log messages on re-connect

2020-04-21 Thread Oleg Nykolyn
New submission from Oleg Nykolyn : Hi, I've faced this issue when using logging.handlers.SocketHandler AWS TCP balancer. AWS balancer uses 60 second time-out by default (max 4000s), thus resulting in lots of closed sockets during inactive periods. SocketHandler.send() drops current message on

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

2020-04-21 Thread STINNER Victor
STINNER Victor added the comment: Raymond: > Also, I don't want randbytes() in the C extension. We're tried to keep as > much of the code as possible in pure Python and only have the MersenneTwister > specific code in the C module. The improves maintainability and makes the > code more acc

[issue40346] Redesign random.Random class inheritance

2020-04-21 Thread STINNER Victor
STINNER Victor added the comment: Example with Python 3.8: --- import random class MyRandom(random.Random): def getrandbits(self, n): return 0 my = MyRandom() print([my.randint(1, 6) for _ in range(3)]) print([my.random() for _ in range(3)]) --- Output: --- [1, 1, 1] [0.565464179

[issue40351] How to edit "python --help"?

2020-04-21 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks, Rémi. Nino: Please don't ask help questions on the bug tracker, only report bugs here. For general questions you can try the python-list mailing list or Stack Overflow. -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status:

[issue38977] python3.8 and namedlist1.7 is Incompatible

2020-04-21 Thread raina
raina added the comment: Traceback (most recent call last): File "c:\users\raina\appdata\local\programs\python\python38\lib\runpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, .. code = compile(module_node, '', 'exec') TypeError: required field "p

[issue40351] How to edit "python --help"?

2020-04-21 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Nino, the text for `python --help` is here : https://github.com/python/cpython/blob/master/Python/initconfig.c#L28-L130 -- nosy: +remi.lapeyre ___ Python tracker __

[issue40351] How to edit "python --help"?

2020-04-21 Thread Nino
New submission from Nino : Can someone tell how can I edit the "python --help". Is it possible and if yes, how? I build python 3.7 on my PC from source code. -- assignee: docs@python components: Documentation messages: 366914 nosy: Nino-95, docs@python priority: normal severity: normal

[issue29847] Path takes and ignores **kwargs

2020-04-21 Thread Yurii Karabas
Change by Yurii Karabas <1998uri...@gmail.com>: -- nosy: +uriyyo nosy_count: 6.0 -> 7.0 pull_requests: +18959 pull_request: https://github.com/python/cpython/pull/19632 ___ Python tracker

[issue40337] builtins.RuntimeError: Caught RuntimeError in pin memory thread for device 0.

2020-04-21 Thread Eric V. Smith
Eric V. Smith added the comment: Unless the original poster can provide more information (and preferably a way to reproduce this), I'm going to close this. -- status: open -> pending ___ Python tracker

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

2020-04-21 Thread Greg Whiteley
New submission from Greg Whiteley : Issue: Running ModuleFinder.run_script() on numpy versions 1.16.1 to 1.18.3 (maybe more) fails with backtrace. See steps to reproduce below. I do not see this problem on earlier versions of python than 3.8 (tested 3.4, 3.5, 3.6 on ubuntu LTSs), but the co