[issue37030] Lib/cmd.py: Hide undocumented commands in help and completenames

2019-05-24 Thread Aldwin Pollefeyt
New submission from Aldwin Pollefeyt : A flag, defaulting to false. If true, :meth:`do_help` and :meth:`completenames` won't include undocumented commands (that is, there are do_*() methods without corresponding help_*() methods). -- components: Library (Lib) messages: 343346 nosy: al

[issue37030] Lib/cmd.py: Hide undocumented commands in help and completenames

2019-05-24 Thread Aldwin Pollefeyt
Change by Aldwin Pollefeyt : -- keywords: +patch pull_requests: +13450 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue37007] Implement socket.if_{nametoindex, indextoname} for Windows

2019-05-24 Thread Dmitry Tantsur
Dmitry Tantsur added the comment: That would be fantastic, but I did not dare asking for it :) This is how the output of if_nameindex looks on my Fedora 29: [(1, 'lo'), (2, 'enp0s31f6'), (3, 'wlp4s0'), (4, 'virbr0'), (5, 'virbr0-nic'), (12, 'tun0')] It includes the loopback, two real adapte

[issue35990] ipaddress.IPv4Interface won't accept 2-tuple (address, mask)

2019-05-24 Thread SilentGhost
SilentGhost added the comment: This seems to have been fixed in #27860 (in master) particularly 6fa84bd12c4b83bee6a41b989363230d5c03b96c. I'm not sure why it was decided against backporting to 3.7 as no new features were introduced, but it's perhaps better to raise this question in that iss

[issue27860] Improvements to ipaddress module

2019-05-24 Thread SilentGhost
SilentGhost added the comment: I was wondering why it was decided against backporting to 3.7? 6fa84bd12c4b83bee6a41b989363230d5c03b96c fixes an actual bug #35990 (string mask in tuple argument for IPv4Interfaces). Incidentally, there are also no tests for this behaviour. Just to note: both

[issue37031] signalmodule.c: reuse runtime->main_thread

2019-05-24 Thread STINNER Victor
New submission from STINNER Victor : Currently, signalmodule.c tracks the "main thread" and the "main interpreter": main_thread = PyThread_get_thread_ident(); main_interp = _PyInterpreterState_Get(); This information is already tracked in the global _PyRuntime variable which is update

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

2019-05-24 Thread Michael Felt
Michael Felt added the comment: In hindsight, maybe the message could have been better, BUT - is it relevant? commit 413118ebf3162418639a5c4af14b02d26571a02c Author: Michael Felt Date: Fri Sep 14 01:35:56 2018 +0200 Fix test_asyncio for AIX - do not call transport.get_extra_info('sock

[issue37015] Fix asyncio mock warnings

2019-05-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This logic is present in create_autospec too at [0]. The behavior for patch seems to be documented at [1] which also needs to be updated to reflect that an AsyncMock by default is created instead of MagicMock if the target is an async function unli

[issue37031] signalmodule.c: reuse runtime->main_thread

2019-05-24 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +13452 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue37019] Create symlinks relative to cwd

2019-05-24 Thread SilentGhost
SilentGhost added the comment: Shannon, what you're suggesting is prone to the same issue (creating a broken symlink) if a given destination does not exist relative to cwd. I think your current solution is better as it explicitly provides the paths, but it's not generalised enough to warrant

[issue37031] signalmodule.c: reuse runtime->main_thread

2019-05-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13453 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: The interrupt_main() documentation needs a "versionchanged:: 3.8" to document that the behavior changed in Python 3.8, no? (do nothing if the signal is not handled by Python). I'm not comfortable to backport this change. I suggest to only change Python 3.8

[issue37019] Create symlinks relative to cwd

2019-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, the current behavior is by design. It is consistent with the os.symlink(), the "ln -s" command, and with any other way of creating symbolic links in other programming languages. -- resolution: -> not a bug stage: -> resolved status: open ->

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

2019-05-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13454 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue37014] [First easy issue] fileinput module should document that openhook and mode are ignored when reading from stdin

2019-05-24 Thread Michele Angrisano
Michele Angrisano added the comment: The Python's version chosen for this issue is 3.7. I think the suggest can be useful for 3.8 as well. Am I right? -- nosy: +mangrisano ___ Python tracker ___

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2019-05-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's just a bugfix to avoid a rogue exception. It sounds gratuitous to add markers for bug fixes in the documentation. -- versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.5 ___ Python tracker

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2019-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +13455 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue34626] PEP 384's PyType_Spec and PyType_Slot are not documented

2019-05-24 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset f1e17e9f97d9a4e97a5d99574775ee343a3a74fb by Petr Viktorin in branch 'master': bpo-34626: Document creating heap types from the C-API (GH-9154) https://github.com/python/cpython/commit/f1e17e9f97d9a4e97a5d99574775ee343a3a74fb -- ___

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2019-05-24 Thread miss-islington
miss-islington added the comment: New changeset 310f414bbd4d6ed1d8813f724c91ce9b4129c0ba by Miss Islington (bot) in branch '3.7': bpo-23395: Fix PyErr_SetInterrupt if the SIGINT signal is ignored or not handled (GH-7778) https://github.com/python/cpython/commit/310f414bbd4d6ed1d8813f724c91ce

[issue37032] Add CodeType.replace() method

2019-05-24 Thread STINNER Victor
New submission from STINNER Victor : Each type types.CodeType constructor changes, a lot of applications break. Python 3.8 added a new parameter which broke for example the Genshi project, just to name one. I propose to add a new CodeType.replace() method, similar to datetime.datetime.replac

[issue37031] signalmodule.c: reuse runtime->main_thread

2019-05-24 Thread Matej Cepl
Change by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2019-05-24 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue36982] Add support for extended color functions in ncurses 6.1

2019-05-24 Thread Jeffrey Kintscher
Change by Jeffrey Kintscher : -- components: +Extension Modules -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue37030] Lib/cmd.py: Hide undocumented commands in help and completenames

2019-05-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I believe this PR at least addresses the concern raised at [0] to provide a way where internal and undocumented commands can be hidden from the user. [0] https://bugs.python.org/issue13214#msg309788 -- nosy: +xtreak ___

[issue37033] Dictionary defaults .get(), .pop(), .setdefault()

2019-05-24 Thread Vykouk
New submission from Vykouk : The methods .get(), .pop(), .setdefault() evaluate defaults even though the key already exists in the dictionary: # -*- coding: utf-8 -*- def deflt(x): print('\nKey', x, 'is not in the dictionary') return 'Default' dicti = {1:'one', 2:'two', 3:'three'} k

[issue37033] Dictionary defaults .get(), .pop(), .setdefault()

2019-05-24 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi @vykouk, Python evaluates arguments before calling functions so >>> dicti.get(key, dflt(key)) is equivalent to: >>> arg = dflt(key) >>> dicti.get(key, arg) Notive how dflt() is called before .get() This is how all functions work in Python, not just dict me

[issue37033] Dictionary defaults .get(), .pop(), .setdefault()

2019-05-24 Thread SilentGhost
Change by SilentGhost : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue34651] Disallow fork in a subinterpreter.

2019-05-24 Thread Miro Hrončok
Miro Hrončok added the comment: It appears that as a result of this, subprocess.Popen cannot be called from within a subinterpreter either. Is that an obvious and desired limitation? -- nosy: +hroncok ___ Python tracker

[issue37034] Argument Clinic omits name of keyword-only parameter on _PyArg_BadArgument() call

2019-05-24 Thread STINNER Victor
New submission from STINNER Victor : Example of generated code: if (!PyBytes_Check(args[15])) { _PyArg_BadArgument("replace", 16, "bytes", args[15]); goto exit; } Error message: TypeError: replace() argument 16 must be bytes, not tuple It is the 'lnotab' parameter whi

[issue37015] Fix asyncio mock warnings

2019-05-24 Thread Andrew Svetlov
Andrew Svetlov added the comment: xtreak thanks for investigation. I have no time to work on it now, sorry. Maybe the next week. Anyway, the problem can be fixed even in python beta stage if we don't do it earlier. -- ___ Python tracker

[issue37032] Add CodeType.replace() method

2019-05-24 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +13456 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue20285] Improve object.__doc__ and help(object) output

2019-05-24 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ _

[issue20285] Improve object.__doc__ and help(object) output

2019-05-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset c95c93d4eb0519beaa06e6b6e0ecca7c2a58f69c by Cheryl Sabella in branch 'master': bpo-20285: Improve help docs for object (GH-4759) https://github.com/python/cpython/commit/c95c93d4eb0519beaa06e6b6e0ecca7c2a58f69c --

[issue37015] Fix asyncio mock warnings

2019-05-24 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @asvetlov No problem then if it can be fixed after beta. -- ___ Python tracker ___ ___

[issue34651] Disallow fork in a subinterpreter.

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue to let Eric answer ;-) If the behavior is deliberate, maybe it should just be documented somewhere? -- nosy: +vstinner resolution: fixed -> status: closed -> open ___ Python tracker

[issue37032] Add CodeType.replace() method

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: > Python 3.8 added a new parameter which broke for example the Genshi project Pablo fixed it in Genshi: https://github.com/edgewall/genshi/pull/19 -- ___ Python tracker ___

[issue37032] Add CodeType.replace() method

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-37034: "Argument Clinic omits name of keyword-only parameter on _PyArg_BadArgument() call". -- ___ Python tracker ___ _

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

2019-05-24 Thread Erik Bray
Erik Bray added the comment: I vaguely recall seeing some discussion about this on python-dev or elsewhere and wish I had chimed in sooner, as I didn't realize action was going to be taken on this so soon. This completely breaks building extension modules on Windows-based platforms like Cyg

[issue37032] Add CodeType.replace() method

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: Fix in Hypothesis: https://github.com/HypothesisWorks/hypothesis/commit/8f47297fa2e19c426a42b06bb5f8bf1406b8f0f3#diff-a097452b8ffe8323641ac335fbf9 -- ___ Python tracker

[issue37032] Add CodeType.replace() method

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: ipython fix: https://github.com/ipython/ipython/commit/248128dfaabb33e922b1e36a298fd7ec0c730069 -- ___ Python tracker ___ ___

[issue29779] New environment variable PYTHONHISTORY

2019-05-24 Thread Zackery Spytz
Zackery Spytz added the comment: PR 473 was closed by its author. I have created a new pull request (PR 13208) that addresses all of Berker Peksag's comments on the old PR. Please have a look. -- nosy: +ZackerySpytz versions: +Python 3.8 -Python 3.7 _

[issue36045] builtins.help function is not much help with async functions

2019-05-24 Thread miss-islington
miss-islington added the comment: New changeset 2a37f8f55b543589cc77a67b5cd17cbd9d0311c9 by Miss Islington (bot) (Dan Rose) in branch 'master': bpo-36045: builtins.help() now prefixes `async` for async functions (GH-12010) https://github.com/python/cpython/commit/2a37f8f55b543589cc77a67b5cd17

[issue36045] builtins.help function is not much help with async functions

2019-05-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue37032] Add CodeType.replace() method

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: > It's not like Python 3.8 is the first type in Python history that code > constructor changed. Oops, typo: It's not like Python 3.8 is the first *time* in Python history that the code constructor changed. -- ___

[issue37032] Add CodeType.replace() method

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: It's not like Python 3.8 is the first type in Python history that code constructor changed. The PyCode_New() function slowly growed from 3 parameters in 1990 to 16 paramters in 2019 :-) History of PyCode_New(). New "posonlyargcount" parameter: commit 8c7

[issue37031] signalmodule.c: reuse runtime->main_thread

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset d8613dc86f4c7acd3e2598095c466fe9dc0ad27c by Victor Stinner in branch 'master': bpo-37031: Reuse _PyRuntime.main_thread in signalmodule.c (GH-13538) https://github.com/python/cpython/commit/d8613dc86f4c7acd3e2598095c466fe9dc0ad27c -- _

[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 b4bdecd0fc9112b60a81fec171bc78bc13f2f59c by Victor Stinner in branch 'master': bpo-36710: Add tstate parameter in errors.c (GH-13540) https://github.com/python/cpython/commit/b4bdecd0fc9112b60a81fec171bc78bc13f2f59c -- ___

[issue37032] Add CodeType.replace() method

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: Fix in Cloud Pickle: https://github.com/cloudpipe/cloudpickle/commit/b9dc17fc5f723ffbfc665295fafdd076907c0a93 -- ___ Python tracker ___ _

[issue37014] [First easy issue] fileinput module should document that openhook and mode are ignored when reading from stdin

2019-05-24 Thread Michele Angrisano
Change by Michele Angrisano : -- keywords: +patch pull_requests: +13457 stage: -> patch review ___ Python tracker ___ ___ Python-bu

[issue37014] [First easy issue] fileinput module should document that openhook and mode are ignored when reading from stdin

2019-05-24 Thread Michele Angrisano
Michele Angrisano added the comment: I've just made a PR for this issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue36886] Failed to construct CodeType on Python-3.8.0a4

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-37032 to add a new CodeType.replace() helper which help projects to be more future-proof (no longer break if CodeType gets yet another parameter). -- nosy: +vstinner ___ Python tracker

[issue37032] Add CodeType.replace() method

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: See bpo-36886 "Failed to construct CodeType on Python-3.8.0a4" for other failures caused by the addition of the "posonlyargcount" parameter to code constructor. -- ___ Python tracker

[issue37029] PyObject_Free is O(N) where N = # of arenas

2019-05-24 Thread Inada Naoki
Change by Inada Naoki : -- title: PyObject_Free is O(N^2) where N = # of arenas -> PyObject_Free is O(N) where N = # of arenas ___ Python tracker ___ _

[issue36379] nb_inplace_pow is always called with an invalid argument

2019-05-24 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +13458 stage: needs patch -> patch review ___ Python tracker ___ ___ Py

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

2019-05-24 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13459 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue37031] signalmodule.c: reuse runtime->main_thread

2019-05-24 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue37031] signalmodule.c: reuse runtime->main_thread

2019-05-24 Thread STINNER Victor
STINNER Victor added the comment: New changeset b49858b4b7b4c9d85ef6946ad020f83e4fa1caa7 by Victor Stinner in branch 'master': bpo-37031: Fix PyOS_AfterFork_Child() (GH-13537) https://github.com/python/cpython/commit/b49858b4b7b4c9d85ef6946ad020f83e4fa1caa7 -- _

[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: > This completely breaks building extension modules on Windows-based platforms > like Cygwin and MinGW, where it is necessary when building even shared > libraries for all global symbols to resolvable at link time. C extensions are always linked to libpython

[issue36379] nb_inplace_pow is always called with an invalid argument

2019-05-24 Thread Zackery Spytz
Zackery Spytz added the comment: I've created a PR for this issue (with tests). -- nosy: +ZackerySpytz ___ Python tracker ___ ___ P

[issue36921] Deprecate yield from and @coroutine in asyncio

2019-05-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue36802] Revert back StreamWriter awrite/aclose but provide await writer.write() and await writer.close()

2019-05-24 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36461] timeit: Additional changes for autorange

2019-05-24 Thread Cheryl Sabella
Cheryl Sabella added the comment: @steven.daprano, would you be able to review the pull requests based on your original concept for this change? Thank you! -- assignee: Mariatta -> nosy: -Mariatta ___ 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, ConnectionAbor

[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

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

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

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

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

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

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

[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: https://mail.p

[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) https://github.com/python/cpython/commit/c994c8fc196a167c57c8850e8abdee170d36

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

[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

[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: https://mail.py

[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 /usr/lib64/p

[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: https://m

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

[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: /opt/py38dbg/lib/pkgconfig

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

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

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

[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: https://mail.p

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

[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

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

[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: https://m

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

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

[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

[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 "@rpath/libpython3.7m.dy

[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: https://m

[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

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

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

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

[issue27860] Improvements to ipaddress module

2019-05-24 Thread Jack
Change by Jack : -- nosy: +Jacktose ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[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

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

[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 ___ ___ Python-bugs-lis

  1   2   >