[issue44227] help(bisect.bisect_left)

2021-05-24 Thread Mallika Bachan
Mallika Bachan added the comment: Conceptually, yes, but the function does return an index, and values are stored at these indices. The index it returns holds the leftmost occurrence of the target (should the target exist) >>> bisect.bisect_left([1,2,2,3],2) 1 If we insert at this index, it

[issue40172] ZipInfo corrupts file names in some old zip archives

2021-05-24 Thread Daniel Hillier
Daniel Hillier added the comment: zipfile decodes filenames using cp437 or unicode and encodes using ascii or unicode. It seems like zipfile has a preference for writing filenames in unicode rather than cp437. Is zipfile's preference for writing filenames in unicode rather than cp437

[issue43109] When using Apple Clang, --with-lto builds should not check for llvm-ar

2021-05-24 Thread Ned Deily
Ned Deily added the comment: New changeset 3af61a7176a68bfeb349eeed314b9c3d7ebc3ad5 by Miss Islington (bot) in branch '3.9': bpo-43109: Fix --with-lto configure option on macOS (GH-26341) (GH-26343) https://github.com/python/cpython/commit/3af61a7176a68bfeb349eeed314b9c3d7ebc3ad5

[issue43109] When using Apple Clang, --with-lto builds should not check for llvm-ar

2021-05-24 Thread miss-islington
miss-islington added the comment: New changeset 25a9cf197ea0d77abd49992a7751efa0046bb1e6 by Miss Islington (bot) in branch '3.10': bpo-43109: Fix --with-lto configure option on macOS (GH-26341) https://github.com/python/cpython/commit/25a9cf197ea0d77abd49992a7751efa0046bb1e6 --

[issue44151] Improve parameter names and return value ordering for linear_regression

2021-05-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +24936 pull_request: https://github.com/python/cpython/pull/26344 ___ Python tracker ___

[issue5758] fileinput.hook_compressed returning bytes from gz file

2021-05-24 Thread Inada Naoki
Inada Naoki added the comment: > I'm struggling with how to adapt the code to provide a uniform interface on > Python 3.6+. It's easy. Just passing `mode="rb"`. ``` FileInput(filelist, mode="rb", openhook=fileinput.hook_compressed) ``` This is better than `backports.hook_compressed`,

[issue44227] help(bisect.bisect_left)

2021-05-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42194] Docs for argparse.BooleanOptionalAction missing "New in version 3.9"

2021-05-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: > How can we proceed with this doc fix? Just make a new PR. I'll check it in and close the old one. -- ___ Python tracker ___

[issue42194] Docs for argparse.BooleanOptionalAction missing "New in version 3.9"

2021-05-24 Thread John Belmonte
John Belmonte added the comment: A PR was opened over a year ago, but the author never signed CLA. How can we proceed with this doc fix? -- nosy: +John Belmonte ___ Python tracker

[issue43109] When using Apple Clang, --with-lto builds should not check for llvm-ar

2021-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +24935 pull_request: https://github.com/python/cpython/pull/26343 ___ Python tracker ___

[issue43109] When using Apple Clang, --with-lto builds should not check for llvm-ar

2021-05-24 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +24934 pull_request: https://github.com/python/cpython/pull/26342 ___ Python tracker

[issue5758] fileinput.hook_compressed returning bytes from gz file

2021-05-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: A backport now exists (https://pypi.org/project/backports.hook_compressed) and addresses the issue (https://github.com/jaraco/cmdix/actions/runs/873404846). -- ___ Python tracker

[issue5758] fileinput.hook_compressed returning bytes from gz file

2021-05-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: The patch for this change has broken code that relied on the old behavior. For example: ``` import fileinput import bz2 import pathlib target = pathlib.Path('data.bz2') target.write_bytes(bz2.compress(b'Foo\nBar\nBiz')) inp =

[issue44227] help(bisect.bisect_left)

2021-05-24 Thread Mallika Bachan
Change by Mallika Bachan : -- keywords: +patch pull_requests: +24933 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26340 ___ Python tracker ___

[issue44093] compiler detection on macOS seems to be incorrect

2021-05-24 Thread Ned Deily
Change by Ned Deily : -- keywords: +patch pull_requests: +24932 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26341 ___ Python tracker ___

[issue43109] When using Apple Clang, --with-lto builds should not check for llvm-ar

2021-05-24 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +24931 pull_request: https://github.com/python/cpython/pull/26341 ___ Python tracker ___

[issue44120] logging.config.fileConfig/dictConfig can not import class

2021-05-24 Thread Hiroaki Mizuguchi
Hiroaki Mizuguchi added the comment: I understand. I am mistaken about class loading. I will withdraw this issue. -- ___ Python tracker ___

[issue44228] [urllib] Error with handling of urllib.parse.quote. Terminates halfway

2021-05-24 Thread Swee Tat Lim
New submission from Swee Tat Lim : Running this python3 -c "import urllib.parse; print (urllib.parse.quote('ab$cd#hij$klm'))" Results: ab%26efg%23hij Expected Result: ab%26efg%23hij%26klm Not sure why it terminated midway -- components: Library (Lib) messages: 394284 nosy: sweetat

[issue44227] help(bisect.bisect_left)

2021-05-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: I there is a misunderstanding here. The bisect functions never point *to* a value. Instead, they are documented to return "insertion points". Those always occur just before or after a specific value: values: 10 20 30 30 30 40

[issue42109] Use hypothesis for testing the standard library, falling back to stubs

2021-05-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's my two cents worth on the subject. * I use hypothesis during development, but don't have a need for in the the standard library. By the time code lands there, we normally have a specific idea of what edge cases needs to be in the tests. * For

[issue44151] Improve parameter names and return value ordering for linear_regression

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

[issue44227] help(bisect.bisect_left)

2021-05-24 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44151] Improve parameter names and return value ordering for linear_regression

2021-05-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 86779878dfc0bcb74b4721aba7fd9a84e9cbd5c7 by Miss Islington (bot) in branch '3.10': bpo-44151: linear_regression() minor API improvements (GH-26199) (GH-26338) https://github.com/python/cpython/commit/86779878dfc0bcb74b4721aba7fd9a84e9cbd5c7

[issue44227] help(bisect.bisect_left)

2021-05-24 Thread Mallika Bachan
New submission from Mallika Bachan : Documentation issue. help(bisect.bisect_left) says: "... if x already appears in the list, i points just before the leftmost x already there." but in fact, it actually points *to* the leftmost x already there -- messages: 394280 nosy:

[issue42109] Use hypothesis for testing the standard library, falling back to stubs

2021-05-24 Thread Guido van Rossum
Guido van Rossum added the comment: I withdraw my objection against Hypothetlsis per se. Others should debate whether the 3rd party dependency is okay. -- --Guido (mobile) -- ___ Python tracker

[issue44151] Improve parameter names and return value ordering for linear_regression

2021-05-24 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24930 pull_request: https://github.com/python/cpython/pull/26338 ___ Python tracker

[issue44206] Add a version number to dict keys.

2021-05-24 Thread STINNER Victor
STINNER Victor added the comment: Can't you please explain which kind of optimizations do you want to implement using such dict key version? -- ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2021-05-24 Thread Ned Deily
Ned Deily added the comment: Petr's analysis and PR looked good and the PR is now merged to main and to 3.10 for 3.10.0b2. Thanks, Petr! Downgrading back to normal priority. -- priority: release blocker -> normal ___ Python tracker

[issue38908] Troubles with @runtime_checkable protocols

2021-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +24929 pull_request: https://github.com/python/cpython/pull/26337 ___ Python tracker ___

[issue40222] "Zero cost" exception handling

2021-05-24 Thread Guido van Rossum
Guido van Rossum added the comment: Ah, okay. So we're not on the hook to decide this today. :-) -- ___ Python tracker ___ ___

[issue41282] Deprecate and remove distutils

2021-05-24 Thread miss-islington
miss-islington added the comment: New changeset 1c454eb2e4eb9e08ee94920c0e1ca7c8896371ec by Miss Islington (bot) in branch '3.10': bpo-41282: Fix broken `make install` (GH-26329) https://github.com/python/cpython/commit/1c454eb2e4eb9e08ee94920c0e1ca7c8896371ec --

[issue40222] "Zero cost" exception handling

2021-05-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Small note, as I mentioned in my correction email (https://mail.python.org/archives/list/python-...@python.org/message/GBD57CUUU4K5NMQDTEZXNCX76YISEIGQ/), this is a release blocker for 3.11 (it was not marked in the issue what Python version was

[issue40222] "Zero cost" exception handling

2021-05-24 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I think we're waiting here for the release manager to decide, right? As Petr mentions, the release manager doesn't have authority to decide if the backwards compatibility policy can be ignored, only the Steering Council. > Should we roll back the

[issue42392] [document removal of] the deprecated 'loop' parameter asyncio API in 3.10

2021-05-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: remove the deprecated 'loop' parameter asyncio API -> [document removal of] the deprecated 'loop' parameter asyncio API in 3.10 ___ Python tracker

[issue42392] remove the deprecated 'loop' parameter asyncio API

2021-05-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker ___ ___

[issue40222] "Zero cost" exception handling

2021-05-24 Thread Guido van Rossum
Guido van Rossum added the comment: I think we're waiting here for the release manager to decide, right? Should we roll back the change to PyCode_NewWithPosOnlyArgs() or keep it? Presumably the requested docs aren't the (beta) release blocker? --

[issue41282] Deprecate and remove distutils

2021-05-24 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 21.0 -> 22.0 pull_requests: +24928 pull_request: https://github.com/python/cpython/pull/26336 ___ Python tracker

[issue44222] Improving _removeHandlerRef for a very long _handlerList

2021-05-24 Thread Yonatan Goldschmidt
Yonatan Goldschmidt added the comment: That system has many (>10k) objects of a certain type. Each of them has a separate Logger object + Handlers. That was done, among other reasons, to allow for easy consuming of the logs relating to a particular object in a file-based manner. I agree

[issue42392] remove the deprecated 'loop' parameter asyncio API

2021-05-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: There appear to be no versionchanged:: 3.10 in the asyncio docs on the APIs that formerly accepted a loop= parameter linking people to information on when that went away (3.10) and why. Specifically I'm talking about

[issue44079] [sqlite3] remove superfluous statement weak ref list from connection object

2021-05-24 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > I'm not fully sure that the both use cases can be combined. I'm fully sure they can :) Did I miss anything in msg393942? AFAICS, there is no need for the weak ref list anymore. -- ___ Python tracker

[issue44226] Threads shutting down in Py 2.7 but not in Py 3.69 while making SSH connection using Paramiko module

2021-05-24 Thread Eric V. Smith
Eric V. Smith added the comment: This was reported a few hours ago at https://github.com/paramiko/paramiko/issues/1856. I'm closing this as a third party issue. -- nosy: +eric.smith resolution: -> third party stage: -> resolved status: open -> closed

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

2021-05-24 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43853] [sqlite3] Improve sqlite3_value_text() error handling

2021-05-24 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: The affected branch is exercised by the following tests: - test_aggr_check_param_blob - test_aggr_check_param_float - test_aggr_check_param_int - test_aggr_check_param_none - test_aggr_check_param_str - test_aggr_check_params_int -

[issue42654] Add folder for python customizations: __sitecustomize__

2021-05-24 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-05-24 Thread David Edelsohn
David Edelsohn added the comment: It seems that PyOS_AfterFork_Child() needs to do something like PyThreadState *tstate = PyThreadState_Get(); PyObject *wr = _PyObject_CAST(tstate->on_delete_data); PyObject *obj = PyWeakref_GET_OBJECT(wr); lockobject *lock; if (obj != Py_None) { lock =

[issue11486] Add option to not install into /Applications

2021-05-24 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Ronald, do you still wish to apply this? It should be easy to rebase this patch onto main. If not, we should perhaps close this issue. -- nosy: +erlendaasland versions: +Python 3.11 -Python 3.4 ___ Python

[issue43665] AIX: test_importlib regression (ENV change)

2021-05-24 Thread David Edelsohn
Change by David Edelsohn : -- nosy: +David.Edelsohn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44226] Threads shutting down in Py 2.7 but not in Py 3.69 while making SSH connection using Paramiko module

2021-05-24 Thread Muralidhar BN
New submission from Muralidhar BN : Threads shutting down in Py 2.7 but not in Py 3.69 while making SSH connection using Paramiko module Executing code qa-test-execute.py in Py 2.7 (Ubuntu 14.04.6 LTS) Command 1 : sudo python ./qa-test-execute.py Output 1 : 2021-05-24

[issue42112] ZipFIle.write remove slash at the beginning of member's path

2021-05-24 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43066] Zipfile with leading slashes

2021-05-24 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29468] zipfile should catch ValueError as well as OSError to detect bad seek calls

2021-05-24 Thread Filipe Laíns
Filipe Laíns added the comment: That would not stay true to its meaning. AFAIK there are no implied exceptions in file objects. Given the meaning of ValueError, I'd say it is appropriate here. -- nosy: +FFY00 ___ Python tracker

[issue42043] zipfile.Path should support inheritance

2021-05-24 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42043] zipfile.Path should support inheritance

2021-05-24 Thread Filipe Laíns
Filipe Laíns added the comment: This can be closed now. -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42654] Add folder for python customizations: __sitecustomize__

2021-05-24 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44192] Annotations, Inheritance and Circular Reference

2021-05-24 Thread Filipe Laíns
Filipe Laíns added the comment: s/holder/older/ Sorry, my dyslexia is acting up. -- ___ Python tracker ___ ___ Python-bugs-list

[issue44192] Annotations, Inheritance and Circular Reference

2021-05-24 Thread Filipe Laíns
Filipe Laíns added the comment: The annotations will effectively become strings, instead of object references, in Python 3.11, which solves this issue. You can enable this behavior in holder Python version with `from __future__ import annotations`, see PEP 563[1]. >>> class Base: ...

[issue44195] importlib.abc.TraversableReader is not implemented

2021-05-24 Thread miss-islington
miss-islington added the comment: New changeset ab4da079232356e781743b2782148bc7c03f1ee3 by Miss Islington (bot) in branch '3.9': [3.9] bpo-44195: Use 'TraversableResources' in the docs to match the implementation. (GH-26317) (GH-26335)

[issue44195] importlib.abc.TraversableReader is not implemented

2021-05-24 Thread miss-islington
miss-islington added the comment: New changeset d309bcc9e36adb2437a02550514df3efeb1b2343 by Miss Islington (bot) in branch '3.10': bpo-44195: Use 'TraversableResources' in the docs to match the implementation. (GH-26317)

[issue44195] importlib.abc.TraversableReader is not implemented

2021-05-24 Thread miss-islington
Change by miss-islington : -- pull_requests: +24927 pull_request: https://github.com/python/cpython/pull/26335 ___ Python tracker ___

[issue44195] importlib.abc.TraversableReader is not implemented

2021-05-24 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +24926 pull_request: https://github.com/python/cpython/pull/26334 ___ Python tracker

[issue44195] importlib.abc.TraversableReader is not implemented

2021-05-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: > are people supposed to be implementing readers with just files(), or are they > always expected to inherit TraversableResources? A resource provider could potentially implement only the `files()` method (what I think you're calling `TraversableReader`),

[issue42937] 192.0.0.8 (IPv4 dummy address) considered globally reachable

2021-05-24 Thread Wayne Johnston
Wayne Johnston added the comment: I completely agree with comments about .is_global and special_use. Private IPs are just a subset of special use. For some part Private means the Private use networks reserved by IANA and specified in IETF RFC1918. For this PR "IPv4 dummy address" is

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-05-24 Thread Beuc
Change by Beuc : -- nosy: -Beuc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44207] Add a version number to Python functions

2021-05-24 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44206] Add a version number to dict keys.

2021-05-24 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44206] Add a version number to dict keys.

2021-05-24 Thread Mark Shannon
Mark Shannon added the comment: http://theses.gla.ac.uk/2975/1/2011shannonphd.pdf page 128. It means we don't need to cache a pointer to the keys, just the version number. The version number is half the size (for 64 bit machines) and using it means that we don't leak keys. --

[issue28806] Improve the netrc library

2021-05-24 Thread Emmanuel Arias
Emmanuel Arias added the comment: Hello everybody I've just make this PR https://github.com/python/cpython/pull/26330 to continue the work. -- ___ Python tracker ___

[issue44207] Add a version number to Python functions

2021-05-24 Thread Ken Jin
Change by Ken Jin : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44206] Add a version number to dict keys.

2021-05-24 Thread STINNER Victor
STINNER Victor added the comment: I don't understand how such "key version" would be useful. Can you please elaborate? -- ___ Python tracker ___

[issue44206] Add a version number to dict keys.

2021-05-24 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +24925 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26333 ___ Python tracker

[issue44206] Add a version number to dict keys.

2021-05-24 Thread Mark Shannon
Mark Shannon added the comment: The version is on the dict keys. It changes if the dict keys object changes in a meaningful way. So, no it doesn't change if a value is changed. Nor would it change if the keys were shared and a new key-value pair is added to a dict, but that key was already

[issue44155] Race condition when using multiprocessing BaseManager and Pool in Python3

2021-05-24 Thread Jun
Change by Jun : -- keywords: +patch nosy: +junnplus nosy_count: 1.0 -> 2.0 pull_requests: +24924 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26332 ___ Python tracker

[issue44220] PyStructSequence_UnnamedField unavailable on Windows

2021-05-24 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch nosy: +kj nosy_count: 5.0 -> 6.0 pull_requests: +24923 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26331 ___ Python tracker

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2021-05-24 Thread Fredrik Bengtsson
Fredrik Bengtsson added the comment: This also causes an issue when using stftime and strptime together on Linux (Ubuntu 20.04.1 LTS). When encoding a datetime using strftime and decoding with strptime using the same pattern an error is raised if year < 1000. Example: >>> pattern =

[issue44225] stop() on a stopped loop inhibits the next run_forever

2021-05-24 Thread Erik Carstensen
New submission from Erik Carstensen : If you call stop() on an already stopped event loop, then the next call to run_forever will terminate after one loop iteration. I would expect the stop to either be a nop, or to be invalid in this state (and raise an exception). Example: import asyncio

[issue28806] Improve the netrc library

2021-05-24 Thread Emmanuel Arias
Change by Emmanuel Arias : -- pull_requests: +24922 pull_request: https://github.com/python/cpython/pull/26330 ___ Python tracker ___

[issue37658] In some cases asyncio.wait_for can lead to socket leak.

2021-05-24 Thread Denis S. Otkidach
Denis S. Otkidach added the comment: Re: msg393586 > See my comment in the PR for a suggestion about an alternative structure for > wait_for, which may avoid this gap and hence prevent the leak (but I have not > tested it!) Unfortunately this didn't close the gap, so the leak persisted. I

[issue41282] Deprecate and remove distutils

2021-05-24 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +24921 pull_request: https://github.com/python/cpython/pull/26329 ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2021-05-24 Thread Petr Viktorin
Petr Viktorin added the comment: When building Python, we need two distinct "include" directories: - source .h files - install target for .h files Note that this doesn't matter except when building Python from source. Historically: - source .h files were in the sysconfig scheme under

[issue44217] Tkinter/IDLE: literal astral char discombobulates text editing

2021-05-24 Thread Tal Einat
Tal Einat added the comment: > It is partially an IDLE issue. The code expects that indices in Python string > correspond indices in Tcl string, but this is not true in case of astral > characters which are encoded as 2 (or maybe even 4) characters in Tcl. It's not just that - Tk's Text

[issue44170] ShareableList cannot safely handle multibyte utf-8 characters

2021-05-24 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +24920 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26328 ___ Python tracker

[issue44222] Improving _removeHandlerRef for a very long _handlerList

2021-05-24 Thread Vinay Sajip
Vinay Sajip added the comment: Seems a bit of a pathological case - out of interest, why do you need to create tens of thousands of loggers and handlers? Each logger is supposed to represent an area of the application. If you want to track e.g. client IP requests or similar, there are

[issue44120] logging.config.fileConfig/dictConfig can not import class

2021-05-24 Thread Vinay Sajip
Vinay Sajip added the comment: You can't expect things to work if you introduce ambiguities such as a attribute `bar` in module `foo` as well as a `foo.bar` module. If there were a clear delineation between where a module stops and where a set of attributes starts, e.g.

[issue44224] urllib.parse.urljoin behaves differently in Python 3.9.5

2021-05-24 Thread rushter
rushter added the comment: Sorry, I found the commit that mentions this https://github.com/python/cpython/commit/0593ae84af9e0e8332644e7ed13d7fd8306c4e1a It's not live on Python.org though. -- stage: -> resolved status: open -> closed ___ Python

[issue44224] urllib.parse.urljoin behaves differently in Python 3.9.5

2021-05-24 Thread rushter
New submission from rushter : Since Python 3.9.5, `urllib.parse.urljoin` now strips newlines from the destination URL. I think this should be at least mentioned in the `/Misc/NEWS.d`. Python 3.8.10: >>> urllib.parse.urljoin('http://a.ru', '\nsome/location') 'http://a.ru/\nsome/location'

[issue41282] Deprecate and remove distutils

2021-05-24 Thread Ned Deily
Ned Deily added the comment: Er, make that "GH-26327 attempts to fix the problem ... " but I see from the CI that it causes test_distutils to fail in the simpler case of running the test from the build directory (rather than from an installed location which does pass). I have run out of

[issue41282] Deprecate and remove distutils

2021-05-24 Thread Ned Deily
Ned Deily added the comment: It looks like 341e8a939aca6e9f59ffb0e6daee5888933694ed (GH-24549) incorrectly deleted an important check in sysconfig that is needed for building the cpython standard library on unix-y systems. The chain of events is somewhat complicated but the problem can be

[issue44155] Race condition when using multiprocessing BaseManager and Pool in Python3

2021-05-24 Thread David Chen
David Chen added the comment: After some investigation, i almost finally identified the root cause - it was caused by the following line in `Server` class in `manager.py` file: ``` self.listener = Listener(address=address, backlog=16) ``` i'm not sure where the magic number `16` came from,

[issue44217] Tkinter/IDLE: literal astral char discombobulates text editing

2021-05-24 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: The first and third behavior is only occurring for IDLE. I believe the third one is a cause of the first one. The second behavior of dancing is a Tcl/Tk problem. -- ___ Python tracker

[issue41282] Deprecate and remove distutils

2021-05-24 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +24919 pull_request: https://github.com/python/cpython/pull/26327 ___ Python tracker ___

[issue44217] Tkinter/IDLE: literal astral char discombobulates text editing

2021-05-24 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: STM like the most reasonable thing to do is to enhance the docs, as Terry suggested. -- ___ Python tracker ___

[issue44223] := in comprehensions does not work

2021-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, it works, but the priority of := is lower than priority of other operators. (x := item.upper() not in "ABC") is interpreted as (x := (item.upper() not in "ABC")). -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue44217] Tkinter/IDLE: literal astral char discombobulates text editing

2021-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is partially an IDLE issue. The code expects that indices in Python string correspond indices in Tcl string, but this is not true in case of astral characters which are encoded as 2 (or maybe even 4) characters in Tcl. To fix it we need to translate

[issue44223] := in comprehensions does not work

2021-05-24 Thread Dennis Sweeney
Dennis Sweeney added the comment: The parser rejects this ambiguity and requires parentheses: [ xxx for item in collection if (xxx := mutator(item)) is not None ] Example ambiguity: >>> [x for item in "abcdefabc" if x := item.upper() not in "ABC"] SyntaxError: invalid syntax >>>

[issue44223] := in comprehensions does not work

2021-05-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: "Does not work" is not informative. What did you get and what did you expect to get? Please proved a complete reproducible example. -- nosy: +serhiy.storchaka ___ Python tracker

[issue44223] := in comprehensions does not work

2021-05-24 Thread Марк Коренберг
New submission from Марк Коренберг : [ xxx for item in collection if xxx := mutator(item) is not None ] -- components: Interpreter Core, Parser messages: 394233 nosy: lys.nikolaou, pablogsal, socketpair priority: normal severity: normal status: open title: := in

[issue44214] PyArg_Parse* for vectorcall?

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