[issue29301] decimal: Use FASTCALL and/or Argument Clinic

2019-03-20 Thread STINNER Victor
STINNER Victor added the comment: > Also, the performance improvements are in argument parsing, but not when you > have numerical code like a * b, where a and b are already decimals. If the function call takes around 100 ns, the benefit of FASTCALL and the new more efficient function to

[issue36375] PEP 499 implementation: "python -m foo" binds the main module as both __main__ and foo in sys.modules

2019-03-20 Thread Cameron Simpson
Cameron Simpson added the comment: I've withdrawn the PR; I hadn't run the full test suite and there are things to fix. - Cameron -- ___ Python tracker ___

[issue36385] Add ``elif`` sentence on to avoid multiple ``if``

2019-03-20 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch pull_requests: +12430 stage: -> patch review ___ Python tracker ___ ___

[issue36312] Invalid flag for some code page decoders

2019-03-20 Thread miss-islington
miss-islington added the comment: New changeset 74829b7323642739cdc439c2c88d406daf92075b by Miss Islington (bot) in branch '3.7': bpo-36312: Fix decoders for some code pages. (GH-12369) https://github.com/python/cpython/commit/74829b7323642739cdc439c2c88d406daf92075b -- nosy:

[issue33950] IDLE htest: remove spec for deleted tabbedpages.py

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28523] Idlelib.configdialog: use 'color' insteadof 'colour'

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36256] parser module fails on legal input

2019-03-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +12429 stage: -> patch review ___ Python tracker ___ ___

[issue36385] Add ``elif`` sentence on to avoid multiple ``if``

2019-03-20 Thread Emmanuel Arias
New submission from Emmanuel Arias : Currently, when arguments on Parser/asdl_c.py are parsed ìf sentence is used. This PR(https://github.com/python/cpython/pull/12478) Propose to use elif to avoid multiple evaluting of the ifs. -- messages: 338519 nosy: eamanu priority: normal

[issue36385] Add ``elif`` sentence on to avoid multiple ``if``

2019-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch. -- nosy: +rhettinger resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36385] Add ``elif`` sentence on to avoid multiple ``if``

2019-03-20 Thread miss-islington
miss-islington added the comment: New changeset ed5e29cba500c2336aacdb7c77953f1064235b72 by Miss Islington (bot) (Emmanuel Arias) in branch 'master': bpo-36385: Add ``elif`` sentence on to avoid multiple ``if`` (GH-12478)

[issue36323] IDLE: always display full grep path

2019-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks. I somehow never marked it for IDLE. Using groupby components, I discovered another +-10 and marked them and included in my list. -- ___ Python tracker

[issue36355] Remove documentation and internal use of the *RESTRICTED constants for PyMemberDef's flags field

2019-03-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: Sorry, that should have been "it gives the impression they do something when reading the *source code*" -- ___ Python tracker ___

[issue36085] Enable better DLL resolution

2019-03-20 Thread Steve Dower
Steve Dower added the comment: I think we'll be keeping Win7 with the KB. However, we've discovered in the PR that changing the default DLL lookup may cause Python to crash when accessing HKEY_PERFORMANCE_DATA (which fails to delay-load a DLL). This occurs because accessing that key

[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2019-03-20 Thread Joel Croteau
New submission from Joel Croteau : I understand to a certain extent the logic in not allowing IPv4 octets that might ambiguously be octal, but in practice, it just seems like it creates additional parsing hassle needlessly. I have never in many years of working on many networked systems seen

[issue36355] Remove documentation and internal use of the *RESTRICTED constants for PyMemberDef's flags field

2019-03-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: Yes, they're set. They're never *read* anywhere. My suggestion was to stop setting them (because it gives the impression they do something when reading the docs, when in fact they do nothing), and remove them from the docs. --

[issue29301] decimal: Use FASTCALL and/or Argument Clinic

2019-03-20 Thread STINNER Victor
STINNER Victor added the comment: Hum, after reading again my previous, I'm not sure that my intent was clear. I'm fine with Stefan rejecting the optimization. He is the maintainer of decimal. I just wanted to comment what he said ;-) -- ___

[issue28514] Python (IDLE?) freezes on file save on Windows

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE nosy: +terry.reedy ___ Python tracker ___ ___

[issue18316] Idle 2.7: update to simplify cross-version patches

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27372] Test_idle should stop changing locale

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14934] generator objects can clear their weakrefs before being resurrected

2019-03-20 Thread Windson Yang
Windson Yang added the comment: The fixed looks easy, we call `PyObject_CallFinalizerFromDealloc` before PyObject_ClearWeakRefs. But I can't come up with the use case for testing when generator resurrects from `PyObject_CallFinalizer`. Any ideas? --

[issue36386] segfault on PyUnicode_DecodeFSDefaultAndSize for uninitialized Py

2019-03-20 Thread anthony shaw
New submission from anthony shaw : If for whatever reason, Py_Initialize() has not been run or failed to run, any call to Py_CompileStringFlags will call PyUnicode_DecodeFSDefault and the reference to interp will be NULL. There is currently no null reference check in

[issue35564] [DOC] Sphinx 2.0 will require master_doc variable set in conf.py

2019-03-20 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +12414 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36276] Python urllib CRLF injection vulnerability

2019-03-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: I am going to make a note that the Superseder 1) https://bugs.python.org/issue30458 - is listed only as pending request for 2.7 with the intention to raise an Exception. However, this bug demonstrates a vulnerability in all versions of Python (including

[issue35564] [DOC] Sphinx 2.0 will require master_doc variable set in conf.py

2019-03-20 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +12413 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-20 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12416 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36378] Add support to load from paths to json.load

2019-03-20 Thread Dani Fojo
New submission from Dani Fojo : Add support to json.load to read from a string or Path object containing the path to a json file. Many libraries (like Numpy) support this behavior. -- components: Library (Lib) messages: 338442 nosy: Dani Fojo priority: normal severity: normal status:

[issue36374] A possible null pointer dereference in compile.c's merge_consts_recursive()

2019-03-20 Thread miss-islington
miss-islington added the comment: New changeset 9b4a1b1e23d4a7cb18ad26f405bdc741af69f342 by Miss Islington (bot) (Zackery Spytz) in branch 'master': bpo-36374: Fix a possible null pointer dereference (GH-12449) https://github.com/python/cpython/commit/9b4a1b1e23d4a7cb18ad26f405bdc741af69f342

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-20 Thread Inada Naoki
Inada Naoki added the comment: > Also PC/winreg.c. In this case winreg.SetValue() needs a length of size DWORD > instead of ssize_t. As MSDN, cbData is ignored. https://docs.microsoft.com/en-us/windows/desktop/api/winreg/nf-winreg-regsetvaluew Can I skip overflow check? If I can not, what

[issue35564] [DOC] Sphinx 2.0 will require master_doc variable set in conf.py

2019-03-20 Thread Julien Palard
Julien Palard added the comment: New changeset 07b8018d75f3d4495708cf1d4175f33b40e13d30 by Julien Palard in branch '2.7': [2.7] bpo-35564: add master_doc='contents' to conf.py (GH-12462) https://github.com/python/cpython/commit/07b8018d75f3d4495708cf1d4175f33b40e13d30 --

[issue36355] Remove documentation and internal use of the *RESTRICTED constants for PyMemberDef's flags field

2019-03-20 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Josh, I don't know for the uselessness or not of these macros, but these macros are used. RESTRICTED is used in Objects/classobject.c and Objects/funcobject.c PY_WRITE_RESTRICTED is used in Objects/funcobject.c and Objects/methodobject.c -- nosy:

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12423 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36370] "Fatal Python error: Cannot recover from stack overflow" from SymPy tests

2019-03-20 Thread Stefan Krah
Stefan Krah added the comment: It can still be an issue in CPython, like in #14537. -- ___ Python tracker ___ ___ Python-bugs-list

[issue36382] socket.getfqdn() returns domain "mshome.net"

2019-03-20 Thread Steve Dower
Steve Dower added the comment: We just return the result of GetComputerNameEx [1] here - we don't use WMI at all (and given the complexities, we are not going to start). Are you able to provide any more information? In particular, if the documentation for GetComputerNameEx (below) helps you

[issue36381] Deprecate "#" argument format without PY_SSIZE_T_CLEAN

2019-03-20 Thread STINNER Victor
Change by STINNER Victor : -- title: Preapre for mandatory PY_SSIZE_T_CLEAN -> Deprecate "#" argument format without PY_SSIZE_T_CLEAN ___ Python tracker ___

[issue36379] nb_inplace_pow is always called with an invalid argument

2019-03-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: object.__ipow__ is documented to take an optional third argument (though there is no way to pass it aside from explicitly calling __ipow__ directly since there is no syntax support for three-arg pow, in place or otherwise), so it's not some incompatibility

[issue36301] Add _Py_PreInitialize() function

2019-03-20 Thread STINNER Victor
STINNER Victor added the comment: In term of API, we get something like: _PyInitError err; _PyPreConfig preconfig = _PyPreConfig_INIT; preconfig.utf8_mode = 1; preconfig.allocator = "malloc"; _PyInitError err = _Py_PreInitializeFromPreConfig(); if

[issue20309] Not all method descriptors are callable

2019-03-20 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: See also PEP 579 (issue 11) and the thread https://mail.python.org/pipermail/python-ideas/2018-June/051572.html -- nosy: +jdemeyer ___ Python tracker

[issue36380] collections.Counter in-place operators are unexpectedly slow

2019-03-20 Thread Josh Rosenberg
Josh Rosenberg added the comment: @Nikita: Your examples aren't unexpected at all, per the documented behavior: >Several mathematical operations are provided for combining Counter objects to >produce multisets (counters that have counts greater than zero). Addition and >subtraction combine

[issue36370] "Fatal Python error: Cannot recover from stack overflow" from SymPy tests

2019-03-20 Thread Stefan Krah
Stefan Krah added the comment: The tests pass here on Linux with 3.8 (cc60cdd9c4) and a very low sys.setrecursionlimit(150). The fail properly with RecursionError at sys.setrecursionlimit(125). So I guess we'd need a gdb stack trace from OS X in case there's a CPython issue that is OS X

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-20 Thread STINNER Victor
STINNER Victor added the comment: > Let's close this long living issue. Thanks INADA-san for fixing last issues and for creating the deprecation issue! -- ___ Python tracker

[issue36382] socket.getfqdn() returns domain "mshome.net"

2019-03-20 Thread Markus
Markus added the comment: Dear Steve, in fact not a Python bug at all. I used 2 commands: ipconfig /release ipconfig /renew and rebootet. This fixed the issue, for now. Also, I found this domain in c:\Windows\System32\drivers\etc\hosts.ics Unclear who created that entry. Documenting

[issue36381] Preapre for mandatory PY_SSIZE_T_CLEAN

2019-03-20 Thread STINNER Victor
STINNER Victor added the comment: > * 3.8: PendingDeprecationWarning ... Or maybe use directly DeprecationWarning? :-) https://discuss.python.org/t/pendingdeprecationwarning-is-really-useful/1038 -- ___ Python tracker

[issue36370] "Fatal Python error: Cannot recover from stack overflow" from SymPy tests

2019-03-20 Thread Stefan Krah
Stefan Krah added the comment: This occurs when handling a recursion error uses more than 50 extra nested function calls: if (tstate->overflowed) { if (tstate->recursion_depth > recursion_limit + 50) { /* Overflowing while handling an overflow. Give up. */

[issue36370] "Fatal Python error: Cannot recover from stack overflow" from SymPy tests

2019-03-20 Thread Stefan Krah
Stefan Krah added the comment: Whoops, I tested the wrong branch, getting a proper abort() now. :) -- ___ Python tracker ___ ___

[issue35564] [DOC] Sphinx 2.0 will require master_doc variable set in conf.py

2019-03-20 Thread Julien Palard
Change by Julien Palard : -- pull_requests: +12415 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36374] A possible null pointer dereference in compile.c's merge_consts_recursive()

2019-03-20 Thread SilentGhost
Change by SilentGhost : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35564] [DOC] Sphinx 2.0 will require master_doc variable set in conf.py

2019-03-20 Thread Julien Palard
Julien Palard added the comment: New changeset 756cfd88920c2349d4546024856c406409b0ab7b by Julien Palard in branch '3.7': [3.7] bpo-35564: add master_doc='contents' to conf.py (GH-12460) https://github.com/python/cpython/commit/756cfd88920c2349d4546024856c406409b0ab7b --

[issue36378] Add support to load from paths to json.load

2019-03-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This expands the API where json.load now only accepts open file objects to support str and pathlike objects. This was discussed in https://mail.python.org/pipermail/python-ideas/2017-March/045303.html where there were alternatives proposed as

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-20 Thread Inada Naoki
Inada Naoki added the comment: New changeset e9a1dcb4237cb2be71ab05883d472038ea9caf62 by Inada Naoki in branch 'master': bpo-8677: use PY_SSIZE_T_CLEAN in socketmodule.c (GH-12467) https://github.com/python/cpython/commit/e9a1dcb4237cb2be71ab05883d472038ea9caf62 --

[issue36373] asyncio.gather: no docs for deprecated loop parameter

2019-03-20 Thread Emmanuel Arias
Emmanuel Arias added the comment: Hi, Reading the asyncio.gather code not seem to be deprecrated. loop is used on a lot of line of code. Maybe, the deprecate idea is on other place where I don't know. -- nosy: +eamanu ___ Python tracker

[issue33406] [ctypes] increase the refcount of a callback function

2019-03-20 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36378] Add support to load from paths to json.load

2019-03-20 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12417 stage: -> patch review ___ Python tracker ___ ___

[issue36377] Python 'datastructures.html' docs page needs improvement because of ambiguity

2019-03-20 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch pull_requests: +12420 stage: -> patch review ___ Python tracker ___ ___

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-20 Thread STINNER Victor
STINNER Victor added the comment: PC/winreg.c: if (value_length >= INT_MAX) { PyErr_SetString(PyExc_OverflowError, "the value is too long"); return NULL; } PY_DWORD_MAX should be used here. It's twice larger than INT_MAX ;-) --

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12422 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36378] Add support to load from paths to json.load

2019-03-20 Thread SilentGhost
Change by SilentGhost : -- nosy: +ezio.melotti, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36378] Add support to load from paths to json.load

2019-03-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36374] A possible null pointer dereference in compile.c's merge_consts_recursive()

2019-03-20 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36324] Inverse cumulative normal distribution function

2019-03-20 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Tue, Mar 19, 2019 at 01:06:45AM +, Steven D'Aprano wrote: > Later I will do some spot checks against the results returned by the Nspire > calculator Looks good to me, they agree to 6 decimal places in my tests. Following Mark's earlier

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-20 Thread Inada Naoki
Inada Naoki added the comment: New changeset d5f18a63cc2dfe8d0adec8bce384a8c569b0f3dc by Inada Naoki in branch 'master': bpo-8677: use PY_SSIZE_T_CLEAN in PC/winreg.c (GH-12466) https://github.com/python/cpython/commit/d5f18a63cc2dfe8d0adec8bce384a8c569b0f3dc --

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-20 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12419 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-20 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12418 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-20 Thread Inada Naoki
Inada Naoki added the comment: New changeset c5a216e0b97712bf19b4a6b7655c6bf22a367edd by Inada Naoki in branch 'master': bpo-8677: use PY_SSIZE_T_CLEAN in Modules/_gdbmodule.c (GH-12464) https://github.com/python/cpython/commit/c5a216e0b97712bf19b4a6b7655c6bf22a367edd --

[issue36347] Renaming the constants for the .flags of PyMemberDef

2019-03-20 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi @Josh, In the PR, I don't remove READONLY. READONLY becomes an alias of PY_READONLY. I think I should split my PR in two PRs 1. Improve the current documentation and the code 2. Change the code in the Modules/ with the new macros. @Serhyi what is your

[issue30668] DOC: missing word in license.rst

2019-03-20 Thread Cheryl Sabella
Cheryl Sabella added the comment: The first note was fixed, but the second still remains. Assigning to @Mariatta for the sprints. -- assignee: docs@python -> Mariatta nosy: +Mariatta -christian.heimes, docs@python stage: -> needs patch versions: +Python 3.8 -Python 3.7

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-20 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12421 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-20 Thread Inada Naoki
Inada Naoki added the comment: New changeset cc60cdd9c44dd15e441603ee5f78e09ea3e76929 by Inada Naoki in branch 'master': bpo-8677: use PY_DWORD_MAX instead of INT_MAX (GH-12469) https://github.com/python/cpython/commit/cc60cdd9c44dd15e441603ee5f78e09ea3e76929 --

[issue35564] [DOC] Sphinx 2.0 will require master_doc variable set in conf.py

2019-03-20 Thread Ned Deily
Ned Deily added the comment: New changeset 4508bc37dd80c71adfaa0925a67c438389817076 by Ned Deily (Julien Palard) in branch '3.6': [3.6] bpo-35564: add master_doc='contents' to conf.py (GH-11290). (GH-12461) https://github.com/python/cpython/commit/4508bc37dd80c71adfaa0925a67c438389817076

[issue36382] socket.getfqdn() returns domain "mshome.net"

2019-03-20 Thread Markus
Markus added the comment: I found the IP of mshome.net in an Ethernet adapter "vEthernet" It seems that this adapter stems from Hyper-V. It therefore seems that socket.getfqdn() reported the wrong network adapter once. Because I cannot reproduce this, I leave this issue closed. --

[issue36368] server process of shared_memory shuts down if KeyboardInterrupt

2019-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry - I meant make a *PR* out of it :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36380] collections.Counter in-place operators are unexpectedly slow

2019-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't want to complexify the normal case. Please don't go down the path of turning something simple into a mess. Because counters are just a dict subclass, users are free to make updates in any way they want. --

[issue21625] Make help() beginner helpful when no PAGER or LESS variable

2019-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I recently opened Python in a Mac Terminal (bash) window, tried help(ob), and being a beginner in this situation, had the same terrible frustrating experience. I am leaving this open to implement David Murray's suggestion and changed the title accordingly.

[issue31329] Add idlelib module entry to doc

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE versions: +Python 3.8 -Python 3.6 ___ Python tracker ___

[issue35866] concurrent.futures deadlock

2019-03-20 Thread Hugh Redelmeier
Hugh Redelmeier added the comment: @jwilk: thanks for creating cf-deadlock.py I can replicate the test program hang on Fedora 29 with python3-3.7.2-4.fc29.x86_64 The test program hasn't yet hung on Fedora 29 with older packages, in particular python3-3.7.1-4.fc29.x86_64 My interest is

[issue36379] nb_inplace_pow is always called with an invalid argument

2019-03-20 Thread Stefan Krah
Stefan Krah added the comment: Like Josh I don't quite understand the problem description. This for example works: >>> class C(int): ... def __ipow__(self, other, mod=None): ... return pow(self, other, mod) ... >>> >>> x = C(10) >>> x 10 >>> x **= 3 >>> x 1000 -- nosy:

[issue36379] nb_inplace_pow is always called with an invalid argument

2019-03-20 Thread Zuzu_Typ
Zuzu_Typ added the comment: This isn't about the CPython Interpreter, it's about the C-API, the APIT for writing c-extensions for Python. I know it works in CPython. -- ___ Python tracker

[issue36368] server process of shared_memory shuts down if KeyboardInterrupt

2019-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your patch sounds good on the principle, but can you make a patch out of it? -- ___ Python tracker ___

[issue36370] Check for PyErr_Occurred() after PyImport_GetModule().

2019-03-20 Thread Stefan Krah
Change by Stefan Krah : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35771] IDLE: Fix tooltip Hovertiptest failure

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36383] In Windows 10 virtual environments distutils.sysconfig.get_python_inc() reports base Python include directory

2019-03-20 Thread Mark Campanelli
New submission from Mark Campanelli : On Windows 10 64bit, using virtualenv in Python 2.7.15 or venv in Python 3.7.2, calling distutils.sysconfig.get_python_inc() returns the path to the include directory for the (respective) Python base installation instead of the include directory

[issue36370] Check for PyErr_Occurred() after PyImport_GetModule().

2019-03-20 Thread Stefan Krah
Stefan Krah added the comment: Actually I just see that this behavior of PyImport_GetModule() is documented: "Return the already imported module with the given name. If the module has not been imported yet then returns NULL but does not set an error. Returns NULL and sets an error if the

[issue36380] collections.Counter in-place operators are unexpectedly slow

2019-03-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36380] collections.Counter in-place operators are unexpectedly slow

2019-03-20 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi what do you think of a patch to this effect that would speed up operations without changing the current semantics? diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index cff75a48d6..fe5d5b2dca 100644 --- a/Lib/collections/__init__.py

[issue35467] IDLE: unrequested pasting into Shell after restart

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35675] IDLE: Refactor config_key module.

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21647] Idle unittests: make gui, mock switching easier.

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue36370] Check for PyErr_Occurred() after PyImport_GetModule().

2019-03-20 Thread Brett Cannon
Brett Cannon added the comment: Pulling in Eric and Nick as they have played w/ the C API more recently. -- nosy: +eric.snow, ncoghlan ___ Python tracker ___

[issue36342] test_venv failure when executed by test_multiprocessing and the platform lacks a functional sem_open()

2019-03-20 Thread Brett Cannon
Brett Cannon added the comment: I guess my confusion comes from the fact that test_venv in isolation is a totally fine test suite, it just fails when test_multiprocessing runs it due to something multiprocessing-related. I've tried tweaking the title to reflect the fact that it's a

[issue31329] Add idlelib module entry to doc

2019-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: See also #14944, about the Using doc. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue21960] Better path handling in Idle find in files

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36380] collections.Counter in-place operators are unexpectedly slow

2019-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: As Josh pointed out, this is how counters are documented and tested to work, so it is an unchangeable decision (i.e. it would break code that relying on the saturating arithmetic feature). Accordingly, I'm marking this as closed, not a bug. On the plus

[issue36370] Check for PyErr_Occurred() after PyImport_GetModule().

2019-03-20 Thread Stefan Krah
Stefan Krah added the comment: The issue is that PyImport_GetModule() can legitimately NULL (not found) but also NULL after an error occurred in PyDict_GetItemWithError(). So one (quick and dirty) approach that fixes this abort() is: diff --git a/Python/import.c b/Python/import.c index

[issue33964] IDLE maxosc.overrideRootMenu: remove unused menudict

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy components: +IDLE versions: -Python 3.6 ___ Python tracker ___ ___

[issue21696] Idle: test configuration files

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue21588] Idle: make editor title bar user configurable

2019-03-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +IDLE versions: +Python 3.7, Python 3.8 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue14944] Setup & Usage documentation for pydoc, IDLE, & 2to3

2019-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: idle.html, derived from idle.rst, is now the IDLE help file. pip also has pip3 command; perhaps ensurepip should be mentioned. -- versions: +Python 3.8 -Python 3.6 ___ Python tracker

[issue36379] nb_inplace_pow is always called with an invalid argument

2019-03-20 Thread Zuzu_Typ
Zuzu_Typ added the comment: Even though __ipow__ might be documented to take a third argument, if you build an inplace_pow function using the C-API, you can only pass one argument to it. You can see that in the attached screenshot. The example class shown in the screenshot can be found

[issue36379] nb_inplace_pow is always called with an invalid argument

2019-03-20 Thread Zuzu_Typ
New submission from Zuzu_Typ : Using the C-API, the inplace_pow numbermethod is always called with the third argument pointing to an invalid address. The reason is likely that self.__ipow__ only takes one argument, resulting in a binaryfunc (self, arg), though inplace_pow is a ternaryfunc.

[issue36367] tokenizer.c memory leak in case of realloc failure

2019-03-20 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 2.7, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2019-03-20 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12425 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >