[issue45620] A misleading url in 'Floating Point Arithmetic' page

2021-10-27 Thread Dennis Sweeney
Dennis Sweeney added the comment: I was unable to replicate this. I see the correct article "The Perils of Floating Point" at lahey.com/float.htm. Is the site still incorrect for you, or did the Lahey site fix the issue? -- assignee: -> docs@python components: +Documentation nosy: +

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue45621] Small fixes to mmap

2021-10-27 Thread Tim Golden
New submission from Tim Golden : Following issue40915 a few small items still need to be addressed, mostly cosmetic / naming: * A comment should have been removed but wasn't * A comment should have been added but wasn't * The use of the string "TEST" should be avoided in tests particularly whe

[issue42545] Check that all symbols in the limited ABI are exported

2021-10-27 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Pablo, can this be closed? -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list

[issue42738] subprocess: don't close all file descriptors by default (close_fds=False)

2021-10-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Gregory P. Smith wrote: > A higher level "best practices for launching child processes module" with > APIs reflecting explicit intents (performance vs security vs simplicity) > rather than requiring users to understand subprocess platform specific > deta

[issue45622] BlockingIOError: [Errno 11] Resource temporarily unavailable when performing SSL handshake on Solaris

2021-10-27 Thread Florin Spătar
New submission from Florin Spătar : Trying to connect to an uWSGI (or any other) server, from Solaris, will fail with the following error: -bash-3.00# /opt/opsware/agent/bin/python3 client.py /tmp/client.py:9: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated context = ssl.SSLContext(ssl.PR

[issue45620] A misleading url in 'Floating Point Arithmetic' page

2021-10-27 Thread Sonia
Sonia added the comment: I was redirect to https://www.hmbags.tw so is this my internet problem? -- ___ Python tracker ___ ___ Pyt

[issue45620] A misleading url in 'Floating Point Arithmetic' page

2021-10-27 Thread Sonia
Sonia added the comment: It shows the drug ad slogan even with the google search result. I searched 'The Perils of Floating Point lahey' -- Added file: https://bugs.python.org/file50395/截圖 2021-10-27 下午5.02.02.png ___ Python tracker

[issue44511] Improve the bytecode for mapping patterns

2021-10-27 Thread Mark Shannon
Mark Shannon added the comment: New changeset 82a662e5216a9b3969054c540a759a9493468510 by Brandt Bucher in branch 'main': bpo-44511: Improve the bytecode for class and mapping patterns (GH-26922) https://github.com/python/cpython/commit/82a662e5216a9b3969054c540a759a9493468510 -- no

[issue45388] Use JUMP_FORWARD for all forward jumps.

2021-10-27 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45622] BlockingIOError: [Errno 11] Resource temporarily unavailable when performing SSL handshake on Solaris

2021-10-27 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the detailed bug report. Since the code works on Linux and other platforms as well as OpenSSL 1.0.2, it is likely a platform bug or a platform-specific issue with OpenSSL. Unfortunately I don't know how to investigate this issue. -- ass

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-10-27 Thread Mark Shannon
Mark Shannon added the comment: Damien, thanks for catching this. The change was not intended. There are two kind of exceptions raised by send. 1. Where a pre-condition is not met, e.g. a generator is already ruuning (caller errors) 2. When the generator/coroutine raises an exception (callee

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-10-27 Thread Mark Shannon
Change by Mark Shannon : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue45623] static build is broken

2021-10-27 Thread egorpugin
New submission from egorpugin : Static build is not working any more since 3.10. 'winver' member is only defined with dll build. See master - 'winver' call which is not available for windows+static build. https://github.com/python/cpython/blob/main/Lib/site.py#L292 See 3.9 file - no 'winver'

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-10-27 Thread Mark Shannon
Mark Shannon added the comment: Just to be clear, it is the behavior change that should be reverted, not necessarily the new bytecode. In fact we should probably push on with (2) and add an exception handler wrapping the whole generator except the GEN_START. That way a GEN_START exception w

[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-27 Thread Carl Friedrich Bolz-Tereick
New submission from Carl Friedrich Bolz-Tereick : test_graphlib fails on PyPy because it depends on the iteration order of sets. Will open a PR soon. -- messages: 405084 nosy: Carl.Friedrich.Bolz priority: normal severity: normal status: open title: test_graphlib.py depends on iteratio

[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-27 Thread Carl Friedrich Bolz-Tereick
Carl Friedrich Bolz-Tereick added the comment: here's the traceback running on pypy3.9-alpha: == FAIL: test_simple_cases (test.test_graphlib.TestTopologicalSort)

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-10-27 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 8f24b7dbcbd83311dad510863d8cb41f0e91b464 by Erlend Egeberg Aasland in branch 'main': bpo-42064: Convert `sqlite3` global state to module state (GH-29073) https://github.com/python/cpython/commit/8f24b7dbcbd83311dad510863d8cb41f0e91b464

[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-27 Thread Carl Friedrich Bolz-Tereick
Change by Carl Friedrich Bolz-Tereick : -- keywords: +patch pull_requests: +27496 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29233 ___ Python tracker

[issue45623] static build is broken

2021-10-27 Thread egorpugin
Change by egorpugin : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue40990] Make http.server support SSL

2021-10-27 Thread Fred
Fred added the comment: How is this going? Any progress? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45625] Add support for top-level await

2021-10-27 Thread Fred
New submission from Fred : I want top-level await without any boilerplate code or setup. Just write a "await" statement on line 1 without any indention. #!/usr/bin/env python3 import asyncio await asyncio.sleep(1) I don't want to have to call asyncio.run(main()), and I don't want

[issue42064] Convert sqlite3 to multi-phase initialisation (PEP 489)

2021-10-27 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +27497 pull_request: https://github.com/python/cpython/pull/29234 ___ Python tracker ___ ___

[issue42545] Check that all symbols in the limited ABI are exported

2021-10-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: We are missing documentation in the devguide. We could close this and open an issue in the devguide :) -- ___ Python tracker ___

[issue40866] Use PyModule_AddType() in posix module initialisation

2021-10-27 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> out of date ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-27 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +27498 pull_request: https://github.com/python/cpython/pull/29235 ___ Python tracker ___

[issue34046] subparsers -> add_parser doesn't support hyphen char '-'

2021-10-27 Thread Артём Иконников
Артём Иконников added the comment: I've also struggled with this. The subparser documentation describes them as a tool to "split up functionality into a number of sub-commands". >From the reader's point of view it's not obvious that such "sub-commands" >cannot start with -- -- nosy:

[issue45626] Email part with content type message is multipart.

2021-10-27 Thread John Howroyd
New submission from John Howroyd : >From the library documentation, it is an intended feature that an email part >with content_maintype == "message" is treated as multipart. This does not >seem to be compliant to MIME specification nor expected semantics. The >attached email (from the dnc w

[issue45548] Update Modules/Setup

2021-10-27 Thread Anthony Sottile
Anthony Sottile added the comment: I'm seeing some weird breakage in the deadsnakes builds, presumably due to this change: ``` ... 2021-10-27T08:55:21.9485959Z x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -fdebug-prefix-map=/tmp/code=. -sp

[issue23556] [doc] Scope for raise without argument is different in Python 2 and 3

2021-10-27 Thread Kinshuk Dua
Change by Kinshuk Dua : -- keywords: +patch nosy: +kinshukdua nosy_count: 7.0 -> 8.0 pull_requests: +27499 pull_request: https://github.com/python/cpython/pull/29236 ___ Python tracker ___

[issue45627] OpenSSL 1.1.1 still implements some disable-flags for Blake2, Scrypt

2021-10-27 Thread Alexandru Ardelean
New submission from Alexandru Ardelean : This follows update https://bugs.python.org/issue43669 Which is present in Python 3.10 Some OpenSSL 1.1.1 can be built without Blake2 support or Scrypt. SHA3 and SHAKE do not seem to have any enable/disable flags. This results in compiler errors where

[issue45627] OpenSSL 1.1.1 still implements some disable-flags for Blake2, Scrypt

2021-10-27 Thread Alexandru Ardelean
Alexandru Ardelean added the comment: Note: PKCS5_v2_scrypt_keyivgen() will not cause an error, but EVP_PBE_scrypt() will -- ___ Python tracker ___ __

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-27 Thread Marc Culler
Marc Culler added the comment: Thanks, Ned, for finding my mistake which you generously called a typo. I have fixed the inequality in the Tk fossil repository. Incidentally, there is now a core-8-6-12-rc branch of Tk, also containing the fix. So it should not be too long before 8.6.12 is re

[issue45627] OpenSSL 1.1.1 still implements some disable-flags for Blake2, Scrypt

2021-10-27 Thread Alexandru Ardelean
Change by Alexandru Ardelean : -- keywords: +patch pull_requests: +27500 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29237 ___ Python tracker _

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-27 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +27501 pull_request: https://github.com/python/cpython/pull/29238 ___ Python tracker ___

[issue43683] Handle generator (and coroutine) state in the bytecode.

2021-10-27 Thread Damien George
Damien George added the comment: Thanks for confirming the bug. Sending non-None to a not-started generator could arguably be case (2), because that's exactly the semantics introduced by the commit that broke the test case :) Honestly I don't have a strong opinion on which way this goes. B

[issue45620] A misleading url in 'Floating Point Arithmetic' page

2021-10-27 Thread Eric V. Smith
Eric V. Smith added the comment: The link on the doc page also works for me, sending me to http://www.lahey.com/float.htm. I think the problem is with @hanhantw's browser or ISP, or similar. I'm going to close this. -- nosy: +eric.smith resolution: -> works for me stage: -> resolv

[issue45627] OpenSSL 1.1.1 still implements some disable-flags for Blake2, Scrypt

2021-10-27 Thread Christian Heimes
Christian Heimes added the comment: Python 3.10 and newer require OpenSSL 1.1.1+ with blake2, sha3, scrypt, and similar features enabled. The required feature set is specified in PEP 644, https://www.python.org/dev/peps/pep-0644/#compatibility . Python requires the features, because I want t

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-27 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 8.0 -> 9.0 pull_requests: +27502 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/29239 ___ Python tracker

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +27503 pull_request: https://github.com/python/cpython/pull/29240 ___ Python tracker _

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Ned Deily
Ned Deily added the comment: New changeset bcee6aa31550cfecdc3acecbd0e4447bb0051887 by m-aciek in branch 'main': bpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 (GH-29230) https://github.com/python/cpython/commit/bcee6aa31550cfecdc3acecbd0e4447bb0051887 --

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-27 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've put up a PR; I'm not sure it's the best way to fix it. I will look more into it and will try to post some details about the PR later today. -- ___ Python tracker _

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +27504 pull_request: https://github.com/python/cpython/pull/29241 ___ Python tracker ___ ___

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Ned Deily
Ned Deily added the comment: New changeset 2b7b7c7320cd856df5439afc3c984873678c27d8 by Miss Islington (bot) in branch '3.10': bpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 (GH-29230) (GH-29240) https://github.com/python/cpython/commit/2b7b7c7320cd856df5439afc3c9848

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Ned Deily
Ned Deily added the comment: New changeset 30c1f18ee62cef301e18488b80b4d329290f7b95 by Ned Deily in branch '3.9': [3.9] bpo-45618: Fix documentation build by pinning Docutils version to 0.17.1 (GH-29230) (GH-29241) https://github.com/python/cpython/commit/30c1f18ee62cef301e18488b80b4d329290f

[issue45617] sys.stdin does not iterate correctly on '\r' line separator

2021-10-27 Thread Kelly Brazil
Kelly Brazil added the comment: '\r' support is implicitly documented under the sys.stdin section[0]: "These streams are regular text files like those returned by the open() function. Their parameters are chosen as follows..." By following the link to the open()[1] docs, it says: "newline c

[issue45609] Specialize STORE_SUBSCR

2021-10-27 Thread Dennis Sweeney
Change by Dennis Sweeney : -- pull_requests: +27505 pull_request: https://github.com/python/cpython/pull/29242 ___ Python tracker ___ __

[issue45628] TimedRotatingFileHandler backupCount not working

2021-10-27 Thread Ivo Grondman
New submission from Ivo Grondman : Using the TimedRotatingFileHandler with a non-zero backupCount, I get different behaviour between versions 3.9 and 3.10. Attached is a small example. Running it with 3.9 gives me two backups at most even if I run the script for a long time. Running it with 3

[issue45628] TimedRotatingFileHandler backupCount not working

2021-10-27 Thread Ned Deily
Change by Ned Deily : -- components: -macOS nosy: +vinay.sajip -ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-li

[issue45629] Tools/freeze needs tests in the test suite.

2021-10-27 Thread Eric Snow
New submission from Eric Snow : I found that Tools/freeze doesn't get tested. It has a "test" directory but it's more of a rudimentary sanity check that must be run manually. Since the tool isn't tested through our test suite, there's a high likelihood it can get broken without anyone reali

[issue45629] Tools/freeze needs tests in the test suite.

2021-10-27 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +27506 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/29222 ___ Python tracker ___

[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-27 Thread Sam Gross
Change by Sam Gross : -- assignee: docs@python -> colesbury ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue45096] Update Tools/freeze to make use of Tools/scripts/freeze_modules.py?

2021-10-27 Thread Eric Snow
Change by Eric Snow : -- pull_requests: -27485 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue45096] Update Tools/freeze to make use of Tools/scripts/freeze_modules.py?

2021-10-27 Thread Eric Snow
Change by Eric Snow : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue45630] Dump CodeObject API for debugging

2021-10-27 Thread penguin_wwy
New submission from penguin_wwy <940375...@qq.com>: What the title says. -- components: Interpreter Core messages: 405106 nosy: penguin_wwy priority: normal severity: normal status: open title: Dump CodeObject API for debugging type: enhancement versions: Python 3.11 __

[issue45630] Dump CodeObject API for debugging

2021-10-27 Thread penguin_wwy
Change by penguin_wwy <940375...@qq.com>: -- keywords: +patch pull_requests: +27507 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29243 ___ Python tracker __

[issue34046] subparsers -> add_parser doesn't support hyphen char '-'

2021-10-27 Thread paul j3
paul j3 added the comment: Артём Иконников, developers and experienced users are familiar with other programs, such as 'svn' which is used as an example svn checkout, svn update, and svn commit Also the use of '--foo' as flagged/optional(s) argument is so familiar to developers, that it does

[issue44525] Implement CALL_FUNCTION adaptive interpreter optimizations

2021-10-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately, PR 26934 has broken thes 390x RHEL7 LTO 3.x buildbot as you can see before. As per the buildbot maintenance procedures, we will need to revert this PR unless is fixed in 24 hours. @markshannon @Fidget-Spinner -- nosy: +pablogsa

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately, seems that https://github.com/python/cpython/pull/28937 has broken the AMD64 FreeBSD Shared 3.x buildbot: https://buildbot.python.org/all/#/builders/483/builds/1003/steps/5/logs/stdio The buildbot was green until we merged this ---

[issue45631] missing unittests for overlapping dest when using subparsers

2021-10-27 Thread paul j3
New submission from paul j3 : https://bugs.python.org/issue45235 argparse does not preserve namespace with subparser defaults was passed and put into the latest release with rather obvious buggy behavior. This means that the unittest file does not adequately test for overlapping 'dest' in t

[issue45617] sys.stdin does not iterate correctly on '\r' line separator

2021-10-27 Thread Eryk Sun
Eryk Sun added the comment: > like those returned by the open() function. Their parameters are > chosen as follows..." The `newline` argument for sys.std* isn't documented, but it should be. It happens to be newline='\n' on every platform except Windows. > its newlines attribute is set to N

[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-27 Thread Sam Gross
Sam Gross added the comment: Antoine Pitrou already fixed the "noddy4" example (now renamed to "custom4") and updated the newtypes_tutorial, but I think it's still worth mentioning PyObject_GC_Untrack in a few additional places. -- ___ Python trac

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +27509 pull_request: https://github.com/python/cpython/pull/29245 ___ Python tracker ___ ___

[issue45617] sys.stdin does not iterate correctly on '\r' line separator

2021-10-27 Thread Kelly Brazil
Kelly Brazil added the comment: Also, I believe this docstring is being inherited, but this is also where it seems that '\r' is documented to work with sys.stdin: >>> print(sys.stdin.__doc__) Character and line based layer over a BufferedIOBase object, buffer. encoding gives the name of the

[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-27 Thread Sam Gross
Change by Sam Gross : -- keywords: +patch pull_requests: +27510 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29246 ___ Python tracker ___ __

[issue45621] Small fixes to mmap

2021-10-27 Thread Tim Golden
Change by Tim Golden : -- keywords: +patch pull_requests: +27511 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29247 ___ Python tracker ___ _

[issue45632] Strange readline save history behaviour in site.py

2021-10-27 Thread doraeric
New submission from doraeric : I noticed that in site.py, it saves history to a hard-coded location if the current history length is 0. The history is considered as not loaded if the length is 0, but it may be actually loaded from a empty file. In this case, the history is save to hard-coded

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-27 Thread Andrei Kulakov
Andrei Kulakov added the comment: I missed that this is assigned to Raymond, hope we didn't duplicate any effort (it only took me a short while to do the PR). Apologies.. -- ___ Python tracker _

[issue45623] static build is broken

2021-10-27 Thread Christian Heimes
Christian Heimes added the comment: Steve changed the line in comment dd18001c308f / bpo-41627. -- assignee: -> steve.dower components: +Windows nosy: +christian.heimes, paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue45623] static build is broken

2021-10-27 Thread Christian Heimes
Christian Heimes added the comment: Full commit hash is dd18001c308fb3bb65006c91d95f6639583a3420 -- ___ Python tracker ___ ___ Pyth

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Ned Deily
Ned Deily added the comment: All of the open branches are affected by this since we also have to build documentation for security-fix-only branches when releases. PRs for 3.7 and 3.6 forthcoming. -- versions: +Python 3.6, Python 3.7, Python 3.8 __

[issue45633] Py_GT listed twice in Doc/extending/newtypes.rst

2021-10-27 Thread Julien Palard
New submission from Julien Palard : In Doc/extending/newtypes one can read: > This function is called with two Python objects and the operator as > arguments, where the operator is one of Py_EQ, Py_NE, Py_LE, Py_GT, Py_LT or > Py_GT. It bet one of them should be Py_GE. (I let this one as an

[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-27 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 35e1ff38ee67ee543d9fcb268c3552c5397f9b3f by Sam Gross in branch 'main': bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() (GH-29246) https://github.com/python/cpython/commit/35e1ff38ee67ee543d9fcb268c3552c5397f9b3f --

[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27512 pull_request: https://github.com/python/cpython/pull/29248 ___ Python tracker _

[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-27 Thread Sam Gross
Change by Sam Gross : -- pull_requests: +27513 pull_request: https://github.com/python/cpython/pull/29249 ___ Python tracker ___ ___

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-27 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've looked more into it, the issue is that even before an object can be tested with `isinstance()`, both inspect.classify_class_attrs and in pydoc, classdoc local function `spill()` use a `getattr()` call, which triggers the property. So I think my PR is go

[issue45591] PathFinder does not find namespace packages children

2021-10-27 Thread Brett Cannon
Brett Cannon added the comment: The full name argument approach comes from PEP 302. But you want the full name as you are otherwise missing potentially key information for the finder. For instance, if you manipulate __path__, then it's just some random directory you're searching in. But sear

[issue45548] Update Modules/Setup

2021-10-27 Thread Brett Cannon
Brett Cannon added the comment: > Could Brett or you please add those notes back ? There's no other place where such details are documented. It really depends on what "details" you're referring to. Most of what I removed were things like "Module by ", or saying _json.c is for "json accelerat

[issue45634] [sqlite3] don't combine error checks when adding integer constants

2021-10-27 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : In Modules/_sqlite/module.c, add_integer_constants() accumulates the return values of repeated PyModule_AddIntMacro() calls. We should change this to instead bailing immediately on error. -- components: Extension Modules messages: 405124 nosy: e

[issue45562] python -d creates lots of tokenizer messages

2021-10-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +27514 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29250 ___ Python tracker ___ ___

[issue45634] [sqlite3] don't combine error checks when adding integer constants

2021-10-27 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +27515 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29251 ___ Python tracker __

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Maciej Olko
Maciej Olko added the comment: For what it's worth I have just successfully built documentation on 3.7 and 3.6 branches locally. It looks like Sphinx 2.3.1 used there doesn't use this part of docutils API that have changed recently. Sphinx 2.3.1 has requirement of "docutils>=0.12", just like

[issue45635] Tidy up error handling in traceback.c / python run.c

2021-10-27 Thread Irit Katriel
New submission from Irit Katriel : They do things like err = PyFile_WriteString("TypeError: print_exception(): Exception expected for value, ", f); err += PyFile_WriteString(Py_TYPE(value)->tp_name, f); err += PyFile_WriteString(" found\n", f); which means that PyFile_XXX functio

[issue45562] python -d creates lots of tokenizer messages

2021-10-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +27516 pull_request: https://github.com/python/cpython/pull/29252 ___ Python tracker ___ __

[issue45562] python -d creates lots of tokenizer messages

2021-10-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue45635] Tidy up error handling in traceback.c / python run.c

2021-10-27 Thread Irit Katriel
Change by Irit Katriel : -- components: +Interpreter Core versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue45562] python -d creates lots of tokenizer messages

2021-10-27 Thread miss-islington
miss-islington added the comment: New changeset 10bbd41ba8c88bc102df108a4e0444abc7c5ea43 by Pablo Galindo Salgado in branch 'main': bpo-45562: Print tokenizer debug messages to stderr (GH-29250) https://github.com/python/cpython/commit/10bbd41ba8c88bc102df108a4e0444abc7c5ea43 -- __

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-27 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset d02ffd1b5c0fd8dec6dd2f7e3f2b0cfae48b7899 by Martin Rueckl in branch 'main': bpo-45438: format of inspect.Signature with generic builtins (#29212) https://github.com/python/cpython/commit/d02ffd1b5c0fd8dec6dd2f7e3f2b0cfae48b7899 -- _

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +27517 pull_request: https://github.com/python/cpython/pull/29253 ___ Python tracker _

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +27518 pull_request: https://github.com/python/cpython/pull/29254 ___ Python tracker ___ __

[issue45235] argparse does not preserve namespace with subparser defaults

2021-10-27 Thread paul j3
paul j3 added the comment: I should study previous posts in more detail, but here are some thoughts on correctly handling user namespace. At the start of `parse_known_args`, there's a if namespace is None: namespace = Namespace() We need to hang on to a copy of this name

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2021-10-27 Thread paul j3
paul j3 added the comment: A new patch, https://bugs.python.org/issue45235 has clobbered this patch. It has also exposed the inadequate unittesting for the case(s) where the 'dest' of main namespace, subparser namespace, user provided namespace overlap. -- __

[issue45562] python -d creates lots of tokenizer messages

2021-10-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 038f45230892235e806ef227dfd9484b95687823 by Miss Islington (bot) in branch '3.10': bpo-45562: Print tokenizer debug messages to stderr (GH-29250) (GH-29252) https://github.com/python/cpython/commit/038f45230892235e806ef227dfd9484b95687823

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-27 Thread miss-islington
miss-islington added the comment: New changeset ce7a6afb797d2ffde45e9e902516b8437c8f9e31 by Miss Islington (bot) in branch '3.10': bpo-45438: format of inspect.Signature with generic builtins (GH-29212) https://github.com/python/cpython/commit/ce7a6afb797d2ffde45e9e902516b8437c8f9e31 --

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-27 Thread miss-islington
miss-islington added the comment: New changeset 21150c6fa330f80747d698e4b883c7b4801a25bd by Miss Islington (bot) in branch '3.9': bpo-45438: format of inspect.Signature with generic builtins (GH-29212) https://github.com/python/cpython/commit/21150c6fa330f80747d698e4b883c7b4801a25bd ---

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Maciej Olko
Maciej Olko added the comment: I'm sorry for the confusion. I might have make more checking on my side before proposing a fix. -- ___ Python tracker ___ _

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Maciej Olko
Maciej Olko added the comment: It occurs that the documentation builds without warnings on most recent Sphinx -- version 4.2.0. Probably we should bump the version in 3.11, 3.10 and 3.9 to 4.2.0. That would enable us to remove the pin on docutils. --

[issue45636] Merge BINARY_*/INPLACE_* into BINARY_OP/INPLACE_OP

2021-10-27 Thread Brandt Bucher
New submission from Brandt Bucher : ...as discussed in https://github.com/faster-cpython/ideas/issues/101. This change merges all BINARY_*/INPLACE_* instructions, except for a few special cases: - BINARY_ADD/INPLACE_ADD, which interact with sq_concat/sq_inplace_concat and already have their

[issue45636] Merge BINARY_*/INPLACE_* into BINARY_OP/INPLACE_OP

2021-10-27 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch pull_requests: +27519 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29255 ___ Python tracker ___ __

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Maciej Olko
Change by Maciej Olko : -- pull_requests: +27520 pull_request: https://github.com/python/cpython/pull/29256 ___ Python tracker ___ _

  1   2   >