[issue43574] Regression in overallocation for literal list initialization in v3.9+

2021-04-03 Thread Chad Netzer
Chad Netzer added the comment: For bpo-43574, my initial plan was to change list_resize() so that it wouldn't overallocate empty lists that were resized to be bigger, thus restoring the overallocation behavior for list-literals to be like that of earlier Python releases. However, the

[issue43725] Create a release branch ABI stability regression test

2021-04-03 Thread Gregory P. Smith
New submission from Gregory P. Smith : In order to automate prevention of ABI regressions in stable releases, we could create an automated ABI stability test generator and check the specific ABI test it generates into each specific release branch. I'm envisioning the main branch only having

[issue43710] Access violations in C extension modules on Python 3.9.3

2021-04-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: I really suggest a simple rollback (revert) of the change rather than a redo-fix for 3.9.4. Unless you like the idea of a possible 3.9.5 if the redo-fix itself has issues that haven't been given due thought in the rush to undo the 3.9.3 mistake. This

[issue42500] crash with unbounded recursion in except statement

2021-04-03 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith nosy_count: 7.0 -> 8.0 pull_requests: +23921 pull_request: https://github.com/python/cpython/pull/25179 ___ Python tracker

[issue43710] Access violations in C extension modules on Python 3.9.3

2021-04-03 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith nosy_count: 7.0 -> 8.0 pull_requests: +23920 pull_request: https://github.com/python/cpython/pull/25179 ___ Python tracker

[issue43325] Documentation should warn that 'is' is not a safe comparison operator for most values.

2021-04-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43325] Documentation should warn that 'is' is not a safe comparison operator for most values.

2021-04-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset de0b2b133011953b02536cc78f2499d5d55224f8 by Miss Islington (bot) in branch '3.9': bpo-43325: Add FAQ entry for identity tests (GH-25168) (GH-25178) https://github.com/python/cpython/commit/de0b2b133011953b02536cc78f2499d5d55224f8

[issue43325] Documentation should warn that 'is' is not a safe comparison operator for most values.

2021-04-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +23919 pull_request: https://github.com/python/cpython/pull/25178 ___ Python tracker

[issue43724] macOS cannot compute sizeof (long double)

2021-04-03 Thread Allen
Change by Allen : -- title: cannot compute sizeof (long double) -> macOS cannot compute sizeof (long double) ___ Python tracker ___

[issue43325] Documentation should warn that 'is' is not a safe comparison operator for most values.

2021-04-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset f8775e4f72240faba3947eea8efdd83ee56ae1fd by Raymond Hettinger in branch 'master': bpo-43325: Add FAQ entry for identity tests (GH-25168) https://github.com/python/cpython/commit/f8775e4f72240faba3947eea8efdd83ee56ae1fd --

[issue43724] cannot compute sizeof (long double)

2021-04-03 Thread Allen
Change by Allen : -- files: config.log nosy: allenlili priority: normal severity: normal status: open title: cannot compute sizeof (long double) type: compile error versions: Python 3.9 Added file: https://bugs.python.org/file49933/config.log ___

[issue43714] re.split(), re.sub(): '\Z' must consume end of string if it matched

2021-04-03 Thread Alexander Grigoriev
Alexander Grigoriev added the comment: For example, sed: $ sed --version sed (GNU sed) 4.8 Copyright (C) 2020 Free Software Foundation, Inc. $ sed -e 's/-\?$/x/g' <<<'a-b-' a-bx Perl: $ perl --version This is perl 5, version 32, subversion 0 (v5.32.0) built for x86_64-msys-thread-multi

[issue27129] Wordcode, part 2

2021-04-03 Thread Ned Deily
Change by Ned Deily : -- priority: normal -> release blocker versions: +Python 3.10 -Python 3.6 ___ Python tracker ___ ___

[issue34816] raise AttributeError if loading fails in ctypes.LibraryLoader.__getattr__

2021-04-03 Thread Ateeq Sharfuddin
Ateeq Sharfuddin added the comment: First patch fixing only the issue at hand on master. LibraryLoader now catches OSError for FileNotFoundError and raises AttributeError. -- Added file: https://bugs.python.org/file49932/34816.patch ___ Python

[issue34816] raise AttributeError if loading fails in ctypes.LibraryLoader.__getattr__

2021-04-03 Thread Ateeq Sharfuddin
Change by Ateeq Sharfuddin : -- keywords: +patch nosy: +ateeq nosy_count: 2.0 -> 3.0 pull_requests: +23918 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/25177 ___ Python tracker

[issue43719] Master build failure on Windows getting file system encoding

2021-04-03 Thread Terry J. Reedy
Change by Terry J. Reedy : -- priority: normal -> critical ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43719] Master build failure on Windows getting file system encoding

2021-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks everyone for the rapid responses. The PR fixes the build for me, with a clean test suite pass, so I added reviewers who could merge, a blurb, and my approval. This can be closed as out-of-date as soon as the (or a) fix is merged. --

[issue20503] super behaviour and abstract base classes (either implementation or documentation/error message is wrong)

2021-04-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +23917 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25175 ___ Python tracker

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think there is any advantage in doing this. It will just break code that has worked for a very long time. This is the reason that the logging module wasn't changed to more modern naming conventions. -- nosy: +rhettinger

[issue37804] Remove Thread.isAlive in Python 3.9

2021-04-03 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- pull_requests: +23916 pull_request: https://github.com/python/cpython/pull/25174 ___ Python tracker ___

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-03 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- keywords: +patch pull_requests: +23915 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25174 ___ Python tracker ___

[issue43723] Deprecate camelCase aliases from threading.py

2021-04-03 Thread Jelle Zijlstra
New submission from Jelle Zijlstra : Followup from issue37804: deprecate the remaining camelCase aliases, such as threading.currentThread. PR coming soon. -- assignee: Jelle Zijlstra components: Library (Lib) messages: 390165 nosy: Jelle Zijlstra, pitrou priority: normal severity:

[issue43340] json.load() can raise UnicodeDecodeError, but this is not documented

2021-04-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +23914 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25173 ___ Python tracker

[issue43709] Windows Tools\buildbot\clean.bat misses some needed pyc/pyo removal

2021-04-03 Thread David Bolen
David Bolen added the comment: Based on further information in issue #27129 as well as issue #43719 it appears a source of the problem prompting this fix was a failure to update the magic number in the original commit for #27129. The windows clean script does still leave more artifacts

[issue43719] Master build failure on Windows getting file system encoding

2021-04-03 Thread Dennis Sweeney
Dennis Sweeney added the comment: Correction: I opened GH-25172 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43719] Master build failure on Windows getting file system encoding

2021-04-03 Thread Dennis Sweeney
Dennis Sweeney added the comment: I could not successfully build even with deletion of __pycache__ in subfolders. I finally got the build to succeed after changing the magic number, so I opened GH-25069. -- ___ Python tracker

[issue43721] Documentation of property.{getter, setter, deleter} fails to mention that a *new* property is returned

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

[issue27129] Wordcode, part 2

2021-04-03 Thread Dennis Sweeney
Change by Dennis Sweeney : -- pull_requests: +23913 pull_request: https://github.com/python/cpython/pull/25172 ___ Python tracker ___

[issue43721] Documentation of property.{getter, setter, deleter} fails to mention that a *new* property is returned

2021-04-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-04-03 Thread Skip Montanaro
Skip Montanaro added the comment: I should revise that comment. The xxlimited and xxlimited_35 modules fail to build. That seems suboptimal, but perhaps is to be expected. Perhaps it would be better that compiling them not be attempted with configuring --with-trace-refs? --

[issue43722] PEP 597: FileCookieJar uses locale encoding

2021-04-03 Thread Inada Naoki
New submission from Inada Naoki : During fixing EncodingWarning in stdlibs, I found FileCookieJar, LWPCookieJar, and MozillaCookieJar use locale encoding for cookie files. I don't know much about cookie file format. If locale encoding is right encoding, we can just use `encoding="locale"`

[issue41111] [C API] Convert a few stdlib extensions to the limited C API (PEP 384)

2021-04-03 Thread Skip Montanaro
Skip Montanaro added the comment: The latest commit seems to break the build if configured --with-trace-refs. -- nosy: +skip.montanaro ___ Python tracker ___

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-03 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23912 pull_request: https://github.com/python/cpython/pull/25171 ___ Python tracker ___

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-03 Thread Inada Naoki
Inada Naoki added the comment: New changeset 35715d1e72b7e15e337087863c75af447199e0fb by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix EncodingWarning in some tests (GH-25145) https://github.com/python/cpython/commit/35715d1e72b7e15e337087863c75af447199e0fb --

[issue27129] Wordcode, part 2

2021-04-03 Thread Dennis Sweeney
Dennis Sweeney added the comment: I notice this in _bootstrap_external.py: the magic number did not get changed, only the comment: # Python 3.10a2 3433 (RERAISE restores f_lasti if oparg != 0) # Python 3.10a6 3434 (PEP 634: Structural Pattern Matching) # Python 3.10a7 3435 Use

[issue43719] Master build failure on Windows getting file system encoding

2021-04-03 Thread David Bolen
David Bolen added the comment: Dennis, just to make sure I wasn't too literal, some of the __pycache__ folders are in subdirectories (at least in Tools), so just to double check, you did a recursive search beneath Tools and Parser right? -- ___

[issue43719] Master build failure on Windows getting file system encoding

2021-04-03 Thread Dennis Sweeney
Dennis Sweeney added the comment: I ran into the same issue on Windows 10 and git bisected it to the same first bad commit, fcb55c0037baab6f98f91ee38ce84b6f874f034a The issue persists after rm .\Parser\__pycache__\* My .\Tools directory has no __pycache__. -- nosy: +Dennis Sweeney

[issue41139] cgi uses the locale encoding for log files

2021-04-03 Thread Inada Naoki
Inada Naoki added the comment: +1 for removing. But let's emit DeprecationWarning for now, and remove it later. -- components: +Library (Lib) versions: -Python 3.8, Python 3.9 ___ Python tracker

[issue41139] cgi uses the locale encoding for log files

2021-04-03 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43719] Master build failure on Windows getting file system encoding

2021-04-03 Thread David Bolen
David Bolen added the comment: Terry, it's not clear to me if this is the same issue (at first blush it appears different) but could you see if you have any pyc files in __pycache__ folders within the Tools or Parser directories in your tree that could be from prior builds? If so, remove

[issue27129] Wordcode, part 2

2021-04-03 Thread David Bolen
David Bolen added the comment: I don't think reverting the commit at this point would necessarily be helpful. While it might fix some systems, it could newly break anyone who happened to do their first build since the commit was in place. I didn't want to bug anyone over the weekend, but

[issue27129] Wordcode, part 2

2021-04-03 Thread STINNER Victor
STINNER Victor added the comment: > New changeset fcb55c0037baab6f98f91ee38ce84b6f874f034a by Mark Shannon in > branch 'master': > bpo-27129: Use instruction offsets, not byte offsets, in bytecode and > internally. (GH-25069) This change broke buildbots, please revert it to repair

[issue43719] Master build failure on Windows getting file system encoding

2021-04-03 Thread STINNER Victor
STINNER Victor added the comment: IMO it's https://bugs.python.org/issue27129#msg389991 -- ___ Python tracker ___ ___

[issue43721] Documentation of property.{getter, setter, deleter} fails to mention that a *new* property is returned

2021-04-03 Thread Antony Lee
New submission from Antony Lee : property.{getter,setter,deleter} returns a new property with a new {fget,fset,fdel}. This is documented at https://docs.python.org/3/library/functions.html#property, and intended behavior (see e.g. https://bugs.python.org/issue1620). However the

[issue43652] Upgrade Windows tcl/tk to 8.6.11

2021-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The upgrade to 8.6.10 broke a Scale test. The fix for that in #41306 conv = False if get_tk_patchlevel() >= (8, 6, 10) else float_round should still work unless there was a further Scale change. -- stage: patch review -> needs patch

[issue43652] Upgrade Windows tcl/tk to 8.6.11

2021-04-03 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +23911 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25170 ___ Python tracker

[issue43652] Upgrade Windows tcl/tk to 8.6.11

2021-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Did you use revision 0, and in 8.6.11.0, or a later one? As I mentioned in #43719, I cannot currently build master, but I will upload a PR (with .0) for CI to test. -- ___ Python tracker

[issue43720] Document various preexisting stdlib deprecations related to import for removal in Python 3.12

2021-04-03 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43720] Document various preexisting stdlib deprecations related to import for removal in Python 3.12

2021-04-03 Thread Brett Cannon
Brett Cannon added the comment: New changeset dc6d3e1e4c0c1e4b2210edab8fb4762569dc2936 by Brett Cannon in branch 'master': bpo-43720: Update import-related stdlib deprecation messages to say they will be removed in Python 3.12 (GH-25167)

[issue2135] Restructure import.c into PEP 302 importer objects

2021-04-03 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +23910 pull_request: https://github.com/python/cpython/pull/25169 ___ Python tracker ___

[issue43679] ttk.Sizegrip disappears under Windows 10 UI Scaling, with dpiAware set true and >1 scaling

2021-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: In issue 33656, we determined that tcl/tk *is* dpi aware and that telling Windows so is needed for proper text display. IDLE now issues the same Windows command (idlelib.pyshell, line 20). This perhaps should be done by Python itself, but that is not my

[issue43325] Documentation should warn that 'is' is not a safe comparison operator for most values.

2021-04-03 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +23909 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25168 ___ Python tracker

[issue41969] ttk.RadioButtons mis-sized under Windows 10 UI Scaling, with dpiAware set true

2021-04-03 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43719] Master build failure on Windows getting file system encoding

2021-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Re ""f:\dev\3x\PC\validate_ucrtbase.py" ucrtbased" exited with co de -1073741819." f:\dev\3x>py -3.10 PC\validate_ucrtbase.py ucrtbased C:\WINDOWS\SYSTEM32\ucrtbased.DLL is version 10.0.14393.33 so the failure is due to running the file with the

[issue43593] pymalloc is not aware of Memory Tagging Extension (MTE) and crashes

2021-04-03 Thread Tim Peters
Tim Peters added the comment: BTW, your cache WIP https://github.com/python/cpython/pull/25130/files partly moves to tracking pool (instead of byte) addresses, but any such attempt faces a subtlety: it's not necessarily the case that a pool is entirely "owned" by obmalloc or by the

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-04-03 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-04-03 Thread Brett Cannon
Brett Cannon added the comment: find_spec() also supercedes find_loader(). -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43720] Document various preexisting stdlib deprecations related to import for removal in Python 3.12

2021-04-03 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +23908 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25167 ___ Python tracker ___

[issue43720] Document various preexisting stdlib deprecations related to import for removal in Python 3.12

2021-04-03 Thread Brett Cannon
New submission from Brett Cannon : The following module's have preexisting deprecations with no slated removal version. Since so much of import is getting cleaned up in Python 3.12, these should finally go as well so the APIs are consistent across Python. - imp - pkgutil - importlib.util

[issue43719] Master build failure on Windows getting file system encoding

2021-04-03 Thread Terry J. Reedy
New submission from Terry J. Reedy : After a fresh update from upstream > PCbuild\build.bat -D (or without -D) on my machine ends with python.vcxproj -> f:\dev\3x\PCbuild\amd64\python_d.pdb (Full PDB) Python path configuration: PYTHONHOME = (not set) PYTHONPATH = 'f:\dev\3x\Lib'

[issue43718] HTTP CONNECT response not subject to debug level

2021-04-03 Thread Michael Osipov
New submission from Michael Osipov <1983-01...@gmx.net>: Looking at https://github.com/python/cpython/blob/63c69440c7adb0de1d191a8d3d100b335d5c2f81/Lib/http/client.py#L898 self.debuglevel is not passed to response_class() and for debugging purposes I miss to see: > send: b'CONNECT

[issue43717] Confusing OSError on HTTP CONNECT failure

2021-04-03 Thread Michael Osipov
New submission from Michael Osipov <1983-01...@gmx.net>: When working with proxies and HTTP CONNECT I came across these lines: https://github.com/python/cpython/blob/63c69440c7adb0de1d191a8d3d100b335d5c2f81/Lib/http/client.py#L901-L903 I truly fail to see why this is an OSError. OSErrors

[issue43716] curses.pair_number() function incorrect value under Windows

2021-04-03 Thread Peter J. Farley III
New submission from Peter J. Farley III : curses.pair_number() result under Windows (console or Terminal window) value must be shifted by 16 bits to be valid to use as input to the curses.pair_content() function. If the pair number result is not shifted, the call to curses.pair_content()

[issue43715] curses inch() and scrbkgd() documentation ommissions

2021-04-03 Thread Peter J. Farley III
New submission from Peter J. Farley III : The documentation for the result values of curses functions inch() and scrbkgd() or how to use those result values are omitted entirely. Documentation should at least describe how to use the result values of these functions without necessarily

[issue43593] pymalloc is not aware of Memory Tagging Extension (MTE) and crashes

2021-04-03 Thread Tim Peters
Tim Peters added the comment: Can't really know without a system to try it on, but my best guess is that these asserts are the only thing that will fail with tagging enabled. The obvious "fix" is indeed just to skip them on a platform with tagging enabled. They're meant as a sanity check

[issue43710] Access violations in C extension modules on Python 3.9.3

2021-04-03 Thread Łukasz Langa
Łukasz Langa added the comment: Tomorrow evening CEST (around 30 hours from now) I intend to release a hotfix 3.9.4 with Mark's fix. -- priority: normal -> release blocker ___ Python tracker

[issue43705] [docs] Document that SyntaxError's offsets are 1-indexed

2021-04-03 Thread Ammar Askar
Ammar Askar added the comment: Aah thanks for pointing that out Terry, I didn't realize f-strings have different semantics for SyntaxError. Would you mind making a separate issue for that, I'll look into making the documentation for it clearer after I get a chance to investigate.

[issue17306] Improve the way abstract base classes are shown in help()

2021-04-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Closing this due to lack of interest. -- resolution: -> postponed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38794] Setup: support linking openssl statically

2021-04-03 Thread William Woodruff
William Woodruff added the comment: I don't think this is a productive or polite response. If you read the issue linked, you'll note that the other flag added (--with-openssl-rpath) is in furtherance of any *already* supported linking scenario (dynamic, with a non-system-default OpenSSL). The

[issue38794] Setup: support linking openssl statically

2021-04-03 Thread Lukas Vacek
Lukas Vacek added the comment: For the record, this would have been solved more than a year ago already. When this change was proposed more than a year ago it was rejected with "There is no need to add more configure flags to build Python with a custom OpenSSL installation. " yet now it's

[issue43701] Add this optionality

2021-04-03 Thread Ned Deily
Ned Deily added the comment: If you want to pursue your suggestion for a change in the language, the best place to do so is first on the python-ideas mailing list (https://mail.python.org/mailman3/lists/python-ideas.python.org/). The issue tracker here is more for bugs and minor

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

2021-04-03 Thread Steve Dower
Steve Dower added the comment: (Copied from my comment on the PR, following the one where I said this was ready to go.) Withdrawing the readiness - @ambv and I would prefer to see this behind a flag (probably "strict" parsing), on by default for 3.10, and maybe on by default for

[issue43714] re.split(), re.sub(): '\Z' must consume end of string if it matched

2021-04-03 Thread Matthew Barnett
Matthew Barnett added the comment: Do any other regex implementations behave the way you want? In my experience, there's no single "correct" way for a regex to behave; different implementations might give slightly different results, so if the most common ones behave a certain way, then

[issue43713] sorted() signature is not accurate in the documentation

2021-04-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: There is moratorium on the / notation in the main docs. If that moratorium is lifted, we sweep through the docs and apply it. -- nosy: +rhettinger resolution: -> later stage: -> resolved status: open -> closed

[issue43711] cgi.log() uses locale encoding

2021-04-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue41139. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> cgi uses the locale encoding for log files ___ Python tracker

[issue43714] re.split(), re.sub(): '\Z' must consume end of string if it matched

2021-04-03 Thread Alexander Grigoriev
New submission from Alexander Grigoriev : If '\Z' matches as part of a pattern in re.sub() or re.split(), it should consume the end of string, and then '\Z' alone should not match the end of string again. Current behavior: Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC

[issue43701] Add this optionality

2021-04-03 Thread Vedran Čačić
Vedran Čačić added the comment: Well, just reverse the order of -= in second statement. If you write =-, it will magically work. ;-) But in the general case, sometimes introducing temporary variables is the simplest solution. The alternative would be to implement pointwise -= for tuples,

[issue43713] sorted() signature is not accurate in the documentation

2021-04-03 Thread Tomer Kalish
New submission from Tomer Kalish : According to the docs, the sorted function's signature is: sorted(iterable, *, key=None, reverse=False) But when printing its help interactively, the signature is: sorted(iterable, /, *, key=None, reverse=False) The latter seems to be the correct one, as

[issue43710] Access violations in C extension modules on Python 3.9.3

2021-04-03 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +23907 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25160 ___ Python tracker ___

[issue43712] PEP 597: fileinput uses locale encoding

2021-04-03 Thread Inada Naoki
New submission from Inada Naoki : fileinput.input() and fileinput.FileInput() don't have `encoding` parameter. User can specify encoding by `openhook=hook_encoded("utf-8")`. But we can not utilize PEP 597, and `encoding="utf-8"` is more user friendly. Additionally, `hook_compressed` doesn't

[issue43711] cgi.log() uses locale encoding

2021-04-03 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43711] cgi.log() uses locale encoding

2021-04-03 Thread Inada Naoki
Change by Inada Naoki : -- title: cgi.log() uses default encoding -> cgi.log() uses locale encoding ___ Python tracker ___ ___

[issue43711] cgi.log() uses default encoding

2021-04-03 Thread Inada Naoki
New submission from Inada Naoki : See cgi.initlog(): https://github.com/python/cpython/blob/b2a91e0c9ee18b50cc86b21211c2258520a9f5d0/Lib/cgi.py#L82 ``` logfp = open(logfile, "a") ``` This feature is not documented but can be used like this. ``` import cgi cgi.logfile="myapp.log"

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-03 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23906 pull_request: https://github.com/python/cpython/pull/25159 ___ Python tracker ___

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-03 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +23905 pull_request: https://github.com/python/cpython/pull/25158 ___ Python tracker ___

[issue43689] difflib: mention other "problematic" characters in documentation

2021-04-03 Thread Jürgen Gmach
Jürgen Gmach added the comment: First I need to apologize for not providing more info already when I created the issue. Initially, I did not even plan to create an issue, and thought the PR with the context of the current documentation would be sufficient information. Thanks for taking your

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-04-03 Thread Martin Panter
Martin Panter added the comment: Anselm's pull request PR 15175 looked hopeful to me. I've been using those changes in our builds at work for a while. -- ___ Python tracker

[issue43689] difflib: mention other "problematic" characters in documentation

2021-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: After 3+ years of Github I did not remember that B diffs use lines with change position markers and in particular that at they (often? always?) start with ?s. IDLE also uses color to mark positions (for syntax errors). The following would have been clearer