[Python-Dev] Re: Move support of legacy platforms/architectures outside Python

2021-02-22 Thread Terry Reedy
On 2/22/2021 6:58 AM, Victor Stinner wrote: On Mon, Feb 22, 2021 at 12:51 PM Ivan Pozdeev via Python-Dev wrote: IIRC I suggested earlier that buildsbots should be integrated into the PR workflow in order to make it the contributor's rather than a core dev's burden to fix any breakages that

[Python-Dev] Re: Move support of legacy platforms/architectures outside Python

2021-02-22 Thread Terry Reedy
On 2/22/2021 6:20 AM, Victor Stinner wrote: To have an idea of the existing maintenance burden, look at emails sent to: https://mail.python.org/archives/list/buildbot-sta...@python.org/ Every single email is basically a problem. There are around 110 emails over the last 30 years: 30 days,

[Python-Dev] Re: Inadequate error reporting during function call setup stage

2021-02-21 Thread Terry Reedy
On 2/21/2021 12:04 PM, Paul Sokolovsky wrote: Traceback (most recent call last): File "pseudoc_tool.py", line 91, in first_class_function_value(func, **pass_params) TypeError: print() got an unexpected keyword argument 'noann' This is not typical behavior in current Python (3.8+).

[Python-Dev] Re: Security releases of CPython

2021-02-19 Thread Terry Reedy
On 2/19/2021 5:11 AM, Michał Górny wrote: On Thu, 2021-02-11 at 23:24 -0500, Terry Reedy wrote: Releases are not just a push of a button. Make the release job too onerous, and there might not be any more volunteers. While I understand your concerns and sympathize with them, Your

[Python-Dev] Re: Security releases of CPython

2021-02-11 Thread Terry Reedy
On 2/11/2021 3:23 PM, Michał Górny wrote: Hello, I'm the primary maintainer of CPython packages in Gentoo. I would like to discuss possible improvement to the release process in order to accelerate releasing security fixes to users. I feel that vulnerability fixes do not make it to end users

[Python-Dev] Re: PEP 597: Add optional EncodingWarning

2021-02-09 Thread Terry Reedy
On 2/9/2021 8:28 PM, Inada Naoki wrote: Note that many Python users don't use consoles. Those of use who do may find it hard to imagine just how easy we have made computing. My daughter minored in Computer Science about 6 years ago. She never saw Command Prompt until the summer after her

[Python-Dev] Re: PEP 647 (type guards) -- final call for comments

2021-02-09 Thread Terry Reedy
On 2/9/2021 11:21 AM, Guido van Rossum wrote: I think we have reached consensus on PEP 647 in typing-sig. We have implementations for mypy and pyright, not sure about the rest. This PEP does not affect CPython directly except for the addition of one special item (TypeGuard) to typing.py -- it

[Python-Dev] Re: Change windows installation program name

2021-02-08 Thread Terry Reedy
On 2/8/2021 3:12 PM, Ivan Pozdeev via Python-Dev wrote: You want to make a poll or something? Discourse can do that: https://meta.discourse.org/t/how-to-create-polls/77548 On 08.02.2021 23:07, Barry Scott wrote: I raise https://bugs.python.org/issue43156 that suggests that new users on

[Python-Dev] Re: PR Review request - bpo-41928: Add support for Unicode Path Extra Field in ZipFile

2021-02-08 Thread Terry Reedy
On 2/7/2021 1:55 PM, Andrea Giudiceandrea via Python-Dev wrote: Hi Python Dev team, I submitted a PR https://github.com/python/cpython/pull/23736 two months ago. The PR, which fixes an issue https://bugs.python.org/issue41928 in ZipFile, is "awaiting core review". I nosied and requested a

[Python-Dev] Re: What's up with assignment expression and tuples?

2021-02-05 Thread Terry Reedy
On 2/5/2021 2:51 AM, Paul Sokolovsky wrote: https://www.python.org/dev/peps/pep-0572/ ... ((a, b) := (1, 2)) File "", line 1 SyntaxError: cannot use assignment expressions with tuple Why this accidental syntactic gap? As should be clear from reading "Differences between

[Python-Dev] Re: PEP 563: get_type_hints should use closure when available

2021-02-03 Thread Terry Reedy
On 2/2/2021 8:37 PM, Caleb Donovick wrote: The discussion around PEP 649 got me thinking about what I believe is the largest downside to PEP 563: the inability to evaluate annotations created with closures.  While this is in general unavoidable,  if the type is ever referenced in an annotated

[Python-Dev] Re: What is the pyclbr public API?

2021-01-29 Thread Terry Reedy
On 1/29/2021 8:57 PM, Guido van Rossum wrote: On Fri, Jan 29, 2021 at 5:39 PM Terry Reedy <mailto:tjre...@udel.edu>> wrote: Guido, thank you for the helpful discussion.  I now think that we should just add 'end_lineno=None' at the end of the Function/Class __init__ s

[Python-Dev] Re: What is the pyclbr public API?

2021-01-29 Thread Terry Reedy
return a proper tree with a root Module node, with attributes file, name, lineno (1), end_lineno, and children. On 1/28/2021 11:32 PM, Guido van Rossum wrote: On Thu, Jan 28, 2021 at 8:08 PM Terry Reedy <mailto:tjre...@udel.edu>> wrote: On 1/27/2021 7:01 PM, Guido van Ros

[Python-Dev] Re: What is the pyclbr public API?

2021-01-28 Thread Terry Reedy
r annoyance of a misplaced required 'optional' parameter. Since I have in mind a possible IDLE use for end_lineno, quite different from that of the patch author, I consider either way of adding it superior to never adding it. On Wed, Jan 27, 2021 at 2:36 PM Terry Reedy <mailto:tjre...@udel.e

[Python-Dev] Re: Why aren't we allowing the use of C11?

2021-01-28 Thread Terry Reedy
On 1/28/2021 11:26 AM, Mark Shannon wrote: PEP 7 says that C code should conform to C89 with a subset of C99 allowed. As I remember, when the Python C dialect was discussed about 4 years ago, no one seriously proposed moving beyond a subset of C99 addition, because of the state of MSVC.

[Python-Dev] What is the pyclbr public API?

2021-01-27 Thread Terry Reedy
pyclbr is the stdlib module browser (once just class browser, hence the name). The doc https://docs.python.org/3/library/pyclbr.html#module-pyclbr, which I revised in 2017, documents readline and readline_ex as the public call interface. The functions return a hierarchical structure that

[Python-Dev] Re: Speeding up CPython

2021-01-24 Thread Terry Reedy
On 1/24/2021 6:09 PM, Bruno Cabral wrote: Hello Everyone, I´m very curious about this proposal, but unfortunately it has been a while since I heard any news about this project. Does anyone know what happened? The Python Software Foundation currently has a shortfall of funds rather than a

[Python-Dev] Re: PEP 651 -- Robust Overflow Handling

2021-01-19 Thread Terry Reedy
On 1/19/2021 10:01 AM, Mark Shannon wrote: The following program will run safely to completion: I interpreted this to mean 'works now', on whatever system you tested this on. You question suggests that you meant "fails now but will work with a successful patch for the PEP".

[Python-Dev] Re: PEP 651 -- Robust Overflow Handling

2021-01-19 Thread Terry Reedy
On 1/19/2021 8:31 AM, Mark Shannon wrote: It's time for yet another PEP :) Fortunately, this one is a small one that doesn't change much. It's aim is to make the VM more robust. Abstract This PEP proposes that machine stack overflow is treated differently from runaway recursion.

[Python-Dev] Re: PEP 651 -- Robust Overflow Handling

2021-01-19 Thread Terry Reedy
On 1/19/2021 8:31 AM, Mark Shannon wrote: Hi everyone, It's time for yet another PEP :) Fortunately, this one is a small one that doesn't change much. It's aim is to make the VM more robust. Abstract This PEP proposes that machine stack overflow is treated differently from runaway

[Python-Dev] Re: seg fault in 3.10a4

2021-01-17 Thread Terry Reedy
On 1/17/2021 8:05 AM, Stestagg wrote: Hi Robin It would be ideal if you could please create a new issue here: https://bugs.python.org/ If 'reportlab userguide creation' uses any 3rd party compiled C code, this may be premature. bugs.python.org is for patching

[Python-Dev] Re: 3.10 change (?) for __bool__

2021-01-13 Thread Terry Reedy
On 1/13/2021 8:56 PM, Greg Ewing wrote: On 14/01/21 1:13 pm, Paul Sokolovsky wrote: But nobody talked about optimizing away generic "pure"-annotated functions (which would differ from "mathematical" definition of purity), only about optimizing "pure" *dunder* methods The same thing applies.

[Python-Dev] Re: How to add multiple python kernel(2.7.x,3.6.x,3.7.x) to jupyterhub

2020-12-20 Thread Terry Reedy
On 12/20/2020 12:24 PM, Shaik Zainul wrote: Hi, i am new to jupyterhub and i am trying to setup 1. add multiple python kernel(2.7.x,3.6.x,3.7.x) to jupyterhub 2. setup user specific kernel - means i have 3 kernels PY3, Pyspark and R. how can i assign this 3 PY3, Pyspark and R kernels to User1,

[Python-Dev] Re: NEWS, changelog, and blurb -- a teaching moment

2020-12-09 Thread Terry Reedy
On 12/9/2020 2:19 PM, Ethan Furman wrote: Greetings! I'm hoping somebody can alleviate my confusion.  I had thought that the blurb tool was created to resolve the near-constant push races when the NEWS file was updated; but it appears that it only affects the change log. Unreleased blurbs

[Python-Dev] Re: The semantics of pattern matching for Python

2020-11-20 Thread Terry Reedy
Mark, did you get the response I sent to hotpy.org 4 days ago? Is that a real address? I ask because the typos I reported are still there and trying to visit hotpy.org fails. -- Terry Jan Reedy ___ Python-Dev mailing list -- python-dev@python.org

[Python-Dev] Re: Review patch fixing packed bitfields in ctypes struct/union

2020-11-20 Thread Terry Reedy
On 11/20/2020 4:03 AM, Simon Cross wrote: Thank you for this [cttpes] patch! > I can't help land it, but it looks sane to me. If you have a github account, you can help by reviewing it. Check the spelling, grammar, and clarity of comments, docstrings, and news item. Can the code be

[Python-Dev] Re: Questions about about the DLS 2020

2020-11-16 Thread Terry Reedy
On 11/16/2020 11:57 AM, Tobias Kohn wrote: 1.  This really comes down to how you look at it, or how you define pattern matching.  The issue here is that the concept of pattern matching has grown into a large and somewhat diverse flock of interpretations and implementations (as a side note:

[Python-Dev] Re: Questions about about the DLS 2020

2020-11-16 Thread Terry Reedy
On 11/16/2020 6:14 AM, Mark Shannon wrote: 2. Is the error in the ast matching example, an intentional "simplification" or just an oversight? The example: ``` def simplify(node):     match node:     case BinOp(Num(left), '+', Num(right)):     return Num(left + right)    

[Python-Dev] Re: Please do not remove random bits of information from the tutorial

2020-11-08 Thread Terry Reedy
On 11/8/2020 5:51 PM, Inada Naoki wrote: On Mon, Nov 9, 2020 at 3:46 AM Riccardo Polignieri via Python-Dev wrote: Rather, I am slightly concerned about the method in itself - that a deletion may occur following only a brief exchange on the bug tracker. Again, I did it following not only a

[Python-Dev] Re: Drop Solaris, OpenSolaris, Illumos and OpenIndiana support in Python

2020-10-31 Thread Terry Reedy
On 10/30/2020 5:08 PM, Garrett D'Amore via Python-Dev wrote: I’m not on this list. But I have offered to help - if there are tasks that need to be done to help this I can help put the weight of a commercial entity behind it whether that involves assigning our developers to work on this,

[Python-Dev] Re: PyPy performance stats (was Re: Speeding up CPython)

2020-10-26 Thread Terry Reedy
On 10/26/2020 11:42 AM, Matti Picus wrote: On 10/21/20 2:38 PM, Matti Picus wrote: [0] https://speed.pypy.org/comparison/ Just as a follow up: the front page of speed.pypy.org now shows the latest pypy 3.6 vs cpython 3.6.7. I just clicked the link and there is 3.7.6, not 3.6.7. But why

[Python-Dev] Re: Speeding up CPython

2020-10-20 Thread Terry Reedy
On 10/20/2020 2:49 PM, Dan Stromberg wrote: I suspect what it needs most is HPY work, which could benefit a lot of Python language implementations in the long term: https://github.com/hpyproject/hpy $2e6 spent on HPY could be pretty amazing. I don't think the two projects are mutually

[Python-Dev] Re: Performance benchmarks for 3.9

2020-10-14 Thread Terry Reedy
On 10/14/2020 9:16 AM, Pablo Galindo Salgado wrote: You can check these benchmarks I am talking about by: * Go here: https://speed.python.org/comparison/ * In the left bar, select "lto-pgo latest in branch '3.9'" and "lto-pgo latest in branch '3.8'" At the moment, there are only results for

[Python-Dev] Re: PEP 617 -- New PEG parser for CPython

2020-10-07 Thread Terry Reedy
On 10/6/2020 2:02 PM, Guido van Rossum wrote: That's appreciated, but I think what's needed more is someone who actually wants to undertake this project. It's not just a matter of running a small script for hours -- someone will have to come up with a way to fuzz that is actually useful for

[Python-Dev] Re: PR checks hang because travis does not report back to github

2020-10-04 Thread Terry Reedy
On 10/4/2020 2:32 PM, Mariatta wrote: This is a known issue and I have brought it up in GitHub OS Maintainers Feedback Group. It happens to other projects as well. Currently we have branch protection rule where even administrators couldnt merge the PR unless all the required checks passed.

[Python-Dev] Re: docs: I'd like new features to references their PEPs

2020-09-14 Thread Terry Reedy
On 9/14/2020 5:25 AM, Cameron Simpson wrote: On 14Sep2020 01:16, Ned Deily wrote: I'll make some PRs. How to submit? Here, or a BPO or something? My suggestion would be to open one BPO issue for "adding PEP references to documentation" and then creating PRs as needed against it. As you

[Python-Dev] Re: pty2

2020-09-07 Thread Terry Reedy
On 9/6/2020 10:38 PM, Soumendra Ganguly wrote: Hello. I am currently using a tiling window manager ( i3wm ). While using pty.spawn(), resizing xterm's X window also resizes the underlying terminal size; as a result, output of commands such as ls(1) become incorrectly laid out, making

[Python-Dev] Re: PR stuck in Travis

2020-08-21 Thread Terry Reedy
On 8/21/2020 2:54 PM, Guido van Rossum wrote: Does closing and reopening the PR work? https://github.com/python/cpython/pull/21466 Yes, ready to merge. -- Terry Jan Reedy ___ Python-Dev mailing list -- python-dev@python.org To unsubscribe

[Python-Dev] Re: Procedure for trivial PRs

2020-08-13 Thread Terry Reedy
On 8/13/2020 4:56 PM, Mariatta wrote:  when landed remove the "need backport tags" you added... If done correctly, the "needs backport .." labels got removed automatically. We have detailed info here: https://devguide.python.org/committing/#backporting-changes-to-an-older-version

[Python-Dev] Re: How about copying the typing module docs from 3.10 to 3.9?

2020-08-11 Thread Terry Reedy
On 8/11/2020 7:59 PM, Luciano Ramalho wrote: I reorganized the typing module docs, Guido made suggestions, reviewed and merged it to master. Right now everything in typing.rst [1] applies to 3.9 as well as 3.10. [1] https://docs.python.org/3.10/library/typing.html How about copying the

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-18 Thread Terry Reedy
On 7/18/2020 6:23 AM, emmanuel.coir...@caissedesdepots.fr wrote: Ethan Furman wrote: The problem with any kind of sigil/keyword is that it becomes line noise -- we would have to train ourselves to ignore them in order to see the structure and variables we are actually interested in. Once we

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-17 Thread Terry Reedy
On 7/17/2020 7:23 AM, emmanuel.coir...@caissedesdepots.fr wrote: Hello everyone, I'm sorry if my proposition has already being said, or even withdrawn, but I think that capture variables shouldn't be as implicit as they are now. I've looked at the PEP very quickly, jumping on the examples to

[Python-Dev] Re: Another take on PEP 622

2020-07-17 Thread Terry Reedy
On 7/16/2020 9:51 PM, Tobias Kohn wrote: Hi Everyone, I feel there are still quite a few misconceptions around concerning PEP 622 and the new pattern matching feature it proposes.  Please allow me therefore to take another attempt at explaining the ideas behind PEP 622 with a different

[Python-Dev] Re: PEP 622 version 2 (Structural Pattern Matching)

2020-07-12 Thread Terry Reedy
On 7/11/2020 6:31 PM, Guido van Rossum wrote: Hm... Just the fact that people have been arguing both sides so convincingly makes me worry that something bigger is amiss. I think we're either better off without `else` (since the indentation of `case _` cannot be disputed :-), or we have to

[Python-Dev] Re: PEP 622 railroaded through?

2020-07-03 Thread Terry Reedy
On 7/1/2020 4:14 PM, Rob Cliffe via Python-Dev wrote: I have an uneasy feeling about this PEP. I can understand that. AFAIK the usual procedure for adding a new feature to Python is:     An idea is raised and attracts some support.     Someone sufficiently motivated writes a PEP.     The

[Python-Dev] Re: Flexible assignment targets

2020-07-03 Thread Terry Reedy
On 7/3/2020 8:28 AM, Rhodri James wrote: On 03/07/2020 00:12, Nick Coghlan wrote: On Fri., 3 Jul. 2020, 2:27 am MRAB, wrote: match shape: try Point(x, y): ... try Rectangle(x0, y0, x1, y1, painted=True): ... I'm actually surprised at how much I like that.  It

[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020-06-23 Thread Terry Reedy
On 6/23/2020 5:56 PM, Barry Warsaw wrote: match: expression case arm1: pass case arm2: pass else: pass nicely mirrors try/except and if/elif/else constructs so it looks quite natural. Agreed as to the look of the form. Some

[Python-Dev] Re: Final reminder: 3.7.8 / 3.6.11 cutoff Monday, last non-security bugfixes for 3.7.x

2020-06-13 Thread Terry Reedy
On 6/12/2020 9:31 PM, Ivan Pozdeev via Python-Dev wrote: On 13.06.2020 3:49, Łukasz Langa wrote: On 12 Jun 2020, at 19:51, Ivan Pozdeev via Python-Dev mailto:python-dev@python.org>> wrote: I would doubt the quality of tags maintenance at Github, too.

[Python-Dev] Re: PEG parser and raw strings

2020-05-28 Thread Terry Reedy
On 5/28/2020 3:26 PM, Vito De Tullio wrote: Just a question about the new PEG parser: will it support lone slash in raw strings? In 3.9, the new parser is intended to be a drop-in replacement. That is still being worked on. For 3.10, user-visible changes can be considered, but I have not

[Python-Dev] Re: Please welcome our next Release Manager, Pablo!

2020-05-19 Thread Terry Reedy
On 5/19/2020 6:54 PM, Barry Warsaw wrote: I’m very happy to announce our next Release Manager, for Python 3.10 and 3.11: Pablo Galindo Salgado! I think having a buildbot watcher as release manager will be great. I see 2 major, possible contentious issues for the next two releases. First,

[Python-Dev] Re: A PEP PR that I closed until someone discusses context

2020-05-06 Thread Terry Reedy
On 5/6/2020 5:28 PM, Steve Dower wrote: On 06May2020 2204, joannah nanjekye wrote: I saw a PR on the PEP repository that looked like a joke here : https://github.com/python/peps/pull/1396 The author can give context to re-open if it was intentional. Given there isn't a real email address on

[Python-Dev] Re: Accepting PEP 573 (Module State Access from C Extension Methods)

2020-03-25 Thread Terry Reedy
On 3/25/2020 8:12 AM, Petr Viktorin wrote: On 2020-03-23 17:43, Stefan Behnel wrote: As (first-time) BDFL delegate, I accept PEP 573 for Python 3.9, "Module State Access from C Extension Methods" https://www.python.org/dev/peps/pep-0573/ Petr, Nick, Eric and Marcel, thank you for your work

[Python-Dev] Re: Merging PRs without CLA signed

2020-02-24 Thread Terry Reedy
On 2/23/2020 11:44 PM, Guido van Rossum wrote: On Sun, Feb 23, 2020 at 8:11 PM Kyle Stanley > wrote: In a recently opened typo fixing PR [1], an issue came up regarding the lack of a signed CLA, where the author specifically mentioned they did not want to

[Python-Dev] Re: Merging PRs without CLA signed

2020-02-24 Thread Terry Reedy
On 2/24/2020 10:32 AM, Chris Angelico wrote: On Tue, Feb 25, 2020 at 2:25 AM Antoine Pitrou wrote: I'd like to point out that the relevant perspective here isn't PSF policy as much as copyright law. Since Python is copyrighted in the US and the license specifies Virginia as the state of

[Python-Dev] Re: Clarification of unpacking semantics.

2020-02-06 Thread Terry Reedy
On 2/6/2020 2:26 PM, Mark Shannon wrote: In the python grammar, an 'expression' is a 'starred_item' but a 'starred_item' need not be an expression. starred_item ::=  expression | "*" or_expr expression ::=  conditional_expression | lambda_expr conditional_expression ::=  or_test ["if" or_test

[Python-Dev] Re: Clarification of unpacking semantics.

2020-02-06 Thread Terry Reedy
On 2/6/2020 1:28 AM, Brandt Bucher wrote: Commits 13bc139 and 8a4cd70 introduced subtle changes in the evaluation logic of unpacking operations. Previously, all elements were evaluated prior to being collected in a container. Now, these operations are interleaved. For example, the code `[*a,

[Python-Dev] Re: Cassandra-driver acquiring tstate_lock in python3.6/threading.py while doing cluster.connect and got stuck forever

2020-02-04 Thread Terry Reedy
On 2/4/2020 7:44 AM, pankajkumar--- via Python-Dev wrote: We are running cassandra using mock cassandra and interacting with python cassandra-driver. [We are having a problem with thread locks.] Can anyone suggest how can we proceed further? Python-dev is for development of future versions

[Python-Dev] Re: Re-requesting review of bpo-36226

2020-02-04 Thread Terry Reedy
On 2/4/2020 11:07 AM, Christian Schmidbauer wrote: we had issued a PR for bpo-36226 almost a year ago, but the PR [1] review has been stalling for 4+ months. Would it be possible to get a new review on this PR? [1] https://github.com/python/cpython/pull/12214 By someone other than the

[Python-Dev] Re: Issue with PR to ipaddress, core review needed by bpo-34788

2020-02-04 Thread Terry Reedy
On 2/4/2020 5:02 AM, Sasha Pavlyuk wrote: I write the same letter third time with a note of despair. 2019-06-03 I have created PR https://github.com/python/cpython/pull/13772 , which adds IPv6 scoped addresses support to ipaddress module. It is critical to everyone, who is dealing with IPv6 

[Python-Dev] Re: Maintenance of multiprocessing module: there are a few stalled issues/patches

2020-01-31 Thread Terry Reedy
On 1/31/2020 1:27 PM, mailer@app.tempr.email wrote: Couldn't help but notice that there are quite a few stalled issues/patches, some of them for years even. :-/ So I thought, it might help to bump them here on the mailing list. https://bugs.python.org/issue28053

[Python-Dev] Re: Typo in Link

2020-01-28 Thread Terry Reedy
On 1/28/2020 8:21 AM, onlinejudge95 wrote: While i was going through the wiki.python.org  links, i saw that the urls(https://wiki.python.org/moin) contains *moin*, is it expected? Except for the entry url, '/moin' is required.

[Python-Dev] Re: Request to postpone some Python 3.9 incompatible changes to Python 3.10

2020-01-27 Thread Terry Reedy
On 1/27/2020 4:56 PM, Barry Scott wrote: On 24 Jan 2020, at 08:40, Victor Stinner wrote: The change is that Python 2.7 is no longer supported (since 2020-01-01). Isn't there going to be a final Python 2.7 release in April 2020? Normal patching has stopped, much as if the final .rc1 release

[Python-Dev] Re: Are PyObject_RichCompareBool shortcuts part of Python or just CPython quirks?

2020-01-24 Thread Terry Reedy
On 1/24/2020 8:43 PM, Tim Peters wrote: [Terry Reedy ] ]& skipping all the parts I agree with] ... Covered by "For user-defined classes which do not define __contains__() but do define __iter__(), x in y is True if some value z, for which the expression x is z or x == z is true, is

[Python-Dev] Re: Are PyObject_RichCompareBool shortcuts part of Python or just CPython quirks?

2020-01-24 Thread Terry Reedy
On 1/24/2020 5:29 PM, Tim Peters wrote: [Terry Reedy ] ... It is, in the section on how to understand and use value comparison *operators* ('==', etc.). https://docs.python.org/3/reference/expressions.html#value-comparisons First "The default behavior for equality compa

[Python-Dev] Re: Are PyObject_RichCompareBool shortcuts part of Python or just CPython quirks?

2020-01-24 Thread Terry Reedy
On 1/24/2020 7:09 AM, Steven D'Aprano wrote: On Fri, Jan 24, 2020 at 05:45:35AM -0500, Terry Reedy wrote: On 1/24/2020 3:36 AM, Victor Stinner wrote: CPython current behavior rely on the fact that it's possible to get the memory address of an object. No, this behavior relies

[Python-Dev] Re: Are PyObject_RichCompareBool shortcuts part of Python or just CPython quirks?

2020-01-24 Thread Terry Reedy
On 1/24/2020 7:09 AM, Steven D'Aprano wrote: On Fri, Jan 24, 2020 at 05:45:35AM -0500, Terry Reedy wrote: On 1/24/2020 3:36 AM, Victor Stinner wrote: CPython current behavior rely on the fact that it's possible to get the memory address of an object. No, this behavior relies

[Python-Dev] Re: Are PyObject_RichCompareBool shortcuts part of Python or just CPython quirks?

2020-01-24 Thread Terry Reedy
On 1/24/2020 4:23 AM, Paul Moore wrote: On Fri, 24 Jan 2020 at 02:36, Guido van Rossum wrote: I'm tempted to declare this implementation-defined behavior -- *implicit* calls to __eq__ and __ne__ *may* be skipped if both sides are the same object depending on the whim of the implementation.

[Python-Dev] Re: Are PyObject_RichCompareBool shortcuts part of Python or just CPython quirks?

2020-01-24 Thread Terry Reedy
On 1/24/2020 3:36 AM, Victor Stinner wrote: Le ven. 24 janv. 2020 à 03:37, Guido van Rossum a écrit : I think this started with a valuable optimization for `x in `. I don't know if that was ever carefully documented, but I remember that it was discussed a few times (and IIRC Raymond was

[Python-Dev] Re: Are PyObject_RichCompareBool shortcuts part of Python or just CPython quirks?

2020-01-24 Thread Terry Reedy
On 1/24/2020 3:12 AM, Victor Stinner wrote: IMO it's a good optimization to skip __eq__() when id(x) == id(y). From a higher level viewpoint, what is being skipped is literally doing 'x == y'. But it can be surprising, so I just would like to document it somewhere. It is, in the section

[Python-Dev] Re: Parameters of str(), bytes() and bytearray()

2019-12-16 Thread Terry Reedy
The docstring is left not fixed.     str(object='') -> str     str(bytes_or_buffer[, encoding[, errors]]) -> str I noticed this too; the doc and docstring should be made to agree with each other and the code. While exploring the actual behavior, I discovered that while the presence of

[Python-Dev] Re: Travis CI for backports not working.

2019-12-09 Thread Terry Reedy
On 12/9/2019 7:33 PM, Brett Cannon wrote: Victor Stinner wrote: In that case, would you mind to make Travis CI mandatory again? Done! It is again working fine on 3.8 and 3.7. -- Terry Jan Reedy ___ Python-Dev mailing list -- python-dev@python.org

[Python-Dev] Re: Travis CI for backports not working.

2019-11-25 Thread Terry Reedy
On 11/25/2019 12:40 PM, Ivan Pozdeev via Python-Dev wrote: On 25.11.2019 9:50, Terry Reedy wrote: On 11/24/2019 7:30 PM, Ivan Pozdeev via Python-Dev wrote: On 25.11.2019 1:10, Terry Reedy wrote: Travis passed https://github.com/python/cpython/pull/17366 but a half hour later twice failed

[Python-Dev] Re: Travis CI for backports not working.

2019-11-24 Thread Terry Reedy
On 11/24/2019 7:30 PM, Ivan Pozdeev via Python-Dev wrote: On 25.11.2019 1:10, Terry Reedy wrote: Travis passed https://github.com/python/cpython/pull/17366 but a half hour later twice failed https://github.com/python/cpython/pull/17370 This is build logic's fault, `python3.8

[Python-Dev] Travis CI for backports not working.

2019-11-24 Thread Terry Reedy
Travis passed https://github.com/python/cpython/pull/17366 but a half hour later twice failed https://github.com/python/cpython/pull/17370 https://github.com/python/cpython/pull/17371 saying pyenv: python3.8: command not found pyenv: version `3.7.1' not installed -- Terry Jan Reedy

[Python-Dev] Re: Restricted Entry Point from PEP-551/578

2019-11-21 Thread Terry Reedy
On 11/21/2019 4:46 PM, Steve Dower wrote: (though some won't be raised until 3.8.1... we should probably mark those, or at least update that page to warn that events may have been added over time). I included this in a new audit doc issue. https://bugs.python.org/issue38892 -- Terry Jan

[Python-Dev] Re: A much better tokenize.untokenize function

2019-11-03 Thread Terry Reedy
On 11/3/2019 11:12 AM, Edward K. Ream wrote: I am creating this post as a courtesy to anyone interested in python's tokenize module. As one of the 46 contributors to this module, and as one who fixed several untokenize bugs a few years ago, I am interested. > **tl;dr:** Various posts,

[Python-Dev] Re: 4 first-time contributions that need core review.

2019-10-22 Thread Terry Reedy
On 10/22/2019 2:53 PM, Brandt Bucher wrote: Hi all. There are a few *very simple* PRs from first-time contributors that have been sitting un-core-reviewed for several weeks. https://github.com/python/cpython/pull/16680: bpo-38419: fix "check-c-globals" path merged

[Python-Dev] Re: Awareness creation of a new IDE

2019-10-21 Thread Terry Reedy
On 10/21/2019 7:34 PM, Kyle Stanley wrote: On a somewhat related note to the licensing page, I just noticed that the link to Zope's website (http://www.zope.com) is no longer valid. They currently use a .org TLD instead of .com (https://www.zope.org). Mind if I open a PR to fix/update the

[Python-Dev] Re: [RELEASE] Python 3.8.0 is now available

2019-10-15 Thread Terry Reedy
On 10/15/2019 12:37 AM, Glenn Linderman wrote: And sadly, I'm too fast at trying to install brotli for 3.8: it apparently doesn't have a wheel yet, so tried to compile from source, and couldn't find a C compiler on my machine. System? https://www.lfd.uci.edu/~gohlke/pythonlibs/ has wheels

[Python-Dev] Re: The Python 2 death march

2019-09-18 Thread Terry Reedy
On 9/18/2019 1:45 PM, Chris Barker via Python-Dev wrote: I'm just echoing (and agreeing with) Peter here -- there is a specific date in the PEP (January 1 2020), and that has been adopted by pythonclock and others, so it would be good to be clear what EXACTLY "support stops" means. In terms

[Python-Dev] Re: The Python 2 death march

2019-09-17 Thread Terry Reedy
On 9/17/2019 6:19 PM, Chris Barker via Python-Dev wrote: On Tue, Sep 17, 2019 at 12:06 PM Peter Wang > wrote: On Mon, Sep 16, 2019 at 5:55 PM Chris Barker via Python-Dev mailto:python-dev@python.org>> wrote: Regardless of the date of the final

[Python-Dev] Re: The Python 2 death march

2019-09-10 Thread Terry Reedy
On 9/10/2019 10:54 AM, Ned Batchelder wrote: What does the "official EOL date" mean if there's a release in April? To me, it means that coredevs freely patching 2.7 ends 1/1/2020 and that the final release will occur by PyCon and that everything between the two is at the discretion of

[Python-Dev] Re: Python for Windows (python-3.7.4.exe) location confusing

2019-08-29 Thread Terry Reedy
On 8/29/2019 11:35 AM, Steve Dower wrote: The launcher is installed separately from the main Python installation. So everyone will have access to the launcher, but only you will have access to the Python install - if someone else on the machine installs Python as well, they won't have to

[Python-Dev] Re: Python for Windows (python-3.7.4.exe) location confusing

2019-08-29 Thread Terry Reedy
On 8/29/2019 4:52 AM, Armen Michaeli wrote: Hi all, The installer dialog mentions Python will be installed in something like $USERPROFILE\AppData\Local\Programs\Python\Python37-32 while at the same time suggesting it will be made available for all users through the "Install launcher for all

[Python-Dev] Re: Missing license for file Modules/ossaudiodev.c

2019-08-19 Thread Terry Reedy
On 8/19/2019 3:19 PM, Jeff Allen wrote: This is undoubtedly the right answer for someone wanting to *use* code *from* CPython. When one signs up to contribute code to the PSF, one is asked to write on  contributed software that it has been "Licensed to the PSF under a Contributor Agreement"

[Python-Dev] Re: Inline links in Misc/NEWS entries

2019-08-14 Thread Terry Reedy
On 8/13/2019 6:31 PM, Kyle Stanley wrote: The primary purpose of me creating this topic was because there seems to be some sentiment that it's perfectly fine to exclusively use plaintext in the news entries. Especially in cases where authors have rejected suggestions to adding the Sphinx

[Python-Dev] Re: What to do about invalid escape sequences

2019-08-12 Thread Terry Reedy
On 8/12/2019 6:34 AM, Eric V. Smith wrote: On 8/12/2019 2:52 AM, Greg Ewing wrote: Eric V. Smith wrote: I'm not in any way serious about this. I just want people to realize how many wacky combinations there would be. It doesn't matter how many combinations there are, as long as multiple

[Python-Dev] Re: What to do about invalid escape sequences

2019-08-12 Thread Terry Reedy
On 8/7/2019 6:57 PM, raymond.hettin...@gmail.com wrote: For me, these warnings are continuing to arise almost daily. See two recent examples below. Both examples are fragile, as explained below. They make me more in favor of no longer guessing what \ means in the default mode. The

[Python-Dev] Re: What to do about invalid escape sequences

2019-08-12 Thread Terry Reedy
On 8/8/2019 5:31 AM, Dima Tisnek wrote: These two ought to be converted to raw strings, shouldn't they? For the first example, yes or no. It depends ;-) See below. The problem is that string literals in python code are, by default, half-baked. The interpretation of '\' by the python

[Python-Dev] Re: What to do about invalid escape sequences

2019-08-10 Thread Terry Reedy
On 8/10/2019 4:33 AM, Paul Moore wrote: (Side issue) This deserves its own thread. As a Windows developer, who has seen far too many cases where use of slashes in filenames implies a Unix-based developer not thinking sufficiently about Windows compatibility, or where it leads to people hard

[Python-Dev] Re: Comparing dict.values()

2019-07-25 Thread Terry Reedy
On 7/25/2019 2:46 PM, Brett Cannon wrote: You're correct that I misspoke, but I personally still think a doc change is the best solution. Given the absence of a consensus on when values() views should be considered equal, I strongly agree. I strongly oppose raising an exception. -- Terry

[Python-Dev] Re: Comparing dict.values()

2019-07-23 Thread Terry Reedy
On 7/23/2019 8:27 PM, Steven D'Aprano wrote: On Tue, Jul 23, 2019 at 08:59:09PM -, Kristian Klette wrote: Hi! During the sprints after EuroPython, I made an attempt at adding support for comparing the results from `.values()` of two dicts. Currently the following works as expected: ``` d

[Python-Dev] Sphinx is blocking merges

2019-07-21 Thread Terry Reedy
One of the required CI tests is a Travis doc build, even if a PR does not touch any doc file. The following failure appears to be deterministic on master and 3.8. A 3.7 backport passed. It has happened multiple times on multiple PRs today. Example:

[Python-Dev] Re: bpo-34788 needs a review

2019-07-15 Thread Terry Reedy
On 7/15/2019 3:55 AM, Sasha Pavlyuk wrote: Hello 2019-06-03 I have created PR https://github.com/python/cpython/pull/13772 , which adds IPv6 scoped addresses support to ipaddress module. It is very critical to everyone, who is dealing with IPv6  networking. For example, in salt project they

[Python-Dev] Re: Docs: audit event table empty

2019-07-09 Thread Terry Reedy
On 7/9/2019 3:53 PM, Terry Reedy wrote: https://docs.python.org/3.9/library/audit_events.html. Steve and I are going to present the auditing feature tomorrow at EuroPython. That should be interesting. My experiment with the following >>> def audit(event, args): print(ev

[Python-Dev] Re: Docs: audit event table empty

2019-07-09 Thread Terry Reedy
On 7/9/2019 6:44 AM, Christian Heimes wrote: Hi, the table with auditing events does not render on docs.python.org, https://docs.python.org/3.9/library/audit_events.html. Steve and I are going to present the auditing feature tomorrow at EuroPython. It would be helpful to have the table

[Python-Dev] Re: Removing dead bytecode vs reporting syntax errors

2019-07-05 Thread Terry Reedy
This thread is based on https://bugs.python.org/issue37500 to get the thoughts of a broader range of people. On 7/5/2019 5:28 PM, Pablo Galindo Salgado wrote: Recently, we moved the optimization for the removal of dead code of the form if 0:   to the ast My impression is that you

[Python-Dev] Re: strip behavior provides inconsistent results with certain strings

2019-07-02 Thread Terry Reedy
On 7/2/2019 12:16 AM, Glenn Linderman wrote: On 7/1/2019 8:28 PM, Terry Reedy wrote: I did not read much of the thread, but the proposal is to wrap a near-trivial expression (2 operations) or replace a current method call with a method call than is more or less the same len as what

[Python-Dev] Re: Annoying user on GitHub

2019-07-02 Thread Terry Reedy
On 7/2/2019 12:09 PM, Steve Dower wrote: Maybe there's also a way to automatically lock conversations on commits and old issues? I occasionally add comments both to closed issues and merged commits. For commits, 'Thank you' or 'See # for followup' are examples Obviously we can lock

[Python-Dev] Re: strip behavior provides inconsistent results with certain strings

2019-07-01 Thread Terry Reedy
On 7/1/2019 1:57 PM, Chris Barker via Python-Dev wrote: This was quite extensively discussed on python-ideas recently: https://mail.python.org/archives/list/python-id...@python.org/thread/RJARZSUKCXRJIP42Z2YBBAEN5XA7KEC3/#WIRID57ESUFUAQQQ6ZUY2RK5PKQQYSJ3 The claim of 'inconsistent results' is

<    1   2   3   4   5   6   7   8   9   10   >