[issue40003] test.regrtest: add an option to run test.bisect_cmd on failed tests, use it on Refleaks buildbots

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

[issue40077] Convert static types to PyType_FromSpec()

2020-03-27 Thread Dong-hee Na
Dong-hee Na added the comment: > And I would prefer to first see the overhead of PyType_FromSpec(), and > discuss the advantages and drawbacks. Should we stop the work until the overhead is measured? -- ___ Python tracker

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-27 Thread Avram
Avram added the comment: Honestly, I'm not sure if any of the other magic methods behave this way. It would take a little research or someone more familiar with it. Here's more info about how __bool__ behaves. https://docs.python.org/3/reference/datamodel.html#object.__bool__ --

[issue40077] Convert static types to PyType_FromSpec()

2020-03-27 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +18565 pull_request: https://github.com/python/cpython/pull/19202 ___ Python tracker ___

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the example I didn't know hasattr can return False to return a value when the magicmethod was accessed. I will wait for others opinion on this then. -- ___ Python tracker

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-27 Thread Avram
Avram added the comment: That is not necessarily the same thing, hence why there was a bug. >>> hasattr(object, '__bool__') False >>> bool(object) True I think you may be right that magic methods shouldn't magically appear for wrapped objects, except those that do magically appear, like

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > What may make more sense for some magic methods is to call the underlying > object and use the return value or raise any exception that occurs. Sorry, isn't that what the previous issue did? It tries to return the wrapped object attribute and

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-27 Thread Avram
Avram added the comment: Ah, I see, yes, the documentation is a bit inconsistent. What may make more sense for some magic methods is to call the underlying object and use the return value or raise any exception that occurs. For example: __bool__ return value is bool(mock._mock_wraps) __int__

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It's supposed to raise an AttributeError if the attribute is not present. The previous case was that magicmethods were not wrapped returning configured values. So this conflicts with the documentation returning a default value when not present

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-27 Thread Avram
Avram added the comment: They are documented. That said, the subsection section could use a header. https://docs.python.org/3/library/unittest.mock.html#magic-mock Patch looks good! Can't think of any other test scenarios right now. -- ___ Python

[issue36085] Enable better DLL resolution

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

[issue40091] Crash in logging._after_at_fork_child_reinit_locks()

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: By the way, I'm not sure about the error handling code path: for handler in _at_fork_reinit_lock_weakset: try: handler.createLock() except Exception as err: # Similar to what PyErr_WriteUnraisable does.

[issue28859] os.path.ismount sometimes raises FileNotFoundError on Windows

2020-03-27 Thread Steve Dower
Steve Dower added the comment: Reminding us on here is helpful (for me, anyway). I just left a couple of suggestions to make sure we handle all the cases. It's important when you change or add tests that you make sure the test fails without your fix - otherwise it might not be testing the

[issue40094] Add os._wait_status_to_returncode() helper function

2020-03-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18564 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19201 ___ Python tracker ___

[issue40094] Add os._wait_status_to_returncode() helper function

2020-03-27 Thread STINNER Victor
New submission from STINNER Victor : os.wait() and os.waitpid() returns a "status" number which is not easy to return. It's made of two information: (how the process completed, value). The usual way to handle it is to use a code which looks like: if os.WIFSIGNALED(status):

[issue40093] ThreadPoolExecutor with wait=True shuts down too early

2020-03-27 Thread fireattack
New submission from fireattack : Example ``` from concurrent.futures import ThreadPoolExecutor from time import sleep def wait_on_future(): sleep(1) print(f.done()) # f is not done obviously f2 = executor.submit(pow, 5, 2) print(f2.result()) sleep(1) executor =

[issue38002] 'ModifiedInterpreter' object has no attribute 'interp'

2020-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: You tried to run editor code and ran into a uncaught idle-process bug, which causes an exit. pyshell.ModifiedInterpreter.runcode: 760-1 if self.tkconsole.executing: self.interp.restart_subprocess() The immediate bug is that 'self' *is*

[issue40049] tarfile cannot extract from stdin

2020-03-27 Thread Danijel
Danijel added the comment: For me, this patch solves my problems. Thank you. -- ___ Python tracker ___ ___ Python-bugs-list

[issue36085] Enable better DLL resolution

2020-03-27 Thread David Miguel Susano Pinto
David Miguel Susano Pinto added the comment: I have just found out that commit 2438cdf0e93 which added the winmode argument and the documentation for it disagree. Documentation states that default is zero while the real default in code is None. I have opened PR 19167 on github to address it

[issue38804] Regular Expression Denial of Service in http.cookiejar

2020-03-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +larry priority: normal -> release blocker versions: -Python 2.7, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

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

2020-03-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6467134307cf01802c9f1c0384d8acbebecbd400 by Miro Hrončok in branch 'master': bpo-36543: What's new: Document how to replace xml.etree.cElementTree (GH-19188) https://github.com/python/cpython/commit/6467134307cf01802c9f1c0384d8acbebecbd400

[issue39812] Avoid daemon threads in concurrent.futures

2020-03-27 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39812] Avoid daemon threads in concurrent.futures

2020-03-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset b61b818d916942aad1f8f3e33181801c4a1ed14b by Kyle Stanley in branch 'master': bpo-39812: Remove daemon threads in concurrent.futures (GH-19149) https://github.com/python/cpython/commit/b61b818d916942aad1f8f3e33181801c4a1ed14b --

[issue38819] Redirecting stdout

2020-03-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Interpreter Core -IDLE title: The redirect -> Redirecting stdout ___ Python tracker ___

[issue38636] IDLE regression: toggle tabs and change indent width functions

2020-03-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40068] test_threading: ThreadJoinOnShutdown.test_reinit_tls_after_fork() crash with Python 3.8 on AIX

2020-03-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18562 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19200 ___ Python tracker ___

[issue39325] Original window focus when opening IDLE by double clicking Python file Mac

2020-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: In mac Terminal, 'python3 -m idlelib tem.py' opens tem.py without shell, just as on Windows. -- ___ Python tracker ___

[issue40045] Make "dunder" method documentation easier to locate

2020-03-27 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I think this is resolved. Someone can re-open if they feel discontent. Thanks @javadmokhtari for the patch. -- stage: patch review -> resolved ___ Python tracker

[issue40045] Make "dunder" method documentation easier to locate

2020-03-27 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset c3622b2dcc9278900a7e3cbef12edfa83a8728ed by Miss Islington (bot) in branch '3.7': bpo-40045: Make "dunder" method documentation easier to locate (GH-19153) (GH-19199)

[issue39325] Original window focus when opening IDLE by double clicking Python file Mac

2020-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Double clicking in finder with current Mohave (10.14.6?) does same as described here. See Ned's comment (msg357667) for #38946. -- ___ Python tracker

[issue40045] Make "dunder" method documentation easier to locate

2020-03-27 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset bb852266b77ffeeb09a42847c907829eec6d5cb5 by Miss Islington (bot) in branch '3.8': bpo-40045: Make "dunder" method documentation easier to locate (GH-19153) (GH-19198)

[issue40045] Make "dunder" method documentation easier to locate

2020-03-27 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: New changeset 5f9c131c099d6675d1a9d0228497865488afd548 by Javad Mokhtari in branch 'master': bpo-40045: Make "dunder" method documentation easier to locate (#19153) https://github.com/python/cpython/commit/5f9c131c099d6675d1a9d0228497865488afd548

[issue40045] Make "dunder" method documentation easier to locate

2020-03-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +18561 pull_request: https://github.com/python/cpython/pull/19199 ___ Python tracker ___

[issue40045] Make "dunder" method documentation easier to locate

2020-03-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +18560 pull_request: https://github.com/python/cpython/pull/19198 ___ Python tracker

[issue39133] threading lib. working improperly on idle window

2020-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Insufficient information to determine even if there is a bug. -- resolution: -> later stage: -> resolved status: open -> closed type: crash -> behavior ___ Python tracker

[issue39325] Original window focus when opening IDLE by double clicking Python file Mac

2020-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, I believe that this issue results from peculiarities of how macOS runs apps. Insight from you would be appreciated. macOS Sierra 10.2.8?, Python 3.7.3 (Did you use python.org installer?) On my Win10, multiple IDLE windows are cascaded to the right and

[issue40084] HTTPStatus has incomplete dir() listing

2020-03-27 Thread Ethan Furman
Ethan Furman added the comment: Adding to the existing dir() is as easy as writing one's own __dir__. I think using the instance dict and omitting any keys with a leading underscore will do the right thing most of the time. The fix should into `Enum` and not just `IntEnum` as other

[issue40018] test_ssl fails with OpenSSL 1.1.1e

2020-03-27 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: And there is already a meta-issue created by cheimes for 3.0.0: https://bugs.python.org/issue38820 -- ___ Python tracker ___

[issue40091] Crash in logging._after_at_fork_child_reinit_locks()

2020-03-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18559 pull_request: https://github.com/python/cpython/pull/19195 ___ Python tracker ___

[issue40090] The referenced RFC for the json module should be corrected to rfc8259

2020-03-27 Thread Ama Aje My Fren
Change by Ama Aje My Fren : -- keywords: +patch pull_requests: +18558 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19197 ___ Python tracker ___

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: > Having interpreters interfering with each other's objects is almost certain > to lead to race conditions. To be honest, I don't understand the purpose of this issue. Some messages are talking about pending calls, some others are talking about channels,

[issue39984] Move pending calls from _PyRuntime to PyInterpreterState

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: > Awesome! Thanks for doing this, Victor. I'll take a look when I can and > adjust the changes for bpo-33608. If you'll recall, I made a similar change > as part of the solution for that issue, which we later reverted due to > problems we discovered with

[issue40092] Crash in _PyThreadState_DeleteExcept() at fork in the process child

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-40089: "Add _at_fork_reinit() method to locks". -- ___ Python tracker ___ ___

[issue40089] Add _at_fork_reinit() method to locks

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-40092: "Crash in _PyThreadState_DeleteExcept() at fork in the process child". -- ___ Python tracker ___

[issue40068] test_threading: ThreadJoinOnShutdown.test_reinit_tls_after_fork() crash with Python 3.8 on AIX

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: I created 3 follow-up issues: * bpo-40089: Add _at_fork_reinit() method to locks * bpo-40091: Crash in logging._after_at_fork_child_reinit_locks() * bpo-40092: Crash in _PyThreadState_DeleteExcept() at fork in the process child --

[issue40092] Crash in _PyThreadState_DeleteExcept() at fork in the process child

2020-03-27 Thread STINNER Victor
New submission from STINNER Victor : At fork, Python calls PyOS_AfterFork_Child() in the child process which indirectly calls _PyThreadState_DeleteExcept() whichs calls release_sentinel() of the thread which releases the thread state lock (threading.Thread._tstate_lock). Problem: using a

[issue40089] Add _at_fork_reinit() method to locks

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-40091 "Crash in logging._after_at_fork_child_reinit_locks()" that I just created. -- ___ Python tracker ___

[issue40091] Crash in logging._after_at_fork_child_reinit_locks()

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-40089 "Add _at_fork_reinit() method to locks". -- ___ Python tracker ___ ___

[issue40089] Add _at_fork_reinit() method to locks

2020-03-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18557 pull_request: https://github.com/python/cpython/pull/19196 ___ Python tracker ___

[issue40091] Crash in logging._after_at_fork_child_reinit_locks()

2020-03-27 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +gregory.p.smith, vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40091] Crash in logging._after_at_fork_child_reinit_locks()

2020-03-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18556 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19196 ___ Python tracker ___

[issue40091] Crash in logging._after_at_fork_child_reinit_locks()

2020-03-27 Thread STINNER Victor
New submission from STINNER Victor : test_threading.ThreadJoinOnShutdown.test_reinit_tls_after_fork() does crash randomly on AIX in logging._after_at_fork_child_reinit_locks(): https://bugs.python.org/issue40068#msg365028 This function ends by releasing a lock: _releaseLock() # Acquired

[issue6721] Locks in the standard library should be sanitized on fork

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-40089: Add _at_fork_reinit() method to locks. -- ___ Python tracker ___ ___

[issue40089] Add _at_fork_reinit() method to locks

2020-03-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +18554 pull_request: https://github.com/python/cpython/pull/19194 ___ Python tracker ___

[issue40089] Add _at_fork_reinit() method to locks

2020-03-27 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18555 pull_request: https://github.com/python/cpython/pull/19195 ___ Python tracker ___

[issue40089] Add _at_fork_reinit() method to locks

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset d8ff44ce4cd6f3ec0fab5fccda6bf14afcb25c30 by Victor Stinner in branch 'master': bpo-40089: Fix threading._after_fork() (GH-19191) https://github.com/python/cpython/commit/d8ff44ce4cd6f3ec0fab5fccda6bf14afcb25c30 --

[issue40089] Add _at_fork_reinit() method to locks

2020-03-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +18553 pull_request: https://github.com/python/cpython/pull/19193 ___ Python tracker

[issue38237] Expose meaningful keyword arguments for pow()

2020-03-27 Thread miss-islington
miss-islington added the comment: New changeset 9c5c497ac167b843089553f6f62437d263382e97 by Miss Islington (bot) in branch '3.8': bpo-38237: Use divmod for positional arguments whatsnew example (GH-19171) https://github.com/python/cpython/commit/9c5c497ac167b843089553f6f62437d263382e97

[issue38237] Expose meaningful keyword arguments for pow()

2020-03-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +18552 pull_request: https://github.com/python/cpython/pull/19192 ___ Python tracker ___

[issue38237] Expose meaningful keyword arguments for pow()

2020-03-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 5a58c5280b8df4ca5d6a19892b24fff96e9ea868 by Ammar Askar in branch 'master': bpo-38237: Use divmod for positional arguments whatsnew example (GH-19171) https://github.com/python/cpython/commit/5a58c5280b8df4ca5d6a19892b24fff96e9ea868

[issue40089] Add _at_fork_reinit() method to locks

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: _at_fork() has a bug: it creates a _DummyThread instead of a _MainThread. Example: --- import os, _thread, threading, time def fork_in_thread(): pid = os.fork() if pid: # parent os._exit(0) # child process print(f"child

[issue40083] No run option available in python idle in version 3.8.2

2020-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Run only appears on the main menu of editor windows, not Shell or Output windows. If it does not appear, that would be a major bug. But I have no problem with 3.8.2 on Win10 Pro. If you do not have Run in an editor, or do but do not have Run Module or Run

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2020-03-27 Thread Eric Snow
Eric Snow added the comment: FYI, in bpo-39984 Victor moved pending calls to PyInterpreterState, which was part of my reverted change. However, there are a few other pieces of that change that need to be applied before this issue is resolved. I'm not sure when I'll get to it, but

[issue40089] Add _at_fork_reinit() method to locks

2020-03-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18551 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19191 ___ Python tracker ___

[issue40090] The referenced RFC for the json module should be corrected to rfc8259

2020-03-27 Thread Ama Aje My Fren
New submission from Ama Aje My Fren : Currently the Documentation of the json library module refers to :rfc:`7159` . That RFC has however been obsoleted by :rfc:`8259`. The Documentation for :mod:`json` should be changed to indicate this. -- assignee: docs@python components:

[issue39984] Move pending calls from _PyRuntime to PyInterpreterState

2020-03-27 Thread Eric Snow
Eric Snow added the comment: Awesome! Thanks for doing this, Victor. I'll take a look when I can and adjust the changes for bpo-33608. If you'll recall, I made a similar change as part of the solution for that issue, which we later reverted due to problems we discovered with daemon

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2020-03-27 Thread Mark Shannon
Mark Shannon added the comment: Just to add my 2 cents. I think this a bad idea and is likely to be unsafe. Having interpreters interfering with each other's objects is almost certain to lead to race conditions. IMO, objects should *never* be shared across interpreters (once interpreters

[issue40031] Python Configure IDLE 'Ok' and 'Apply' buttons do not seem to work.

2020-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: What does Help => About IDLE say about the tk version? -- ___ Python tracker ___ ___

[issue40031] Python Configure IDLE 'Ok' and 'Apply' buttons do not seem to work.

2020-03-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upgrading to bugfix releases is usually a good idea. Aside from everything else, there is usually some change to IDLE. Again, how are you installing python? From the python.org installer (which one)? From the Window store? From a 3rd party installer?

[issue38966] List similarity relationship

2020-03-27 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +Interpreter Core -IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40089] Add _at_fork_reinit() method to locks

2020-03-27 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +Batuhan Taskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40089] Add _at_fork_reinit() method to locks

2020-03-27 Thread STINNER Victor
New submission from STINNER Victor : Using a lock after fork() is unsafe and can crash. Example of a crash in logging after a fork on AIX: https://bugs.python.org/issue40068#msg365028 This problem is explained in length in bpo-6721: "Locks in the standard library should be sanitized on

[issue37247] swap distutils build_ext and build_py commands to allow proper SWIG extension installation

2020-03-27 Thread John Andersen
John Andersen added the comment: I'm going to take a stab at this by adding build_swig which will run if the list of files only contains .i files. -- ___ Python tracker ___

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

2020-03-27 Thread Andy Lester
Andy Lester added the comment: Casting tail to (void *)tail was the correct thing to do. The problem is that casting to void* casts away the constness of tail. The even more correct thing to do is what my patch does, which is cast it to (const void *)tail. There is no functional

[issue25780] Add support for CAN_RAW_JOIN_FILTERS

2020-03-27 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz nosy_count: 3.0 -> 4.0 pull_requests: +18550 pull_request: https://github.com/python/cpython/pull/19190 ___ Python tracker ___

[issue40077] Convert static types to PyType_FromSpec()

2020-03-27 Thread Stefan Krah
Stefan Krah added the comment: > Or maybe _decimal_state_global was used in "hot code". Yes, _decimal has problems here that most modules don't have. Modules like atexit are obviously fine. :) I just posted it as an example why one should be a bit cautious. > The PEP 573 is going to give

[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2020-03-27 Thread Deep Sukhwani
Deep Sukhwani added the comment: Hello, I just observed this issue on Python 3.8.2 while running tests for Django project. Example error == ERROR: test_extract_function (utils_tests.test_archive.TestArchive) [foobar.tar.xz]

[issue38644] Pass explicitly tstate to function calls

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1c1e68cf3e3a2a19a0edca9a105273e11c6e by Victor Stinner in branch 'master': bpo-38644: Use _PySys_Audit(): pass tstate explicitly (GH-19183) https://github.com/python/cpython/commit/1c1e68cf3e3a2a19a0edca9a105273e11c6e --

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

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: > However, it does quiet the -Wcast-qual compiler warning that could be a > helpful addition some time in the future. Aha, that's intesting. It helps me if I can see that your change fix a compiler warning that I can reproduce. If I build Objects/obmalloc.c

[issue40088] list.reverse(): slow sublist reverse

2020-03-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This looks like a duplicate of https://bugs.python.org/issue1491804 -- nosy: +rhettinger, xtreak ___ Python tracker ___

[issue40077] Convert static types to PyType_FromSpec()

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: In the _json module, PyModule_GetState() (called by get_json_state()) is only used by the garbage collector (traverse function) and to unload the module (clear and free functions). It's not used in "hot code" (let me consider that the GC is not part of the

[issue40086] test_etree is skipped in test_typing due to cElementTree removal

2020-03-27 Thread Furkan Önder
Change by Furkan Önder : -- keywords: +patch nosy: +furkanonder nosy_count: 2.0 -> 3.0 pull_requests: +18549 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19189 ___ Python tracker

[issue40018] test_ssl fails with OpenSSL 1.1.1e

2020-03-27 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: The change has been reverted upstream. Also on the rawhide buildbots, we have an updated build with the commit reverted, so they returned back to green. Now the revertion will be included at a new release of the 1.1.1 branch, however it will still

[issue40088] list.reverse(): slow sublist reverse

2020-03-27 Thread Yury Norov
New submission from Yury Norov : Hi all, In Python, I need a tool to reverse part of a list (tail) quickly. I expected that nums[start:end].reverse() would do it inplace with the performance similar to nums.reverse(). However, it doesn't work at all. The fastest way to reverse a part

[issue40087] How to Uninstall Python3.7.3 using cmd?

2020-03-27 Thread Deepalee Khare
New submission from Deepalee Khare : How to Uninstall Python3.7.3 using cmd ? i tried using cmd: Msiexec /uninstall C:\Python37\python.exe But it giver me an error: "This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows

[issue40077] Convert static types to PyType_FromSpec()

2020-03-27 Thread Stefan Krah
Stefan Krah added the comment: > Wouldn't having less static types slow down startup time? Yes, and not only startup time: https://bugs.python.org/issue15722 -- nosy: +skrah ___ Python tracker

[issue39966] mock 3.9 bug: Wrapped objects without __bool__ raise exception

2020-03-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: On thinking more about this the wraps argument provides a way to wrap the calls for the mock to a given object. So when an attribute not present in the wrapped object is being accessed then it should act like the attribute is not present. Falling

[issue40086] test_etree is skipped in test_typing due to cElementTree removal

2020-03-27 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : Currently, test_etree has a Python 2 shim importing cElementTree and skipping the test on ImportError. Since cElementTree was deprecated and removed in Python 3 with 36543. So this test is now skipped. The fix would be to remove the shim and

[issue40084] HTTPStatus has incomplete dir() listing

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

[issue36093] UnicodeEncodeError raise from smtplib.verify() method

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

[issue40077] Convert static types to PyType_FromSpec()

2020-03-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 33f15a16d40cb8010a8c758952cbf88d7912ee2d by Dong-hee Na in branch 'master': bpo-40077: Convert _json module to use PyType_FromSpec() (GH-19177) https://github.com/python/cpython/commit/33f15a16d40cb8010a8c758952cbf88d7912ee2d --

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

2020-03-27 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok nosy_count: 4.0 -> 5.0 pull_requests: +18547 pull_request: https://github.com/python/cpython/pull/19188 ___ Python tracker ___

[issue36453] pkgutil.get_importer only return the first valid path_hook(importer)

2020-03-27 Thread Windson Yang
Windson Yang added the comment: Any update? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36093] UnicodeEncodeError raise from smtplib.verify() method

2020-03-27 Thread Windson Yang
Windson Yang added the comment: Any update? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40085] Argument parsing option c should accept int between -128 to 255 ?

2020-03-27 Thread tzickel
New submission from tzickel : I converted some code from python to c-api and was surprised that a code stopped working. Basically the "c" parsing option allows for 1 char bytes or bytearray inputs and converts them to a C char. But just as indexing a bytes array returns an int, so should

[issue40084] HTTPStatus has incomplete dir() listing

2020-03-27 Thread Raymond Hettinger
New submission from Raymond Hettinger : The dir() listing omits the attributes "description" and "phrase": >>> import http >>> from pprint import pp >>> r = http.HTTPStatus(404) >>> pp(vars(r)) {'_value_': 404, 'phrase': 'Not Found', 'description': 'Nothing matches the given URI', '_name_':

[issue40083] No run option available in python idle in version 3.8.2

2020-03-27 Thread Rajesh R Naik
New submission from Rajesh R Naik : i using pyhton 3.8.2 latest version in that there no run option available in python idle. so please help also iam using windows 10 home -- assignee: terry.reedy components: IDLE messages: 365137 nosy: Raj_110, terry.reedy, twouters priority: normal

[issue40082] Assertion failure in trip_signal

2020-03-27 Thread Alexander Riccio
Alexander Riccio added the comment: Hmmm, happens every time I interrupt while attached. Is there some obvious gotcha in the docs that I'm missing? -- ___ Python tracker ___

[issue40082] Assertion failure in trip_signal

2020-03-27 Thread Alexander Riccio
Alexander Riccio added the comment: Lmao the name mangling comes up as a mailto. That's interesting. -- ___ Python tracker ___ ___

[issue40082] Assertion failure in trip_signal

2020-03-27 Thread Alexander Riccio
New submission from Alexander Riccio : While trying to make sense of some static analysis warnings for the Windows console IO module, I Ctrl+C'd in the middle of an intentionally absurd __repr__ output, and on proceeding in the debugger (which treated it as an exception), I immediately hit

  1   2   >