[issue43607] urllib's request.pathname2url not compatible with extended-length Windows file paths

2021-04-22 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +24259 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25539 ___ Python tracker ___

[issue43607] urllib's request.pathname2url not compatible with extended-length Windows file paths

2021-04-22 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower versions: +Python 3.10, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list

[issue43908] array.array should remain immutable

2021-04-22 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Victor, I've updated PR 25520 so PyType_Ready always sets Py_TPFLAGS_IMMUTABLE for static types. -- ___ Python tracker ___ _

[issue25782] CPython hangs on error __context__ set to the error itself

2021-04-22 Thread Irit Katriel
Irit Katriel added the comment: I agree with Chris that the issue of not hanging is independent of the question what to do about the cycle. The ExitStack issue that brought this issue about is now fixed in ExitStack (see issue25786, issue27122). If we take a step back from that, the situati

[issue38222] pathlib Path objects should support __format__

2021-04-22 Thread Steve Dower
Change by Steve Dower : -- nosy: +steve.dower nosy_count: 5.0 -> 6.0 pull_requests: +24260 pull_request: https://github.com/python/cpython/pull/25540 ___ Python tracker ___ ___

[issue38822] [Windows] Inconsistent os.stat behavior for directory with Access Denied

2021-04-22 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +24261 pull_request: https://github.com/python/cpython/pull/25540 ___ Python tracker ___ _

[issue38222] pathlib Path objects should support __format__

2021-04-22 Thread Steve Dower
Change by Steve Dower : -- pull_requests: -24260 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue43917] An error in classmethod example in the documentation of descriptor

2021-04-22 Thread Egor
New submission from Egor : In this section https://docs.python.org/3/howto/descriptor.html#class-methods in the example of python implementation of ClassMethod inside __get__ method I think that we should check hasattr(self.f, "__get__") instead of hasattr(obj, "__get__"). -- assigne

[issue43917] An error in classmethod example in the documentation of descriptor

2021-04-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue43917] An error in classmethod example in the documentation of descriptor

2021-04-22 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 3.0 -> 4.0 pull_requests: +24262 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25541 ___ Python tracker _

[issue43917] An error in classmethod example in the documentation of descriptor

2021-04-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: It looks like it should be: if hasattr(type(self.f), "__get__"): Here's the relevant C code: static PyObject * cm_descr_get(PyObject *self, PyObject *obj, PyObject *type) { classmethod *cm = (classmethod *)self; if (cm->cm_callable == NULL)

[issue18744] doc: pathological performance using tarfile

2021-04-22 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy title: pathological performance using tarfile -> doc: pathological performance using tarfile versions: +Python 3.11 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker

[issue38222] pathlib Path objects should support __format__

2021-04-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24263 pull_request: https://github.com/python/cpython/pull/25542 ___ Python tracker _

[issue38222] pathlib Path objects should support __format__

2021-04-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +24264 pull_request: https://github.com/python/cpython/pull/25543 ___ Python tracker ___ __

[issue38222] pathlib Path objects should support __format__

2021-04-22 Thread Steve Dower
Steve Dower added the comment: New changeset e07d8098892e85ecc56969d2c9a5afb3ea33ce8f by Steve Dower in branch 'master': bpo-38222: Check specifically for a drive, not just a colon (GH-25540) https://github.com/python/cpython/commit/e07d8098892e85ecc56969d2c9a5afb3ea33ce8f -- _

[issue38822] [Windows] Inconsistent os.stat behavior for directory with Access Denied

2021-04-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +24265 pull_request: https://github.com/python/cpython/pull/25543 ___ Python tracker ___ __

[issue38822] [Windows] Inconsistent os.stat behavior for directory with Access Denied

2021-04-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +24266 pull_request: https://github.com/python/cpython/pull/25542 ___ Python tracker ___ __

[issue38222] pathlib Path objects should support __format__

2021-04-22 Thread Steve Dower
Change by Steve Dower : -- pull_requests: -24263 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue38222] pathlib Path objects should support __format__

2021-04-22 Thread Steve Dower
Change by Steve Dower : -- pull_requests: -24264 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue38222] pathlib Path objects should support __format__

2021-04-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +24267 pull_request: https://github.com/python/cpython/pull/25542 ___ Python tracker ___ __

[issue21352] improve documentation indexing

2021-04-22 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list m

[issue43917] An error in classmethod example in the documentation of descriptor

2021-04-22 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +24268 pull_request: https://github.com/python/cpython/pull/25544 ___ Python tracker ___ ___

[issue38822] [Windows] Inconsistent os.stat behavior for directory with Access Denied

2021-04-22 Thread Steve Dower
Steve Dower added the comment: New changeset 9f0b3a9c8eedf694377d8638365fb9f385daa581 by Miss Islington (bot) in branch '3.8': bpo-38822: Check specifically for a drive, not just a colon (GH-25540) https://github.com/python/cpython/commit/9f0b3a9c8eedf694377d8638365fb9f385daa581 --

[issue38822] [Windows] Inconsistent os.stat behavior for directory with Access Denied

2021-04-22 Thread Steve Dower
Steve Dower added the comment: New changeset 28575923a9ee40928a9d00a7ed997a6f6a09b8d1 by Miss Islington (bot) in branch '3.9': bpo-38822: Check specifically for a drive, not just a colon (GH-25540) https://github.com/python/cpython/commit/28575923a9ee40928a9d00a7ed997a6f6a09b8d1 --

[issue39572] [typing] TypedDict's 'total' argument is undocumented

2021-04-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +24269 pull_request: https://github.com/python/cpython/pull/25545 ___ Python tracker ___ __

[issue39572] [typing] TypedDict's 'total' argument is undocumented

2021-04-22 Thread miss-islington
miss-islington added the comment: New changeset 6afb0a8078ff3fc93adc4177565c56f820ca2880 by Simon Charette in branch 'master': bpo-39572: Address typo in CHANGELOG. (GH-24999) https://github.com/python/cpython/commit/6afb0a8078ff3fc93adc4177565c56f820ca2880 -- _

[issue43917] An error in classmethod example in the documentation of descriptor

2021-04-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 14092b5a4ae4caf1c77f685450016a0d1ad0bd6c by Raymond Hettinger in branch 'master': bpo-43917: Fix pure python equivalent for classmethod (GH-25544) https://github.com/python/cpython/commit/14092b5a4ae4caf1c77f685450016a0d1ad0bd6c --

[issue43917] An error in classmethod example in the documentation of descriptor

2021-04-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +24270 pull_request: https://github.com/python/cpython/pull/25546 ___ Python tracker _

[issue39572] [typing] TypedDict's 'total' argument is undocumented

2021-04-22 Thread miss-islington
miss-islington added the comment: New changeset bc5a1a7adf0d0154cb3f247da84146dd51997540 by Miss Islington (bot) in branch '3.9': bpo-39572: Address typo in CHANGELOG. (GH-24999) https://github.com/python/cpython/commit/bc5a1a7adf0d0154cb3f247da84146dd51997540 -- __

[issue43917] An error in classmethod example in the documentation of descriptor

2021-04-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 34be48450f03b121be10a9f8e8989603478f0469 by Miss Islington (bot) in branch '3.9': bpo-43917: Fix pure python equivalent for classmethod (GH-25544) (GH-25546) https://github.com/python/cpython/commit/34be48450f03b121be10a9f8e8989603478f0469

[issue43917] An error in classmethod example in the documentation of descriptor

2021-04-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay, it's fixed. Thanks for the report. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior versions: +Python 3.10 ___ Python tracker

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2021-04-22 Thread akdor1154
akdor1154 added the comment: If I understand the target of this issue, this is a breaking change in python 3.9 . E.g. see https://github.com/SAP/PyHDB/issues/149 Ideally if we did not intend to break libraries then can this be fixed? Or if it is acceptable to have such a breaking change, can

[issue43743] BlockingIOError: [Errno 11] Resource temporarily unavailable: on GPFS.

2021-04-22 Thread Alexei Colin
Alexei Colin added the comment: Can confirm that this BlockingIOError happens on GPFS (alpine) on Summit supercomputer, tested with Python 3.8 and 3.10a7. I found that it happens only for file sizes above 65536. Minimal example: This filesize works: $ rm -f srcfile dstfile && truncate --siz

[issue43743] BlockingIOError: [Errno 11] Resource temporarily unavailable: on GPFS.

2021-04-22 Thread Alexei Colin
Change by Alexei Colin : -- versions: +Python 3.10 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43743] BlockingIOError: [Errno 11] Resource temporarily unavailable: on GPFS.

2021-04-22 Thread Alexei Colin
Change by Alexei Colin : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue43918] anext builtin docstring has no signature text or info about default argument

2021-04-22 Thread Erik Welch
New submission from Erik Welch : The new builtin `anext` does not have a signature (from `inspect.signature(anext)`). This is expected, because `inspect` does not yet support signatures with C NULL default value. However, `anext` also doesn't have text in its docstring that describes its si

[issue43918] anext builtin docstring has no signature text or info about default argument

2021-04-22 Thread Erik Welch
Change by Erik Welch : -- keywords: +patch pull_requests: +24271 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25551 ___ Python tracker ___ _

[issue32891] Add 'Integer' as synonym for 'Integral' in numbers module.

2021-04-22 Thread Sergey B Kirpichev
Change by Sergey B Kirpichev : -- keywords: +patch pull_requests: +24272 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/25552 ___ Python tracker __

[issue43877] Logging Cookbook ambiguity

2021-04-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: The queue isn't being used with a maxsize. -- nosy: -vinay.sajip ___ Python tracker ___ ___ P

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2021-04-22 Thread hai shi
hai shi added the comment: >Ideally if we did not intend to break libraries then can this be fixed? Or if it is acceptable to have such a breaking change. Hi, akdor1154, thanks for your notice. It was a bugfix in fact:) https://bugs.python.org/issue37751#msg349448 > maybe this is https://git

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2021-04-22 Thread Inada Naoki
Inada Naoki added the comment: I think it is too late. Python 3.9 has been released already. Reverting the change is also breaking change. PEP 100 says: "Search functions are expected to take one argument, the encoding name in all lower case letters and with hyphens and spaces converted to

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2021-04-22 Thread Inada Naoki
Inada Naoki added the comment: codecs.register() was added in this commit. https://github.com/python/cpython/commit/e2d67f98d1aade1059b2ff3278672b2ffbaf180e And its docstring has been added in this commit. https://github.com/python/cpython/commit/0ae2981dec3de96a1f7d63b0535992cf1462ac92 Both

[issue43911] Queue.get() memory leak

2021-04-22 Thread Jens
Jens added the comment: Hi, Thanks for your reply, so I've run same script with queue.PriorityQueue, queue.LifoQueue, queue.SimpleQueue, Asyncio.Queue as well as collections.dequeue 1. PriorityQueue ># >del_after_puts False del_after_gets True n_puts 2000 >before run >mem_pct 0.1

[issue43911] Queue.get() memory leak

2021-04-22 Thread Jens
Jens added the comment: Just inspected the PriorityQueue and LifoQueue classes, they dont employ a deque at all but simply a list, but all other Queues tested do (except the native SimpleQueue). Since they don't leak, the leak itself seems to be coming from deque, and the fact that it does

[issue43602] Include Decimal's in numbers.Real

2021-04-22 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: Well, probably everyone else agree with Raymond. Yet, I'll try to clarify few things. On Mon, Apr 19, 2021 at 03:38:29AM +, Raymond Hettinger wrote: > No strong use cases have emerged that would warrant overturning > the long-standing prior decisions

[issue43919] Potential bug in the "request" package.

2021-04-22 Thread edgj4718
New submission from edgj4718 : Hello there, I am creating a client application with python. This application consists in extracting some data from an API and doing something with it. Anyway, I added a space in the end of the URL where I am supposed to have the data, and the API did not send

[issue43911] Queue.get() memory leak

2021-04-22 Thread Jens
Jens added the comment: Results for queue._PySimpleQueue: ># >del_after_puts False del_after_gets True n_puts 2000 >before run >mem_pct 0.15% >-- put done - qsize 2000 >mem_pct 37.61% >-- gets done - qsize 0 >mem_pct 2.22% >deleting queue after gets >mem_p

[issue43919] Potential bug in the "request" package.

2021-04-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The tracker is for issues related to CPython. requests is not part of stdlib so I am closing this as a third party issue. It seems this was already raised in requests repo https://github.com/psf/requests/issues/3017 . -- nosy: +xtreak resol

[issue43856] Docs for importlib.metadata should mention Python version

2021-04-22 Thread Inada Naoki
Inada Naoki added the comment: New changeset d4fff1f580aed5d26b9b501d0e626f50da9f7bb7 by Jason R. Coombs in branch '3.9': bpo-43856: Add a versionadded directive to the importlib.metadata docs (GH-25445) https://github.com/python/cpython/commit/d4fff1f580aed5d26b9b501d0e626f50da9f7bb7

[issue43856] Docs for importlib.metadata should mention Python version

2021-04-22 Thread Inada Naoki
Inada Naoki added the comment: New changeset faad2bd87f9e1c24837dd772f0597f4ab9416c66 by Jason R. Coombs in branch '3.8': bpo-43856: Add a versionadded directive to the importlib.metadata docs (GH-25445) https://github.com/python/cpython/commit/faad2bd87f9e1c24837dd772f0597f4ab9416c66

<    1   2