[issue40277] Improve repr for _tuplegetter objects

2020-04-13 Thread Raymond Hettinger
New submission from Raymond Hettinger : Formerly, the accessor for named tuples were more informative: >>> class Pt(NamedTuple): x: int y: int >>> vars(Pt)['x'] >>> vars(Pt)['x'].fget operator.itemgetter(0) Currently, it is less informative: >

[issue40266] Failure to build _ssl module on ubuntu xenial

2020-04-13 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +18857 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/19506 ___ Python tracker __

[issue39953] Let's update ssl error codes

2020-04-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Mon, Apr 13, 2020, at 17:54, Christian Heimes wrote: > > Christian Heimes added the comment: > > Could you please give me a chance to review PRs for the SSL module? The original PR was open for 23 days before I merged it. I happy to here feedback at

[issue40266] Failure to build _ssl module on ubuntu xenial

2020-04-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 584a3cfda4d7a65ea0c1ea1ee541378bb7be46ca by Benjamin Peterson in branch 'master': closes bpo-40266, closes bpo-39953: Use numeric lib code if compiling against old OpenSSL. (GH-19506) https://github.com/python/cpython/commit/584a3cfda4d7a65e

[issue40266] Failure to build _ssl module on ubuntu xenial

2020-04-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +18858 pull_request: https://github.com/python/cpython/pull/19507 ___ Python tracker _

[issue39953] Let's update ssl error codes

2020-04-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +18859 pull_request: https://github.com/python/cpython/pull/19507 ___ Python tracker ___ __

[issue39953] Let's update ssl error codes

2020-04-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 584a3cfda4d7a65ea0c1ea1ee541378bb7be46ca by Benjamin Peterson in branch 'master': closes bpo-40266, closes bpo-39953: Use numeric lib code if compiling against old OpenSSL. (GH-19506) https://github.com/python/cpython/commit/584a3cfda4d7a65e

[issue40266] Failure to build _ssl module on ubuntu xenial

2020-04-13 Thread miss-islington
miss-islington added the comment: New changeset c496e29c2bd0c29327c93174d5a40d2dc5a09402 by Miss Islington (bot) in branch '3.8': closes bpo-40266, closes bpo-39953: Use numeric lib code if compiling against old OpenSSL. (GH-19506) https://github.com/python/cpython/commit/c496e29c2bd0c29327c

[issue39953] Let's update ssl error codes

2020-04-13 Thread miss-islington
miss-islington added the comment: New changeset c496e29c2bd0c29327c93174d5a40d2dc5a09402 by Miss Islington (bot) in branch '3.8': closes bpo-40266, closes bpo-39953: Use numeric lib code if compiling against old OpenSSL. (GH-19506) https://github.com/python/cpython/commit/c496e29c2bd0c29327c

[issue40278] pathlib Path.replace raises OSError when target exists

2020-04-13 Thread Michael Selik
New submission from Michael Selik : The pathlib module ``Path.replace(target)`` states that "If target points to an existing file or directory, it will be unconditionally replaced." However, this does not appear to be true. I experience an OSError ``[Errno 66] Directory not empty`` when att

[issue40278] pathlib Path.replace raises OSError when target exists

2020-04-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: replace under the hood uses os.replace. The docs for os.replace indicate error for certain scenarios where target is a directory : https://docs.python.org/3/library/os.html#os.replace . See also some difference between os.rename and os.replace : ht

[issue40278] pathlib Path.replace raises OSError when target exists

2020-04-13 Thread Michael Selik
Michael Selik added the comment: The docs for ``os.replace`` says "If dst is a directory, OSError will be raised." That's helpful, but the docs for ``pathlib.Path.replace`` make it seem like the target will be unconditionally replaced regardless of whether it's a file or directory. Sure, t

[issue39481] Implement PEP 585 (Type Hinting Generics In Standard Collections)

2020-04-13 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset cecf049673da6a24435acd1a6a3b34472b323c97 by Ethan Smith in branch 'master': bpo-39481: Make functools.cached_property, partial, partialmethod generic (#19427) https://github.com/python/cpython/commit/cecf049673da6a24435acd1a6a3b34472b323c97

[issue39481] Implement PEP 585 (Type Hinting Generics In Standard Collections)

2020-04-13 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 8ef875028a3644a329c87ce420a73793e315143f by Ethan Smith in branch 'master': bpo-39481: Make weakref and WeakSet generic (GH-19497) https://github.com/python/cpython/commit/8ef875028a3644a329c87ce420a73793e315143f --

[issue40279] Documentation example of module init function lacks error handling

2020-04-13 Thread Stefan Behnel
New submission from Stefan Behnel : The example in the docs that shows how to initialise an embedded module gives a wrong impression about error handling. Most of the functions that it calls return error codes, but those do not get looked at. Innocent users who copy and paste the example may

<    1   2