[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-20 Thread Mark Dickinson
Mark Dickinson added the comment: I think this should be good now. -- resolution: -> fixed stage: patch review -> resolved status: open -> pending ___ Python tracker ___

[issue44458] Duplicate symbol _BUFFER_BLOCK_SIZE when statically linking multiple modules

2021-06-20 Thread Russell Keith-Magee
Change by Russell Keith-Magee : -- keywords: +patch pull_requests: +25389 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26808 ___ Python tracker

[issue12022] AttributeError should report the same details when raised by lookup_special() as when raised in the REPL

2021-06-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +25391 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26809 ___ Python tracker ___

[issue12022] AttributeError should report the same details when raised by lookup_special() as when raised in the REPL

2021-06-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue12022] AttributeError should report the same details when raised by lookup_special() as when raised in the REPL

2021-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 26809 makes "with" and "async with" raising TypeError instead of AttributeError for wrong types. -- ___ Python tracker ___

[issue43476] Enabling access to showsyntaxerror for IDLE's shell

2021-06-20 Thread Andre Roberge
Andre Roberge added the comment: I just thought of making a copy of the file content under a known name as the least disruptive approach for IDLE's code - even less so than the recent addition required to support user-defined exception hooks. For SyntaxErrors and subclasses [1], Friendly nee

[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2021-06-20 Thread Noam
Noam added the comment: Is this still alive? If decided to decline PR why is this still open? -- nosy: +noamda ___ Python tracker ___ _

[issue1207466] installer ignores changed installation directory

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: Did Terry remove 3.1 because this is only relevant to python 2? Is this resolved/obsolete by now? -- nosy: +iritkatriel ___ Python tracker

[issue1207466] installer ignores changed installation directory

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: Ah I see 3.2 is still there, so it's wasn't just a python 2 issue. -- ___ Python tracker ___ ___

[issue41546] pprint() gives exception when ran from pythonw

2021-06-20 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch nosy: +iritkatriel nosy_count: 9.0 -> 10.0 pull_requests: +25392 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26810 ___ Python tracker

[issue41546] pprint() gives exception when ran from pythonw

2021-06-20 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue24501] configure does not find (n)curses in /usr/local/libs

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: Closing as this was reported for 2.7 and there has been no followup since. If you are still seeing this problem with a current version (>= 3.9), please create a new issue. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: op

[issue21482] get_versions() in cygwinccomiler.py cannot return correct gcc version

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: Closing as this is part of distutils which is deprecated now. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker _

[issue17088] ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used

2021-06-20 Thread Carl Schaefer
Change by Carl Schaefer : -- nosy: +carlschaefer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30238] 2to3 doesn't detect or fix Exception indexing

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: There is no way to know through static analysis that the subscript is on an object of type exception. I think this should be closed as won't fix. -- nosy: +iritkatriel resolution: -> wont fix status: open -> pending ___

[issue31314] email throws exception with oversized header input

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: This is working now: >>> import sys, email >>> mail = email.message_from_string( ... """From: ... To: ... Subject: demo ... X-Overlong-Header-Name-causes-python-mail-to-crash-in-re-serialization-example: ... ... Hello ... """) >>> >>> mail >>> message = mail

[issue33213] crypt function not hashing properly on Mac (uses a specific salt)

2021-06-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: How about adding a check to `crypt.mksalt()`: if method and method not in methods: raise ValueError(f'method {method} is not supported') If a method is supplied to `crypt.crypt()`, mksalt() is called with it as an arg, so adding this check will take care

[issue33213] crypt function not hashing properly on Mac (uses a specific salt)

2021-06-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: Actually it should be: if method is not None and method not in methods: ... -- ___ Python tracker ___

[issue37260] shutil.rmtree() FileNotFoundError race condition

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: see also issue29699 -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: seel also issue37260 -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44310] Document that lru_cache uses hard references

2021-06-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Adding a weak referencing recipe here just so I can find it in the future. -- import functools import weakref def weak_lru(maxsize=128, typed=False): """LRU Cache decorator that k

[issue5840] "Thread State and the Global Interpreter Lock" section of the docs doesn't cover TLS APIs

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: Indeed, this API was deprecated in 3.7: https://docs.python.org/3/c-api/init.html#thread-local-storage-tls-api -- nosy: +iritkatriel resolution: -> out of date stage: needs patch -> resolved status: open -> closed _

[issue24907] Module location load order is not respected if pkg_resources is imported and a namespace is declared

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: 2.7 is past EOL and I could not reproduce this on a current python version. Please create a new issue if you are still having a problem with this on 3.9+. PS C:\Users\User\src\cpython-dev> .\python.bat Running Release|x64 interpreter... Python 3.11.0a0 (heads/m

[issue29479] httplib: could not skip "ACCEPT-ENCODING" header

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: As Martin has stated, this can be achieved with putrequest as explained in the doc: https://docs.python.org/3.10/library/http.client.html#http.client.HTTPConnection.putrequest -- nosy: +iritkatriel resolution: -> not a bug stage: test needed -> resolv

[issue22231] httplib: unicode url will cause an ascii codec error when combined with a utf-8 string header

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: This looks like a 2.7-only issue. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker _

[issue16328] win_add2path.py sets wrong user path

2021-06-20 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-06-20 Thread Ken Jin
Ken Jin added the comment: Hello Sebastian, the tests are failing on the Azure pipelines buildbot running appx tests: https://dev.azure.com/Python/cpython/_build/results?buildId=82827&view=logs&j=0fcf9c9b-89fc-526f-8708-363e467e119e&t=fa5ef4ee-3911-591e--19482ab189b7 I suspect it's the s

[issue38291] Deprecate the typing.io and typing.re pseudo-modules

2021-06-20 Thread Ken Jin
Change by Ken Jin : -- pull_requests: +25393 pull_request: https://github.com/python/cpython/pull/26811 ___ Python tracker ___ ___ P

[issue16328] win_add2path.py sets wrong user path

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: I've refreshed the version as neither the patch was applied nor was the bug mentioned in msg239074 fixed so far. -- nosy: +iritkatriel ___ Python tracker

[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2021-06-20 Thread Noam
Noam added the comment: Hi Irit, Sorry, I'm still not following, The other issue you stated, states that PR is ready(06-2019), and this was in 2019, is this going to be fixed? or declined (and both should be closed)? What is the current updated status? -- ___

[issue29699] shutil.rmtree should not fail with FileNotFoundError (race condition)

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: PR13580 was not declined, the reviewer requested unit tests. If you want to advance this, perhaps you can help fill that in. The other PR looks like a duplicate that should be closed. -- ___ Python tracker

[issue44404] tkinter's after() AttributeError with functools.partial (no attribute __name__)

2021-06-20 Thread E. Paine
Change by E. Paine : -- keywords: +patch pull_requests: +25394 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26812 ___ Python tracker ___ ___

[issue43066] Zipfile with leading slashes

2021-06-20 Thread Andrei Kulakov
Andrei Kulakov added the comment: I propose fixing this in documentation. Raising an error is probably not warranted because zip files are often created on one system and used on another, so you can't raise an error based on current OS, and having a leading slash in the name is both useful a

[issue40956] Use Argument Clinic in sqlite3

2021-06-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 185ecdc1463c527743eeb16a5deef75c1985de79 by Erlend Egeberg Aasland in branch 'main': bpo-40956: Convert sqlite3.connect and sqlite3.Connection.__init__ to AC (GH-24421) https://github.com/python/cpython/commit/185ecdc1463c527743eeb16a5de

[issue44087] [sqlite3] consider adding Py_TPFLAGS_DISALLOW_INSTANTIATION to sqlite3.Statement

2021-06-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 7d0a47e1affd0a2f56600f3e9473f55f931595bd by Erlend Egeberg Aasland in branch 'main': bpo-44087: Disallow instantiation of sqlite3.Statement (GH-26567) https://github.com/python/cpython/commit/7d0a47e1affd0a2f56600f3e9473f55f931595bd ---

[issue44087] [sqlite3] consider adding Py_TPFLAGS_DISALLOW_INSTANTIATION to sqlite3.Statement

2021-06-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +25395 pull_request: https://github.com/python/cpython/pull/26813 ___ Python tracker _

[issue44430] [sqlite3] refactor threading tests

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

[issue44430] [sqlite3] refactor threading tests

2021-06-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 5f0fc30de46d41dccf04096df12664fc0a684ca2 by Erlend Egeberg Aasland in branch 'main': bpo-44430: Refactor `sqlite3` threading tests (GH-26748) https://github.com/python/cpython/commit/5f0fc30de46d41dccf04096df12664fc0a684ca2 --

[issue40956] Use Argument Clinic in sqlite3

2021-06-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Erlend, is anything left in this issue? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue44077] IP_RECVTOS option is missing from socket module

2021-06-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset a317778fd58b1c6b250feffbdb4ecf15e293ef48 by Georg Sauthoff in branch 'main': bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992) https://github.com/python/cpython/commit/a317778fd58b1c6b250feffbdb4ecf15e293ef48 -- nosy:

[issue44077] IP_RECVTOS option is missing from socket module

2021-06-20 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +25396 pull_request: https://github.com/python/cpython/pull/26815 ___ Python tracker _

[issue41299] Python3 threading.Event().wait time is twice as large as Python27

2021-06-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 8673b77e251e42874501a47b1df86c6bde4fe1d2 by Miss Islington (bot) in branch '3.10': bpo-41299: Reduce lag in Windows threading timeouts by using a higher precision time source (GH-26568) (GH-26580) https://github.com/python/cpython/commit

[issue43667] Solaris: Fix broken Unicode encoding in non-UTF locales

2021-06-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f87d2038fadd9c067d50fb2f1d7c2f37b9f3893a by Miss Islington (bot) in branch '3.10': bpo-43667: Add news fragment for Solaris changes (GH-26405) (GH-26498) https://github.com/python/cpython/commit/f87d2038fadd9c067d50fb2f1d7c2f37b9f3893a

[issue43298] Windows build cannot detect missing Windows SDK

2021-06-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 5fbccb763ce540c0d07be86660e0357bffc69d76 by Miss Islington (bot) in branch '3.10': bpo-43298: Improved error message when building without the Windows SDK installed (GH-26800) (GH-26802) https://github.com/python/cpython/commit/5fbccb763

[issue44466] faulthandler should indicate if the fault happened in garbage collection

2021-06-20 Thread Maxwell Ballenger
New submission from Maxwell Ballenger : I have been working on debugging a segfault. When faulthandler catches the fault, it makes a printout like this: Current thread 0x7f4fa62b2700 (most recent call first): File "/usr/lib/python3.6/site-packages/tornado/ioloop.py", line 919, in call_a

[issue40956] Use Argument Clinic in sqlite3

2021-06-20 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Erlend, is anything left in this issue? Nothing left; thank you for your guidance and reviews, Dong-hee, Berker, Serhiy, and Pablo. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue44077] IP_RECVTOS option is missing from socket module

2021-06-20 Thread miss-islington
miss-islington added the comment: New changeset 28fe0159f59a761bf52c1999c8f7cb12d0d12562 by Miss Islington (bot) in branch '3.10': bpo-44077: Expose IP_RECVTOS in the socket module (GH-25992) https://github.com/python/cpython/commit/28fe0159f59a761bf52c1999c8f7cb12d0d12562 -- _

[issue44467] profiling-compatible functools.wraps

2021-06-20 Thread Anthony Sottile
New submission from Anthony Sottile : this is a small proposal to add a new function to the functools module which provides better profiling-compatible `@functools.wraps(...)` the rationale comes from https://github.com/Yelp/named_decorator (which is dead / abandoned) the tl;dr from there is

[issue44087] [sqlite3] consider adding Py_TPFLAGS_DISALLOW_INSTANTIATION to sqlite3.Statement

2021-06-20 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- pull_requests: +25397 pull_request: https://github.com/python/cpython/pull/26816 ___ Python tracker ___ ___

[issue43916] Mark static types newly converted to heap types as immutable: add Py_TPFLAGS_DISALLOW_INSTANTIATION type flag

2021-06-20 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: FYI, bpo-44087 added the Py_TPFLAGS_DISALLOW_INSTANTIATION flag to sqlite3.Statement. (Side note: I find the issue title a little bit confusing.) -- ___ Python tracker ___

[issue44087] [sqlite3] consider adding Py_TPFLAGS_DISALLOW_INSTANTIATION to sqlite3.Statement

2021-06-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ccc95c7b4799570c2d7e4de3d579860ad833e1f8 by Erlend Egeberg Aasland in branch '3.10': [3.10] bpo-44087: Disallow instantiation of sqlite3.Statement (GH-26567) (GH-26816) https://github.com/python/cpython/commit/ccc95c7b4799570c2d7e4de3d5

[issue44087] [sqlite3] consider adding Py_TPFLAGS_DISALLOW_INSTANTIATION to sqlite3.Statement

2021-06-20 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44467] profiling-compatible functools.wraps

2021-06-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue44466] faulthandler should indicate if the fault happened in garbage collection

2021-06-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: faulthandler has no access to the C-stack so it cannot see the gc_collect_main() as gdb does. -- nosy: +pablogsal ___ Python tracker

[issue3276] httplib.HTTPConnection._send_request should not blindly assume dicts for headers

2021-06-20 Thread Irit Katriel
Irit Katriel added the comment: Indeed, as Terry wrote the assumption is that header is a mapping (not necessarily a dict). It is not hard to implement a Multimap that has this API: import collections.abc class Multimap(collections.abc.Mapping): def __init__(self): self.data = co

[issue44466] faulthandler should indicate if the fault happened in garbage collection

2021-06-20 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue44455] compileall should exit nonzero for nonexistent directories

2021-06-20 Thread Jacob Walls
Change by Jacob Walls : -- components: +Library (Lib) type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue43476] Enabling access to showsyntaxerror for IDLE's shell

2021-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: What I am proposing that pseudofile have one line representing a tuple with all the exception information, *including the filename* for the code with the error. In Shell, the filename will usually be another pseudofile name, . The latter are set with

[issue44468] Shouldn't `typing.get_type_hints()` default `globalns` to `{}` instead of skipping base classes?

2021-06-20 Thread Will Chen
New submission from Will Chen : An issue was recently closed that caused synthetic classes and base classes with invalid `__module__` attributes to raise `KeyError()` in `typing.get_type_hints()`: https://bugs.python.org/issue41515 However, the implemented solution appears to be to skip those

[issue39452] Improve the __main__ module documentation

2021-06-20 Thread Cameron Simpson
Change by Cameron Simpson : -- nosy: +cameron ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue24632] Improve documentation about __main__.py

2021-06-20 Thread Cameron Simpson
Change by Cameron Simpson : -- nosy: +cameron ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue17359] Mention "__main__.py" explicitly in command line docs

2021-06-20 Thread Cameron Simpson
Change by Cameron Simpson : -- nosy: +cameron ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue44469] Fix tests for "async with"

2021-06-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : In Lib/test/test_coroutines.py some tests test that the body of the "asyn with" statement with bad context manager was not executed by setting a value of a variable in the body and checking its value after executing. body_executed = False

[issue44469] Fix tests for "async with"

2021-06-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +25398 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26817 ___ Python tracker ___

[issue44470] 3.11 docs.python.org in Polish not English?

2021-06-20 Thread Samuel Marks
New submission from Samuel Marks : It's been too long since my family have been Polish! (see screenshot of https://docs.python.org/3.11/library/parser.html ) My computer is only configured for English. Running Firefox 90.0b9 (64-bit) on macOS 11.4 (20F71). -- assignee: docs@python co