[issue36461] timeit: Additional changes for autorange

2019-05-24 Thread Alessandro Cucci
Alessandro Cucci added the comment: Thanks Steven, I like the new name "target_time". Just a question: why we need to check ``if number == 0:``? In the proposal you asked for None too. What changed? Even if the function is called with False, will it hurts to keep the default value? I'll

[issue37038] Make idlelib/run.py runnable.

2019-05-24 Thread miss-islington
miss-islington added the comment: New changeset c70ab1cca0f43dbf3bad4acacd06a792cdbe03c8 by Miss Islington (bot) in branch '3.7': bpo-37038: Make idlelib.run runnable; add test clause (GH-13560) https://github.com/python/cpython/commit/c70ab1cca0f43dbf3bad4acacd06a792cdbe03c8 --

[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

2019-05-24 Thread Dan Rose
New submission from Dan Rose : Checking membership in `itertools.count()` will either return True in linear time or enter an infinite loop that cannot be terminated with Ctrl-c. This ``` import itertools 1 in itertools.count(0,2) ``` It is expected that the above code will use an efficient

Re: PEP 594 cgi & cgitb removal

2019-05-24 Thread Michael Torrie
On 05/24/2019 04:27 AM, Jon Ribbens via Python-list wrote: > On 2019-05-23, Gunnar Þór Magnússon wrote: >>> nginx is the current hotness. CGI has not been hotness since the >>> mid 90s. >> >> Serverless is the new hotness, and serverless is CGI. Technology is >> cyclical. > > Sorry, in what

[issue27639] UserList.__getitem__ doesn't account for slices

2019-05-24 Thread Michael Blahay
Michael Blahay added the comment: PR 13203 is still waiting for merge -- ___ Python tracker ___ ___ Python-bugs-list mailing list

Re: PEP 594 cgi & cgitb removal

2019-05-24 Thread Michael Torrie
On 05/24/2019 01:24 PM, Marko Rauhamaa wrote: > There's a programming language arms race. Python wants to beat Java, C# > and go in the everything-for-everybody game. Python developers seem to > take the popularity of the language as proof of success. Pride goes > before the fall. I don't see

[issue37038] Make idlelib/run.py runnable.

2019-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +13472 pull_request: https://github.com/python/cpython/pull/13561 ___ Python tracker ___

[issue37039] IDLE: Zoom Height Restore restores to default, not previous size

2019-05-24 Thread Terry J. Reedy
New submission from Terry J. Reedy : Restore Height restores to default, not previous size. This is a bit surprising, but is documented. "Toggles the window between normal size and maximum height. The initial size defaults to 40 lines by 80 chars unless changed on the General tab of the

[issue37038] Make idlelib/run.py runnable.

2019-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 81bb97df6138c755e229dcdac9bed747e31b61b3 by Terry Jan Reedy in branch 'master': bpo-37038: Make idlelib.run runnable; add test clause (GH-13560) https://github.com/python/cpython/commit/81bb97df6138c755e229dcdac9bed747e31b61b3 --

[issue37039] IDLE: Zoomheight restores to default, not previous size

2019-05-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- Removed message: https://bugs.python.org/msg343448 ___ Python tracker ___ ___ Python-bugs-list

[issue37039] IDLE: Zoomheight restores to default, not previous size

2019-05-24 Thread Terry J. Reedy
New submission from Terry J. Reedy : On both Windows and Mac -- messages: 343448 nosy: cheryl.sabella, terry.reedy priority: normal severity: normal status: open title: IDLE: Zoomheight restores to default, not previous size type: behavior ___

[issue37037] Enable rpath remapping in makefile

2019-05-24 Thread Ned Deily
Ned Deily added the comment: (Sorry, my original answer was great except it didn't actually work. Revisiting.) -- ___ Python tracker ___

[issue36940] Update Py_FrozenMain() for _PyCoreConfig (PEP 587)

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: Another file which should maybe also be updated to PEP 587, PC/bdist_wininst/install.c: static int compile_filelist(HINSTANCE hPython, BOOL optimize_flag) { DECLPROC(hPython, void, Py_Initialize, (void)); DECLPROC(hPython, void, Py_SetProgramName,

[issue37037] Enable rpath remapping in makefile

2019-05-24 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg343439 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37037] Enable rpath remapping in makefile

2019-05-24 Thread Ned Deily
Change by Ned Deily : -- Removed message: https://bugs.python.org/msg343442 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34632] Port importlib_metadata to Python 3.8

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: Unhappy buildbot: AMD64 Fedora Rawhide Clang Installed 3.x https://buildbot.python.org/all/#/builders/188/builds/302 Example: 0:00:28 load avg: 4.02 [182/422/1] test_importlib failed Failed to import test module: test.test_importlib.test_main Traceback

[issue1230540] sys.excepthook doesn't work in threads

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: If you want to reuse sys.excepthook to handle uncaught Thread.run() exception, you can now write: --- def hook(args): if args.exc_type == SystemExit: return sys.excepthook(args.exc_type, args.exc_value, args.exc_traceback)

[issue1230540] sys.excepthook doesn't work in threads

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: I rewrote my PR 13515: * threading.excepthook() now gets a single argument which has multiple attributes: (exc_type, exc_value, exc_traceback, thread) * The default threading.excepthook() implementation in written in C which reduces the risk of missing

[issue37037] Enable rpath remapping in makefile

2019-05-24 Thread Ned Deily
Ned Deily added the comment: Correction: DYLD_PRINT_LIBRARIES= /path/to/installed/location/python3 should be DYLD_PRINT_LIBRARIES= /path/to/installed/location/bin/python3 -- ___ Python tracker

[issue34632] Port importlib_metadata to Python 3.8

2019-05-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 1bbf7b661f0ac8aac12d5531928d9a85c98ec1a9 by Barry Warsaw (Jason R. Coombs) in branch 'master': bpo-34632: Add importlib.metadata (GH-12547) https://github.com/python/cpython/commit/1bbf7b661f0ac8aac12d5531928d9a85c98ec1a9 --

[issue34632] Port importlib_metadata to Python 3.8

2019-05-24 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks @jaraco! This is now merged into 3.8. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37037] Enable rpath remapping in makefile

2019-05-24 Thread Ned Deily
Ned Deily added the comment: For macOS, if I understand correctly what you want to do, the way to avoid using "install_name_tool" to modify the id name of the libpython* dynamic shared library is to pass the desired name to the link step when building the shared library using ld's

Re: More CPUs doen't equal more speed

2019-05-24 Thread Cameron Simpson
On 24May2019 11:40, bvdp wrote: Just got a 1 liner working with parallel. Super! All I ended up doing is: parallel mma {} ::: *mma +1 Glad to see a nice simple approach. Cheers, Cameron Simpson (formerly ) -- https://mail.python.org/mailman/listinfo/python-list

[issue37038] Make idlelib/run.py runnable.

2019-05-24 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +13471 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13560 ___ Python tracker

[issue33725] Python crashes on macOS after fork with no exec

2019-05-24 Thread Tim Smith
Change by Tim Smith : -- nosy: +tdsmith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-24 Thread Erwan Le Pape
Erwan Le Pape added the comment: Thanks for testing that. It's good that you used an actual address because that eliminates the possibility that AIX doesn't handle addresses it doesn't really know about. On the other hand, even when properly specified to a real scoped IPv6 address,

[issue36954] test_recursive_repr breaks tracing in test_xml_etree

2019-05-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: @gphemsley Can you please provide the output of running test_xml_etree with tracing. -- nosy: +xdegaye ___ Python tracker ___

[issue36829] Add sys.unraisablehook() to custom how "unraisable exceptions" are logged

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6dbbe748e101a173b4cff8aada41e9313e287e0f by Victor Stinner in branch 'master': bpo-36829: Document test.support.catch_unraisable_exception() (GH-13554) https://github.com/python/cpython/commit/6dbbe748e101a173b4cff8aada41e9313e287e0f

[issue37032] Add CodeType.replace() method

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: Once Python 3.8 beta1 will be released, it would be interesting to patch all projects that I had to be fixed to handle the new "posonlyargcount" to use the new "replace()" method is available. Maybe even remove the fix for Python 3.8 alpha 4 and only use

[issue37032] Add CodeType.replace() method

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset a9f05d69ccbf3c75cdd604c25094282697789a62 by Victor Stinner in branch 'master': bpo-37032: Add CodeType.replace() method (GH-13542) https://github.com/python/cpython/commit/a9f05d69ccbf3c75cdd604c25094282697789a62 --

[issue37038] Make idlelib/run.py runnable.

2019-05-24 Thread Terry J. Reedy
New submission from Terry J. Reedy : Slightly simplified, pyshell.ModifiedInterpreter.built_subprocess runs f'{sys.executable} -c "__import__('idlelib.run').run.main()"'. "__import__('idlelib.run')" creates sys.modules['idlelib'] from idlelib/__init__.py, creates sys.modules['idlelib.run']

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

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset cee4ac8135fe9cf99de4ceca52d1f53e14b69dba by Victor Stinner in branch '3.7': bpo-35907: Clarify the NEWS entry (GH-13558) https://github.com/python/cpython/commit/cee4ac8135fe9cf99de4ceca52d1f53e14b69dba --

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

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset d9d1045837e5356331b6d5e24cbd1286acb62b5d by Victor Stinner in branch '2.7': bpo-35907: Clarify the NEWS entry (GH-13557) https://github.com/python/cpython/commit/d9d1045837e5356331b6d5e24cbd1286acb62b5d --

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-24 Thread Michael Felt
Michael Felt added the comment: On 24/05/2019 19:59, Erwan Le Pape wrote: > python3 -c 'import socket; print(socket.getaddrinfo("fe80::1%1", 80))'` root@x067:[/home/root]python3 -c 'import socket; print(socket.getaddrinfo("fe80::1%1", 80))' [(, , 17, '', ('fe80::1', 80, 0, 0))] I have not yet

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-24 Thread Michael Felt
Michael Felt added the comment: On 24/05/2019 19:59, Erwan Le Pape wrote: > python3 -c 'import socket; print(socket.getaddrinfo("fe80::1%1", 80))'` p.s. I used an actual address: buildbot@x064:[/home/buildbot/aixtools-master]netstat -ni Name  Mtu   Network Address    Ipkts Ierrs   

[issue37021] Can _random.getrandbits() be converted to METH_FASTCALL?

2019-05-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 561612d8456cfab5672c9b445521113b847bd6b3 by Pablo Galindo in branch 'master': bpo-37021: Port _randommodule to the argument clinic (GH-13532) https://github.com/python/cpython/commit/561612d8456cfab5672c9b445521113b847bd6b3 --

[issue37021] Can _random.getrandbits() be converted to METH_FASTCALL?

2019-05-24 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1c9debd2366a21525769aaa99ce334092033a963 by Victor Stinner in branch 'master': bpo-35907: Fix typo in the NEWS entry (GH-13559) https://github.com/python/cpython/commit/1c9debd2366a21525769aaa99ce334092033a963 --

[issue36969] pdb.do_args: display keyword-only and positional only arguments

2019-05-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks Rémi for the PRs! :) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36969] pdb.do_args: display keyword-only and positional only arguments

2019-05-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 458560347f5c28e162bb288adfa0cfe5aad79557 by Pablo Galindo (Rémi Lapeyre) in branch 'master': bpo-36969: Make PDB args command display positional only arguments (GH-13459)

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

2019-05-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_request: https://github.com/python/cpython/pull/13559 ___ Python tracker ___ ___

[issue36985] typing.ForwardRef is undocumented

2019-05-24 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-05-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_request: https://github.com/python/cpython/pull/13558 ___ Python tracker ___ ___

Re: PEP 594 cgi & cgitb removal

2019-05-24 Thread Terry Reedy
I am responding to Paul indirectly because his post did not show up on the gmane mirror. Paul Rubin : It also makes me ask why the Python team keeps adding new stuff if it can't even keep the old stuff running. Because the new stuff is expected to be more useful to more people than some

[issue2771] Test issue

2019-05-24 Thread Ezio Melotti
Change by Ezio Melotti : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2771] Test issue

2019-05-24 Thread Ezio Melotti
Change by Ezio Melotti : -- components: +Tests keywords: +easy (C) priority: -> low versions: +Python 3.9 -Python 3.8 ___ Python tracker ___

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

2019-05-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13468 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset deffee57749cf29ba17f50f11fb2a8cbc3e3752d by Victor Stinner in branch 'master': bpo-35907: Clarify the NEWS entry (GH-13523) https://github.com/python/cpython/commit/deffee57749cf29ba17f50f11fb2a8cbc3e3752d --

[issue37023] test_gdb failed on AMD64 Debian PGO 3.x

2019-05-24 Thread Steve Dower
Steve Dower added the comment: New changeset 6de4574c6393b9cf8d7dfb0dc6ce53ee5b9ea841 by Steve Dower in branch 'master': bpo-37023: Skip test_gdb under PGO (GH-13555) https://github.com/python/cpython/commit/6de4574c6393b9cf8d7dfb0dc6ce53ee5b9ea841 --

[issue37023] test_gdb failed on AMD64 Debian PGO 3.x

2019-05-24 Thread Steve Dower
Steve Dower added the comment: Test is now skipped if PGO was used. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34651] Disallow fork in a subinterpreter.

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: > I'd start by documenting the limitation and keeping a future feature request > of "Allow subprocess to work from subinterpreters". That is doable. > Supporting os.fork() is not. subprocess is able to use os.posix_spawn() in Python 3.8. In that case,

Re: PEP 594 cgi & cgitb removal

2019-05-24 Thread Marko Rauhamaa
Paul Rubin : > Stéphane Wirtel writes: >> Not a massive effort, but we are limited with the resources. > > I keep hearing that but it makes it sound like Python itself is in > decline. That is despite the reports that it is now the most popular > language in the world. It also makes me ask why

[issue21536] extension built with a shared python cannot be loaded with a static python

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: > FWIW I checked the Android build after those last changes. Thank you! I was overconfident when I merged the Cygwin which looked good to me, whereas it broke Android :-( Hopefully it was quickly fixed. I hope that everything will be alright for the the

[issue36842] Implement PEP 578

2019-05-24 Thread Steve Dower

Re: More CPUs doen't equal more speed

2019-05-24 Thread Bob van der Poel
Just got a 1 liner working with parallel. Super! All I ended up doing is: parallel mma {} ::: *mma which whizzed through my files in less than 1/4 of the time of my one-at-a-time script. (In case anyone is wondering, or cares, this is a bunch of Musical Midi Accompaniment files:

[issue36842] Implement PEP 578

2019-05-24 Thread Steve Dower
Steve Dower added the comment: Since hooks can't be removed, it probably looks like a leak when some are added for the tests. I'll update all the tests to run in new processes. -- ___ Python tracker

[issue21536] extension built with a shared python cannot be loaded with a static python

2019-05-24 Thread Xavier de Gaye
Xavier de Gaye added the comment: FWIW I checked the Android build after those last changes. -- ___ Python tracker ___ ___

[issue35545] asyncio.base_events.create_connection doesn't handle scoped IPv6 addresses

2019-05-24 Thread Erwan Le Pape
Erwan Le Pape added the comment: I don't have an AIX lying around to test so would you mind just running the test on `getaddrinfo` for AIX. A simple `python3 -c 'import socket; print(socket.getaddrinfo("fe80::1%1", 80))'` should fairly rapidly determine if there is a legitimate reason for

[issue37023] test_gdb failed on AMD64 Debian PGO 3.x

2019-05-24 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +13466 stage: -> patch review ___ Python tracker ___ ___

[issue37023] test_gdb failed on AMD64 Debian PGO 3.x

2019-05-24 Thread Steve Dower
Steve Dower added the comment: Okay, fixing the regex isn't an option, as most of the tests (just not the one copy-pasted above) rely on verifying the parameter value. I'll figure out how to skip the test on PGO build instead. -- ___ Python

[issue34651] Disallow fork in a subinterpreter.

2019-05-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'd start by documenting the limitation and keeping a future feature request of "Allow subprocess to work from subinterpreters". That is doable. Supporting os.fork() is not. -- ___ Python tracker

[issue27860] Improvements to ipaddress module

2019-05-24 Thread Jack
Change by Jack : -- nosy: +Jacktose ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36842] Implement PEP 578

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: It seems like there are reference leaks: https://buildbot.python.org/all/#/builders/1/builds/593 test_audit leaked [310, 310, 310] references, sum=930 test_audit leaked [189, 189, 189] memory blocks, sum=567 You may try test.bisect_cmd to debug this.

[issue8138] wsgiref.simple_server.SimpleServer claims to be multithreaded

2019-05-24 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.7 ___ Python tracker ___

[issue8138] wsgiref.simple_server.SimpleServer claims to be multithreaded

2019-05-24 Thread Berker Peksag
Berker Peksag added the comment: New changeset 14738ff83d852c95a0cf33e5c90a85860a9c5620 by Berker Peksag in branch 'master': bpo-8138: Initialize wsgiref's SimpleServer as single-threaded (GH-12977) https://github.com/python/cpython/commit/14738ff83d852c95a0cf33e5c90a85860a9c5620

[issue36829] Add sys.unraisablehook() to custom how "unraisable exceptions" are logged

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: > Could test.support.catch_unraisable_exception also be documented at > https://docs.python.org/3/library/test.html#module-test.support ? I wrote PR 13554 to document it. -- ___ Python tracker

[issue36829] Add sys.unraisablehook() to custom how "unraisable exceptions" are logged

2019-05-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13465 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37037] Enable rpath remapping in makefile

2019-05-24 Thread Steve Dower
New submission from Steve Dower : I'd like to be able to build libpython and have it already have the install path stripped out so I can use rpath instead. This libpython is going to be distributed with other applications. Right now, I'm running `install_name_tool -id

[issue21536] extension built with a shared python cannot be loaded with a static python

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset b1fc41784136a2eb9737a7f0c821db52ab8d4dee by Victor Stinner (E. M. Bray) in branch 'master': bpo-21536: Fix configure.ac for LIBPYTHON on Android/Cygwin (GH-13552) https://github.com/python/cpython/commit/b1fc41784136a2eb9737a7f0c821db52ab8d4dee

[issue36461] timeit: Additional changes for autorange

2019-05-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: Michele, Alessandro, thank you both for your work! And thank you Cheryl for managing this ticket. I like mangrisano's design where the target time is passed as an argument to the ``autorange`` method, although I prefer the name "target_time". (But I'm

Re: More CPUs doen't equal more speed

2019-05-24 Thread Rob Gaddi
On 5/23/19 6:32 PM, Cameron Simpson wrote: On 23May2019 17:04, bvdp wrote: Anyway, yes the problem is that I was naively using command.getoutput() which blocks until the command is finished. So, of course, only one process was being run at one time! Bad me! I guess I should be looking at

[issue36721] Add pkg-config python-3.8-embed and --embed to python3.8-config

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset bc66faccb8a6140e7e07b5e67843b7f21152c144 by Victor Stinner in branch 'master': bpo-36721: Fix pkg-config symbolic links on "make install" (GH-13551) https://github.com/python/cpython/commit/bc66faccb8a6140e7e07b5e67843b7f21152c144 --

[issue32573] All sys attributes (.argv, ...) should exist in embedded environments

2019-05-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13464 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33361] readline() + seek() on codecs.EncodedFile breaks next readline()

2019-05-24 Thread Josh Rosenberg
Josh Rosenberg added the comment: Possibly related to #8260 ("When I use codecs.open(...) and f.readline() follow up by f.read() return bad result"), which was never fully fixed in that issue, though #32110 ("Make codecs.StreamReader.read() more compatible with read() of other files") may

[issue36511] Add Windows ARM32 buildbot

2019-05-24 Thread Steve Dower
Steve Dower added the comment: New changeset 51394b8c3d42e6e6d368251ff6f0612495724fc0 by Steve Dower (Paul Monson) in branch 'master': bpo-36511: Ensure error code propagates out of batch files (GH-13529) https://github.com/python/cpython/commit/51394b8c3d42e6e6d368251ff6f0612495724fc0

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-05-24 Thread Peter Edwards
Peter Edwards added the comment: Hi - we ran into what looks like exactly this issue on an x86_64 sporadically, and tracked down the root cause. When faulthandler.c uses sigaltstack(2), the stack size is set up with a buffer of size SIGSTKSZ. That is, sadly, only 8k. When a signal is

[issue21536] extension built with a shared python cannot be loaded with a static python

2019-05-24 Thread Erik Bray
Change by Erik Bray : -- pull_requests: +13463 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36461] timeit: Additional changes for autorange

2019-05-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: Looking at PR 12953: The only API for setting the target time is by passing it to the autorange method directly. So I think that there's no way for the caller of ``Timer.timeit()`` or ``Timer.repeat()`` to specify a custom target time, is that right?

[issue37036] Iterating a text file by line should not implicitly disable tell

2019-05-24 Thread Josh Rosenberg
Josh Rosenberg added the comment: Left a dangling sentence in there: "I used two arg iter in both cases to keep the code paths as similar as possible so the `telling`." should read: "I used iter(f.readline, '') in both cases to keep the code paths as similar as possible so the `telling`

Re: More CPUs doen't equal more speed

2019-05-24 Thread Bob van der Poel
Ahh, 2 really excellent ideas! I'm reading about parallel right now. And, I know how to use make, so I really should have thought of -j as well. Thanks for the ideas. On Fri, May 24, 2019 at 12:02 AM Christian Gollwitzer wrote: > Am 23.05.19 um 23:44 schrieb Paul Rubin: > > Bob van der Poel

[issue37036] Iterating a text file by line should not implicitly disable tell

2019-05-24 Thread Josh Rosenberg
New submission from Josh Rosenberg : TextIOWrapper explicitly sets the `telling` flag to 0 when .__next__ ( textiowrapper_iternext ) is called ( https://github.com/python/cpython/blob/3.7/Modules/_io/textio.c#L2974 ), e.g. during standard for loops over the file of this form, trying to call

Re: Checking network input processing by Python for a multi-threaded server

2019-05-24 Thread Markus Elfring
> The file name for the client script is passed by a parameter to a command > which is repeated by this server in a loop. > It is evaluated then how often a known record set count was sent. In which time ranges would you expect the receiving of the complete JSON data which were sent by the child

[issue36721] Add pkg-config python-3.8-embed and --embed to python3.8-config

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: By the way, I'm not sure that the current layout of .pc files. The name "module" give a different configuration. Is that correct? $ grep ^Libs: /opt/py38/lib/pkgconfig/python-3.8-embed.pc Libs: -L${libdir} -lpython3.8 $ grep ^Libs:

[issue36461] timeit: Additional changes for autorange

2019-05-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: (Sorry, I can't comment on Github.) Looking at PR 12954: I'm not sure about the API for making the time used by autorange configurable. The time taken is only used when autoranging, but the API takes it as an argument to the constructor even if it won't

[issue36721] Add pkg-config python-3.8-embed and --embed to python3.8-config

2019-05-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13462 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36721] Add pkg-config python-3.8-embed and --embed to python3.8-config

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: Miro commented my PR: https://github.com/python/cpython/pull/13500#issuecomment-495510268 """ This is what it gave me in Fedora, feels a bit inconsistent: /usr/lib64/pkgconfig/python-3.8-embed.pc /usr/lib64/pkgconfig/python-embed-3.8d.pc

Re: Handling an connection error with Twython

2019-05-24 Thread MRAB
On 2019-05-24 09:25, Cecil Westerhof wrote: Dennis Lee Bieber writes: On Fri, 24 May 2019 07:49:23 +0200, Cecil Westerhof declaimed the following: I did not do that consciously, because I have to try until it is successful an I return, or I reached the max tries and re-raise the

[issue21131] test_faulthandler.test_register_chain fails on 64bit ppc/arm with kernel >= 3.10

2019-05-24 Thread markmcclain
Change by markmcclain : -- nosy: +markmcclain ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35775] Add a general selection function to statistics

2019-05-24 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Steven, thanks for taking the time to reviewing my patch. Regarding the relevance of add select(), I was looking for work to do in the bug tracker and found some references to it (https://bugs.python.org/issue21592#msg219934 for example). I knew that there

[issue21536] extension built with a shared python cannot be loaded with a static python

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: I merged E. M. Bray's PR to get in Python 3.8 beta 1. If anything goes wrong, we can fix it later ;-) -- ___ Python tracker ___

[issue21536] extension built with a shared python cannot be loaded with a static python

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset c994c8fc196a167c57c8850e8abdee170d366eec by Victor Stinner (E. M. Bray) in branch 'master': bpo-21536: On Cygwin, C extensions must be linked with libpython (GH-13549)

[issue21536] extension built with a shared python cannot be loaded with a static python

2019-05-24 Thread Erik Bray
Change by Erik Bray : -- pull_requests: +13461 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37035] Don't log OSError exceptions in asyncio transports

2019-05-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +13460 stage: -> patch review ___ Python tracker ___ ___

[issue37022] pdb: do_p and do_pp swallow exceptions from __repr__

2019-05-24 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: This part of the code is already used in three places and your patch would add two occurrences of of it, I think it would be great to put the part that print the exception in a private method, to avoid duplicating it all over the place. Doing this seems small

[issue36461] timeit: Additional changes for autorange

2019-05-24 Thread Steven D'Aprano
Steven D'Aprano added the comment: > @steven.daprano, would you be able to review the pull requests based > on your original concept for this change? Thank you! With difficulty... for technology/financial reasons, I don't have a browser that works properly with github. But I'll do what I

[issue36710] Pass _PyRuntimeState as an argument rather than using the _PyRuntime global variable

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset 438a12dd9d85f463c0bb7bf1505cd87b98b98170 by Victor Stinner in branch 'master': bpo-36710: Add tstate parameter in ceval.c (GH-13547) https://github.com/python/cpython/commit/438a12dd9d85f463c0bb7bf1505cd87b98b98170 --

[issue37022] pdb: do_p and do_pp swallow exceptions from __repr__

2019-05-24 Thread daniel hahler
daniel hahler added the comment: Thanks for the feedback. What do you think of refactoring the common block (also used in other places) into a method? +except: +exc_info = sys.exc_info()[:2] +self.error(traceback.format_exception_only(*exc_info)[-1].strip())

[issue37022] pdb: do_p and do_pp swallow exceptions from __repr__

2019-05-24 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Daniel, this is indeed unexpected, I don't see how to have a better patch since the fact that _getval() raise an exception is used in do_source() and do_whatis(). Could you convert your patch as a PR and add a test? -- nosy: +remi.lapeyre

[issue37035] Don't log OSError exceptions in asyncio transports

2019-05-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: Update. Currently, exceptions from the ignore list are still logged in debug mode. The proposal doesn't change this behavior. -- ___ Python tracker

[issue37035] Don't log OSError exceptions in asyncio transports

2019-05-24 Thread Andrew Svetlov
New submission from Andrew Svetlov : Currently asyncio uses `loop.call_exception_handler()` for logging *fatal* exceptions from underlying sockets before calling protocol.connection_lost(). There is a list of exceptions that are not logged: BrokenPipeError, ConnectionResetError,

  1   2   >