Re: [Python-Dev] How to update namedtuple asdict() to use dict instead of OrderedDict

2019-01-30 Thread Barry Warsaw
On Jan 30, 2019, at 14:32, Raymond Hettinger wrote: > > Now that regular dicts are ordered and compact, it makes more sense for the > _asdict() method to create a regular dict (as it did in its early days) > rather than an OrderedDict. The regular dict is much smaller, much faster, > and has

Re: [Python-Dev] Asking for reversion

2019-02-03 Thread Barry Warsaw
On Feb 3, 2019, at 13:03, Antoine Pitrou wrote: > > I'd like to ask for the reversion of the changes done in > https://github.com/python/cpython/pull/11664 > > The reason is simple: the PR isn't complete, it lacks docs and tests. > It also didn't pass any review (this was pointed by Ronald), eve

Re: [Python-Dev] Asking for reversion

2019-02-03 Thread Barry Warsaw
On Feb 3, 2019, at 18:10, Raymond Hettinger wrote: > > FWIW, with dataclasses we decided to get the PR committed early, long before > most of the tests and all of the docs. The principle was that bigger changes > needed to go in as early as possible in the release cycle so that we could > thor

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

2019-02-04 Thread Barry Warsaw
On Feb 4, 2019, at 05:02, Stephane Wirtel wrote: > > Just one idea, we could create a Docker image with this alpha version. > > This Docker image could be used with the CI of the main projects and the > test suites of these projects. > > If we have some issues, we should create an issue for pyt

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

2019-02-05 Thread Barry Warsaw
On Feb 5, 2019, at 02:24, Stephane Wirtel wrote: > > I was not aware of this image. So it's true that it's very useful. > > Thank you very much, You’re welcome! I just pushed an update to add 3.8.0a1 to the set of Python’s (including git head). Do you think there’s a better way to publicize

Re: [Python-Dev] Another update for PEP 394 -- The "python" Command on Unix-Like Systems

2019-02-13 Thread Barry Warsaw
On Feb 13, 2019, at 08:20, Victor Stinner wrote: > I'm a (strong) supporter of providing a "python" command which would > be the latest Python version! I think we should aspire for this to be the case too, eventually. When this has come up in the past, we’ve said that it’s not appropriate to c

Re: [Python-Dev] Another update for PEP 394 -- The "python" Command on Unix-Like Systems

2019-02-13 Thread Barry Warsaw
On Feb 13, 2019, at 15:07, Victor Stinner wrote: > > Le mer. 13 févr. 2019 à 21:26, Barry Warsaw a écrit : >> I don’t think this should be conflated with PEP 394. IMHO, 3.10 is just >> fine. Python 4 should be reserved for some future mythical GIL-less >> interp

Re: [Python-Dev] Another update for PEP 394 -- The "python" Command on Unix-Like Systems

2019-02-14 Thread Barry Warsaw
On Feb 13, 2019, at 23:08, Matěj Cepl wrote: > Is this relevant to the discussion at hand? We are talking about > the binary /usr/bin/python3 which will be surely be provided > even by Python 4, won't it? Why would it be? Since this is all hypothetical anyway , I’d more likely expect to only s

Re: [Python-Dev] Another update for PEP 394 -- The "python" Command on Unix-Like Systems

2019-02-16 Thread Barry Warsaw
On Feb 16, 2019, at 09:25, Nick Coghlan wrote: > While Matthias is still personally reluctant to add the alias for > Debian/Ubuntu, the *only* thing preventing aliasing /usr/bin/python to > /usr/bin/python3 right now on the Fedora & RHEL side of things is PEP > 394, and Guido objected strongly wh

Re: [Python-Dev] Making PyInterpreterState an opaque type

2019-02-19 Thread Barry Warsaw
Steve Dower wrote on 2/16/19 14:34:> This is mostly about being able to assign blame when things break, so I'm totally okay with extension modules that want to play with internals declaring Py_BUILD_CORE to get access to them (though I suspect that won't work out of the box - maybe we should have

Re: [Python-Dev] Add minimal information with a new issue?

2019-02-21 Thread Barry Warsaw
On Feb 21, 2019, at 06:53, Stephane Wirtel wrote: > > What do you think if we suggest a "template" for the new bugs? > > For example: > * Python version (exact version) > * Operating System * on Linux -> Distribution (python can have some patches) > * Add a script for the reproduction of the bu

Re: [Python-Dev] Add minimal information with a new issue?

2019-02-21 Thread Barry Warsaw
On Feb 21, 2019, at 10:34, Raymond Hettinger wrote: > > I think that anything that raises the cost of filing a bug report will work > to our detriment. Ideally, we want the barriers to reporting to be as low as > possible. `python -m reportbug` could make the process even easier (too easy?).

Re: [Python-Dev] Another update for PEP 394 -- The "python" Command on Unix-Like Systems

2019-02-26 Thread Barry Warsaw
> There haven't been many new ideas since this summary – mostly it was > explaining and re-hashing what's been mentioned before. Thanks for the summary Petr. Here’s another way to think about the problem. I know Nick and I have talked about this before, but I don’t think any distros have actua

Re: [Python-Dev] Another update for PEP 394 -- The "python" Command on Unix-Like Systems

2019-02-26 Thread Barry Warsaw
On Feb 26, 2019, at 13:34, Petr Viktorin wrote: > I have two very different questions in mind for moving this forward. > > Who gets to decide on PEP 394 changes? Honestly, I think it’s the active distro maintainers who need to make this decision. They have the pulse of their own communities a

Re: [Python-Dev] Compile-time resolution of packages [Was: Another update for PEP 394...]

2019-02-26 Thread Barry Warsaw
On Feb 26, 2019, at 14:04, Neil Schemenauer wrote: > > Interesting idea. I remember when I was helping develop Debian > packaging guides for Python software. I had to fight with people > to convince them that Debian packages should use > >#!/usr/bin/pythonX.Y > > rather than > >#!/u

Re: [Python-Dev] Compact ordered set

2019-02-26 Thread Barry Warsaw
On Feb 26, 2019, at 13:02, Raymond Hettinger wrote: > * I gave up on ordering right away. If we care about performance, keys can > be stored in the order added; but no effort should be expended to maintain > order if subsequent deletions occur. Likewise, to keep set-to-set operations > effi

Re: [Python-Dev] Compact ordered set

2019-02-27 Thread Barry Warsaw
On Feb 27, 2019, at 13:54, Chris Barker via Python-Dev wrote: > > A mapping and a set type really don't have much to do with each other other > than implementation -- anyone that isn't familiar with python C code, or hash > tables in general, wouldn't likely have any expectation of them having

Re: [Python-Dev] Compile-time resolution of packages [Was: Another update for PEP 394...]

2019-03-01 Thread Barry Warsaw
On Mar 1, 2019, at 02:41, Petr Viktorin wrote: > Currently, in RHEL/Fedora: > - "sudo pip" installs to /usr/local/, RPM packages install to /usr/ > - with "-I", the interpreter does not look into /usr/local/. > AFAIK, Debian/Ubuntu have something very similar, and were first to do it. Debuntu’s

Re: [Python-Dev] PEPs from non-core devs now need a sponsor

2019-03-06 Thread Barry Warsaw
On Mar 6, 2019, at 10:28, Abdur-Rahmaan Janhangeer wrote: > > As a non core-dev, my enthusiasm for submitting a pep has been diminished by > some 40%. I’m sorry to hear that. I think it’s worth keeping in mind that successfully navigating the PEP process can be quite daunting an demoralizing

Re: [Python-Dev] PEP 581: Using GitHub Issues for CPython

2019-03-07 Thread Barry Warsaw
On Mar 7, 2019, at 14:36, Mariatta wrote: > I was not involved in core Python development back then, so if it is really > important and if people think such paragraph needs to be part of the PEP, > then perhaps someone else more knowledgeable will need to help with this. > > Personally, I don'

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

2019-03-26 Thread Barry Warsaw
On Mar 26, 2019, at 04:23, Stéphane Wirtel wrote: > > I have proposed a PR for the update of this docker image: > quay.io/python-devs/ci-image > > I have also updated the versions to 3.4.10, 3.5.7, 3.7.3 and of course > to Python 3.8.0a3. > > By the way, this image will contain the last version

Re: [Python-Dev] Update PEP 394: Distributions can choose what does python command mean

2019-04-12 Thread Barry Warsaw
Thanks for the update. I have made one small suggestion on the PR for clarification, but otherwise the changes LGTM. -Barry > On Apr 12, 2019, at 07:53, Miro Hrončok wrote: > > Hello. > > Based on discussions in [1], Petr Viktorin and me have drafted a new update > [2] to the PEP 394 (The "

Re: [Python-Dev] Easier debugging with f-strings

2019-05-07 Thread Barry Warsaw
On May 7, 2019, at 03:52, Steve Holden wrote: > > What's not to like? My only complaint is that you steadfastly refuse use Guido’s time machine keys to make this available in 3.7. -Barry signature.asc Description: Message signed with OpenPGP ___ P

Re: [Python-Dev] Hello

2019-05-08 Thread Barry Warsaw
On May 8, 2019, at 10:13, Petr Viktorin wrote: > > Not sure what the original intent was, but I read that as: "Whenever you get > to sending your first post, include an introduction in it. But, before you > start actively participating, take your time to hang around and absorb the > culture."

[Python-Dev] PEP 581 (Using GitHub issues for CPython) is accepted

2019-05-14 Thread Barry Warsaw
As the BDFL-Delegate for PEP 581, and with the unanimous backing of the rest of the Steering Council, I hereby Accept this PEP. We would like to thank Mariatta for championing PEP 581, and to all the contributors to the discussion, both pro and con. We appreciate your candor and respect for yo

Re: [Python-Dev] bpo-36829: Add sys.unraisablehook()

2019-05-16 Thread Barry Warsaw
On May 16, 2019, at 03:12, Victor Stinner wrote: > I came to the UnraisableHookArgs structseq idea because of my bad > experience with extension warnings "hooks". Let me tell you this story > :-) Thanks for that! > def showwarning(message, category, filename, lineno, file=None, line=None): > .

Re: [Python-Dev] PEP 594: Removing dead batteries from the standard library

2019-05-23 Thread Barry Warsaw
On May 20, 2019, at 13:15, Christian Heimes wrote: > > here is the first version of my PEP 594 to deprecate and eventually remove > modules from the standard library. The PEP started last year with talk during > the Python Language Summit 2018, https://lwn.net/Articles/755229/. > > The PEP can

Re: [Python-Dev] we will probably be having an difficult discussion about the stdlib after PEP 594 is done (was: PEP 594: Removing dead batteries from the standard library)

2019-05-23 Thread Barry Warsaw
On May 23, 2019, at 14:17, Brett Cannon wrote: > I'm personally viewing it as a first step in addressing the maintenance > burden we have with such a large stdlib. Christian started this work over a > year ago and I think it's worth seeing through. After that we should probably > have a discus

Re: [Python-Dev] PEP 595: Improving bugs.python.org

2019-05-31 Thread Barry Warsaw
On May 31, 2019, at 01:22, Antoine Pitrou wrote: > I second this. > > There are currently ~7000 bugs open on bugs.python.org. The Web UI > makes a good job of actually being able to navigate through these bugs, > search through them, etc. > > Did the Steering Council conduct a usability study

[Python-Dev] Re: python-ideas and python-dev migrated to Mailman 3/HyperKitty

2019-06-05 Thread Barry Warsaw
On Jun 5, 2019, at 02:08, Victor Stinner wrote: > > Our kind postmasters Mark Sapiro and Abhilash Raj migrated > python-ideas and python-dev mailing lists from Mailman 2 to Mailman 3 > (running on Python 3 ;-))! Gosh, it warms my heart. :) Thank you Mark, Abhilash! -Barry signature.asc Descr

[Python-Dev] Re: python-ideas and python-dev migrated to Mailman 3/HyperKitty

2019-06-06 Thread Barry Warsaw
On Jun 6, 2019, at 09:15, David Mertz wrote: > > The old URL is definitely a lot friendlier, even apart from the length. Unfortunately, the old URLs aren’t really permanent. Hypermail calculated them sequentially and if you rebuild the archive from the source-of-truth mbox files, there’s no w

[Python-Dev] Re: python-ideas and python-dev migrated to Mailman 3/HyperKitty

2019-06-07 Thread Barry Warsaw
On Jun 6, 2019, at 23:50, Wes Turner wrote: > > Thanks for getting these upgraded. IMHO, being able to copy URLs from list > message footers as references in e.g. issues will be a great boost in > productivity. Just FYI, these URLs are a “standard" we proposed many years ago, with discussions

[Python-Dev] Re: PEP 581 has been updated with "Downsides of GitHub" section

2019-06-28 Thread Barry Warsaw
On Jun 28, 2019, at 09:56, Mariatta wrote: > > I've updated PEP 581 yesterday, adding the "Downsides of GitHub" section. > > https://www.python.org/dev/peps/pep-0581/#downsides-of-github Thanks Mariatta! > I plan to update PEP 588 sometime this weekend or next, to incorporate the > discussion

[Python-Dev] Re: [Possibly off-topic] Python-Announce floods and delays

2019-07-08 Thread Barry Warsaw
On Jul 8, 2019, at 12:27, Jonathan Goble wrote: > So my inbox, and probably many of yours, was flooded this afternoon > with a dozen-plus emails from the Python-Announce list. I understand > that this list requires every email to be manually approved by a > moderator. I cleared the queue this mo

[Python-Dev] Re: [Possibly off-topic] Python-Announce floods and delays

2019-07-08 Thread Barry Warsaw
On Jul 8, 2019, at 12:56, Barry Warsaw wrote: > Volunteers are welcome! :) Wow, that was fast! Thanks for the offers for help. I’ll add everyone who’s stepped up so far to the list moderators. Yes, you do get a notification every day with a link right to the moderation page. Che

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

2019-07-08 Thread Barry Warsaw
I’ve updated the official images to include 3.8.0b2: https://gitlab.com/python-devs/ci-images/tree/master Cheers, -Barry > On Jul 4, 2019, at 15:05, Łukasz Langa wrote: > > Signed PGP part > After a few days of delay, but somewhat cutely timed with the US Independence > Day, I present you Pyt

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

2019-07-15 Thread Barry Warsaw
On Jul 13, 2019, at 19:09, Raymond Hettinger wrote: > > In some modules, we've been careful to use both __all__ and to use an > underscore prefix to indicate private variables and helper functions > (collections and random for example). IMO, when a module has shown that > care, future mainta

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

2019-07-23 Thread Barry Warsaw
On Jul 23, 2019, at 08:44, Steve Dower wrote: > The @public decorator is basically: > > def public(fn): >__all__.append(fn.__name__) >return fn > > It's trivial, but it adds a runtime overhead that is also trivially avoided > by putting the name in __all__ manually. And once it's publi

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

2019-07-23 Thread Barry Warsaw
On Jul 23, 2019, at 09:20, Ethan Furman wrote: > > On 07/23/2019 08:44 AM, Steve Dower wrote: > >> The @public decorator is basically: >> def public(fn): >> __all__.append(fn.__name__) >> return fn >> It's trivial, but it adds a runtime overhead that is also trivially avoided >> by putt

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

2019-07-23 Thread Barry Warsaw
On Jul 23, 2019, at 12:02, Steve Dower wrote: > > Even if the performance impact is zero, commits that span the entire codebase > for not-very-impactful changes have a negative impact on readability (for > example, someone will suddenly become responsible for every single module as > far as so

[Python-Dev] Re: [python-committers] [RELEASE] Python 3.8.0b3 is now available for testing

2019-07-29 Thread Barry Warsaw
I have updated the official docker images with 3.8b3: https://gitlab.com/python-devs/ci-images/tree/master -Barry > On Jul 29, 2019, at 14:48, Łukasz Langa wrote: > > Signed PGP part > This time without delays, I present you Python 3.8.0b3: > > https://www.python.org/downloads/release/python-

[Python-Dev] Re: Speeding up CPython

2020-10-22 Thread Barry Warsaw
I don’t have much to add to this thread, except to ask whether Mark has been in contact with Carl Shapiro. Carl’s posted here before, but I don’t think he’s an active mailing list participant. Carl has a lot of experience with VMs and has been doing interesting work on performant Python implem

[Python-Dev] Re: Distro packagers: PEP 615 and the tzdata dependency

2020-11-16 Thread Barry Warsaw
That’s what I was going to suggest. I’m not doing any Debian or Ubuntu work these days, but Matthias Klose should be watching both lists, and should be able to handle the Debuntu stack. -Barry > On Nov 16, 2020, at 07:45, Miro Hrončok wrote: > > On 11/16/20 4:10 PM, Paul Ganssle wrote: >>> M

[Python-Dev] Re: Distro packagers: PEP 615 and the tzdata dependency

2020-11-16 Thread Barry Warsaw
On Nov 16, 2020, at 11:51, Paul Ganssle wrote: > > Not to put words in Barry's mouth, but I took Barry's comment to be more an > answer to the question of how to contact "distro packagers" as a group, more > than he was taking a position about this particular issue. Correct! Cheers, -Barry

[Python-Dev] Re: PEP: Deferred Evaluation Of Annotations Using Descriptors

2021-01-11 Thread Barry Warsaw
Thanks for this detailed PEP and analysis, and for the interesting discussion in your separate thread. I’m glad to see this work that we chatted about all that time before has coalesced into a PEP. FYI: For those with write access to the PEPs repo, PEP number assignments are self-serve. Just

[Python-Dev] Re: Steering Council update for February

2021-03-09 Thread Barry Warsaw
The Steering Council unanimously believes this is the right thing to do. Fortunately GitHub makes it very easy from their side. We push a button and it makes the change for the repo and all PRs. Then when you visit the repo page in GH, it tells you exactly what commands to run to make the cha

[Python-Dev] Re: [python-committers] Rejecting PEP 637 (Support for indexing with keyword arguments)

2021-03-15 Thread Barry Warsaw
I think this is really the crux of the rejection: is the new syntax being proposed primarily to support typing, or Python in general? Does it help both, or is one use case the motivating factor, and the other is just piggybacking on the syntactic proposal? Quoting from the rejection email: >

[Python-Dev] SC feedback: PEP 648 -- Extensible customizations of the interpreter at startup

2021-03-30 Thread Barry Warsaw
Hello Mario, Thank you for your submission of PEP 648 (Extensible customizations of the interpreter at startup). The Python Steering Council has reviewed the PEP and before we can pronounce on it, we have some additional questions and comments we’d like you to address. Once these questions ar

[Python-Dev] Re: SC feedback: PEP 648 -- Extensible customizations of the interpreter at startup

2021-03-30 Thread Barry Warsaw
Great points Christian, thanks. -Barry > On Mar 30, 2021, at 10:59, Christian Heimes wrote: > > On 30/03/2021 19.01, Barry Warsaw wrote: >> Hello Mario, >> >> Thank you for your submission of PEP 648 (Extensible customizations of the >> interpreter at start

[Python-Dev] Re: SC feedback: PEP 648 -- Extensible customizations of the interpreter at startup

2021-03-30 Thread Barry Warsaw
Galindo Salgado > > On Wed, 31 Mar 2021 at 00:34, Nick Coghlan wrote: > > > On Wed, 31 Mar 2021, 3:15 am Barry Warsaw, wrote: > . We would like to eventually go farther, including deprecation of pth files > entirely, but that is outside the scope of this PEP. > >

[Python-Dev] PEP 647 Accepted

2021-04-06 Thread Barry Warsaw
The Python Steering Council reviewed PEP 647 -- User-Defined Type Guards, and is happy to accept the PEP for Python 3.10. Congratulations Eric! We have one concern about the semantics of the PEP however. In a sense, the PEP subverts the meaning of the return type defined in the signature of th

[Python-Dev] Re: PEP 647 Accepted

2021-04-11 Thread Barry Warsaw
On Apr 7, 2021, at 12:59, Guido van Rossum wrote: > > Note that in TypeScript this also doesn't look like a boolean -- it uses a > unique syntax that has to be learned: > > function isCustomer(partner: any): partner is Customer { > . . . > } > > Arguably the TS syntax is more easily intuit

[Python-Dev] Re: Boundaries between numbers and identifiers

2021-04-13 Thread Barry Warsaw
On Apr 13, 2021, at 12:52, Serhiy Storchaka wrote: > > New example was found recently (see https://bugs.python.org/issue43833). > [0x1for x in (1,2)] > [31] > > It is parsed as [0x1f or x in (1,2)] instead of [0x1 for x in (1,2)]. That’s a wonderfully terrible example! Who’s maintaining

[Python-Dev] Re: Typing syntax and ecosystem

2021-04-13 Thread Barry Warsaw
On Apr 13, 2021, at 14:55, Luciano Ramalho wrote: > > Hugh was unfortunate in presenting the problem, but I agree that we > should commit all the way to supporting type hints, and that means > bundling a type checker as part of the standard library and > distribution. I wouldn’t necessarily be o

[Python-Dev] Re: Typing syntax and ecosystem

2021-04-13 Thread Barry Warsaw
On Apr 13, 2021, at 16:35, Rob Cliffe via Python-Dev wrote: > (Gasps in horror.) I can only hope I've misunderstood this sentence. Has it > ever been even tentatively suggested that type hinting become mandatory? > (What would that even mean: that the type of every function parameter or > f

[Python-Dev] Re: Revive PEP 396 -- Module Version Numbers ?

2021-04-14 Thread Barry Warsaw
On Apr 13, 2021, at 22:40, Christopher Barker wrote: > > Turns out this was suggested in PEP 396 -- and deferred almost 13 years ago! > > https://www.python.org/dev/peps/pep-0396/ I’d forgotten that this PEP was in Deferred state. I think it should be rejected and I plan on making that change

[Python-Dev] Re: Revive PEP 396 -- Module Version Numbers ?

2021-04-15 Thread Barry Warsaw
On Apr 14, 2021, at 23:11, Christopher Barker wrote: > > You wrote the original PEP, so of course you can withdraw it (or reject it), > but... > > Are you sure? See this discussion, I don't think it's as simple as all that. From a library maintainers point of view, I personally want to get awa

[Python-Dev] Re: Revive PEP 396 -- Module Version Numbers ?

2021-04-15 Thread Barry Warsaw
On Apr 15, 2021, at 09:54, Antoine Pitrou wrote: > > On Thu, 15 Apr 2021 09:38:41 -0700 > Barry Warsaw wrote: >> On Apr 14, 2021, at 23:11, Christopher Barker wrote: >>> >>> You wrote the original PEP, so of course you can withdraw it (or reject >>&

[Python-Dev] Re: In support of PEP 649

2021-04-15 Thread Barry Warsaw
On Apr 15, 2021, at 17:47, Oscar Benjamin wrote: > > Would it be problematic to postpone making __future__.annotations the default? This is a good question, and I think the SC would really like to know if anybody has objections to postponing this to 3.11. We haven’t discussed it yet (this wh

[Python-Dev] Re: Typing syntax and ecosystem

2021-04-15 Thread Barry Warsaw
On Apr 15, 2021, at 17:49, Luciano Ramalho wrote: > Anyone who uses a language with support for static typing expects the > language distribution to include a type checker. Since that may be > beyond our means, then the least we could do is have some official > guidance on the matter, maybe in th

[Python-Dev] Re: Typing syntax and ecosystem

2021-04-16 Thread Barry Warsaw
Hi Carl, > I think the first question to answer is, are the current mypy docs > (https://mypy.readthedocs.io/en/stable/) insufficient for this purpose, and > why? There’s certainly lots of great documentation in the mypy docs; it’s often my first go-to. > They do include both tutorial-style "

[Python-Dev] Deferral of PEP 648 - Extensible customizations of the interpreter at startup

2021-04-26 Thread Barry Warsaw
Hi Mario, The Python Steering Council today decided that we will defer consideration of PEP 648 to Python 3.11. On March 30, 2021 we sent the following feedback to you via python-dev, which began a discussion thread: https://mail.python.org/archives/list/python-dev@python.org/message/OGYZZZ4A5

[Python-Dev] Re: In what tense should the changelog be written?

2021-04-30 Thread Barry Warsaw
On Apr 30, 2021, at 04:11, Antoine Pitrou wrote: > > On Thu, 29 Apr 2021 21:52:14 -0700 > Larry Hastings wrote: >> D'oh! I have a second draft already. >> >>Your NEWS entry should be written in the /present tense,/ and should >>start with a verb: >> >> * Add foo [...] >> * C

[Python-Dev] Re: The repr of a sentinel

2021-05-14 Thread Barry Warsaw
On May 14, 2021, at 02:38, Chris Angelico wrote: > > Do we ever really need the ability to pass a specific sentinel to a > function, or are we actually looking for a way to say "and don't pass > this argument”? Very often, that’s the case. Such a “it’s okay to not pass this argument” construct

[Python-Dev] Re: Proposal: declare "unstable APIs"

2021-06-03 Thread Barry Warsaw
I think it makes sense, and I do see a difference between Provisional and Unstable. Is this anything more than a documentation label? -Barry > On Jun 3, 2021, at 13:10, Guido van Rossum wrote: > > This is not a complete thought yet, but it occurred to me that while we have > deprecated APIs

[Python-Dev] Re: Roundup to GitHub Issues migration

2021-06-23 Thread Barry Warsaw
On Jun 22, 2021, at 15:52, Brett Cannon wrote: > > One thing I will remind people is I personally have led the work to move this > project from: > • SourceForge to our own infrastructure > • Mercurial to git > • Our own infrastructure to GitHub for code management > So if GitHu

[Python-Dev] Re: Roundup to GitHub Issues migration

2021-06-23 Thread Barry Warsaw
On Jun 23, 2021, at 03:21, Paul Moore wrote: > PEP 588 has not been accepted, so it's not necessarily relevant to the > actual migration plan here, but I do think it's reasonable to ask for > some clarification. Either PEP 588 should be rejectected, noting that > the actual implementation plan is

[Python-Dev] Re: Towards removing asynchat, asyncore and smtpd from the stdlib

2021-06-23 Thread Barry Warsaw
Miro, what tests (outside of Python itself) do you think may break, and do you have a way to check that? -Barry On Wed, Jun 23, 2021, at 17:15, Miro Hrončok wrote: > On 23. 06. 21 23:49, Irit Katriel via Python-Dev wrote: > > > > Barry and I are working on a patch to add deprecation warnings in

[Python-Dev] Re: Roundup to GitHub Issues migration

2021-06-24 Thread Barry Warsaw
etter match the current migration plan. > > I will check with Ezio and the gh-migration group on the status. > > Thanks. > > On Wed, Jun 23, 2021 at 10:33 AM Barry Warsaw wrote: > > > Mariatta is the author of PEP 588 and I’m the delegate. Given how old that >

[Python-Dev] Re: Towards removing asynchat, asyncore and smtpd from the stdlib

2021-06-24 Thread Barry Warsaw
On Jun 23, 2021, at 16:34, Miro Hrončok wrote: > Yes, we have a way to check all Fedora's Python packages by reusing our > Python 3.10 pre-releases test-rebuild-everything mechanism, but it takes a > few days to finish the builds and analyze the failures. Test failures caused > by DeprecationWa

[Python-Dev] PEP 657 Accepted - Include Fine Grained Error Locations in Tracebacks

2021-06-28 Thread Barry Warsaw
I’m happy to announce that PEP 657 (Include Fine Grained Error Locations in Tracebacks) has been unanimously accepted for Python 3.11 by the Python Steering Council. Congratulations Pablo, Batuhan, and Ammar! Cheers, -Barry (on behalf of the Steering Council) signature.asc Description: Messa

[Python-Dev] Re: Is it too late to critique PEP 657? (Include Fine Grained Error Locations in Tracebacks)

2021-06-29 Thread Barry Warsaw
On Jun 29, 2021, at 08:27, Mark Shannon wrote: > > I was expected the announcement of a BDFL delegate for PEP 657, as the author > is a steering council member. PEP Delegates are not required, even when the PEP author is an SC member. -Barry signature.asc Description: Message signed with Op

[Python-Dev] From the SC (was Re: Enum -- last call for comments on 3.10 changes)

2021-06-29 Thread Barry Warsaw
The Steering Council discussed this topic at our meeting yesterday. We have some discomfort about the changes to Enum’s str and repr in Python 3.10, both in the specific changes and in the way the changes were decided on. No knock on Ethan or others who participated in those decisions, it’s ju

[Python-Dev] Re: Is the Python review process flawed?

2021-06-29 Thread Barry Warsaw
As specifically to the flaws in our workflow and the backlog, this is exactly what the Developer-in-Residence program was designed to address: https://pyfound.blogspot.com/2021/04/the-psf-is-hiring-developer-in.html Stay tuned! -Barry > On Jun 29, 2021, at 09:56, Joannah Nanjekye wrote: > > >

[Python-Dev] Re: Repealing PEP 509 (Add a private version to dict)

2021-07-29 Thread Barry Warsaw
On Jul 29, 2021, at 05:55, Steve Dower wrote: > > Maybe we should have a "Type" other than Standards Track for PEPs that are > documenting implementation designs, rather than requirements for > standardisation? Wouldn’t Informational fill that need? -Barry signature.asc Description: Messag

[Python-Dev] PEP 467 feedback from the Steering Council

2021-07-29 Thread Barry Warsaw
Hello Nick, Ethan, The Python Steering Council reviewed PEP 467 -- Minor API improvements for binary sequences at our 2021-07-26 meeting. Thank you for work on this PEP. We’re generally very favorable for adding to Python 3.11 the features and APIs described in the PEP. We have some requests

[Python-Dev] Re: PEP 467 feedback from the Steering Council

2021-08-02 Thread Barry Warsaw
Thanks Nick. Ethan, what do you think? -Barry > On Jul 29, 2021, at 16:28, Nick Coghlan wrote: > > > > On Fri, 30 Jul 2021, 8:47 am Barry Warsaw, wrote: > > Hello Nick, Ethan, > > The Python Steering Council reviewed PEP 467 -- Minor API improvements for >

[Python-Dev] Re: PEP 467 feedback from the Steering Council

2021-08-03 Thread Barry Warsaw
Thanks for responding Ethan. > On Aug 3, 2021, at 10:48, Ethan Furman wrote: > > I would rather keep `bchr` and lose the `.fromint()` methods. > > To get bytes: > > some_var = bchr(65) > vs > some_var = bytes.fromint(65) > > and for bytearrays > > some_var = bytearray(bchr(65)) > vs > so

[Python-Dev] Re: PEP 467 feedback from the Steering Council

2021-08-04 Thread Barry Warsaw
On Aug 4, 2021, at 07:31, Victor Stinner wrote: > > On Tue, Aug 3, 2021 at 7:54 PM Ethan Furman wrote: >> I would rather keep `bchr` and lose the `.fromint()` methods. > > I would prefer to only have a bytes.byte(65) method, no bchr() > built-in function. I would prefer to keep builtins namespa

[Python-Dev] Re: PEP 649: Deferred Evaluation Of Annotations

2021-08-11 Thread Barry Warsaw
On Aug 9, 2021, at 08:27, Eric V. Smith wrote: > > My understanding is that PEP 649 is currently in front of the SC. But do we > need to have any additional discussion here? My recollection is that we > backed out the PEP 563 change because we didn't feel we had enough time to > come to a good

[Python-Dev] Re: Notes on PEP 8

2021-08-26 Thread Barry Warsaw
On Aug 26, 2021, at 12:05, Brett Cannon wrote: > > I wouldn't be opposed to that personally. I think a lot of people just think > PEP 8 is a doc for the community when it is actually for Python itself and it > happens to be very convenient for others to use. Although we obviously > understand

[Python-Dev] Re: PEP 467 feedback from the Steering Council

2021-09-07 Thread Barry Warsaw
I’m finally getting back around to this thread. I’d like to see some resolution to the bchr/fromint question, since it seems like that’s the last thing holding up approval of the PEP. And the PEP has other useful additions that I’d like to see in Python 3.11. On Aug 22, 2021, at 16:08, Guido

[Python-Dev] Re: PEP 467 feedback from the Steering Council

2021-09-09 Thread Barry Warsaw
On Sep 9, 2021, at 08:53, Christopher Barker wrote: > > I fully admit serious bikeshedding here, but: I think you meant “byte-shedding” :D -Barry signature.asc Description: Message signed with OpenPGP ___ Python-Dev mailing list -- python-dev@pytho

[Python-Dev] Re: PEP 467 feedback from the Steering Council

2021-09-09 Thread Barry Warsaw
While I think int.to_bytes() is pretty obscure (I knew about it, forgot about it, and learned about it again!) I’m not so sure it’s any less obscure than a proposed bytes.fromint(). So why don’t we just relax int.to_bytes()’s signature to include natural default values: int.to_bytes(length

[Python-Dev] Re: PEP 467 feedback from the Steering Council

2021-09-09 Thread Barry Warsaw
On Sep 9, 2021, at 10:56, Ethan Furman wrote: > > On 9/9/21 9:37 AM, Barry Warsaw wrote: > > > While I think int.to_bytes() is pretty obscure (I knew about it, forgot > > about it, and learned > > about it again!) I’m not so sure it’s any less obscure than a

[Python-Dev] Re: PEP 467 feedback from the Steering Council

2021-09-09 Thread Barry Warsaw
Adding default arguments to int.to_bytes() is both useful on its own merits and kind of too easy *not* to do, so... https://bugs.python.org/issue45155 https://github.com/python/cpython/pull/28265 -Barry > On Sep 9, 2021, at 12:12, Barry Warsaw wrote: > > Signed PGP part > On Sep

[Python-Dev] Re: PEP 467 feedback from the Steering Council

2021-09-13 Thread Barry Warsaw
There is some discussion going on in bpo-45155 about what the default value of the `byteorder` argument should be for int.to_bytes() and int.from_bytes(): https://bugs.python.org/issue45155 I’ve created a short Discourse poll if you’d like to weigh in. https://discuss.python.org/t/what-should-b

[Python-Dev] Re: f-strings in the grammar

2021-09-21 Thread Barry Warsaw
On Sep 21, 2021, at 15:03, Terry Reedy wrote: > > If same-quote nesting were limited to 1 deep, REs could handle it. Since > nesting is not, and same-quote nesting would not be, they cannot in general. > > f'''length is {len(3*f"{f'{a}'}")}''' I tried this in the latest python-mode.el for Emac

[Python-Dev] Re: The Default for python -X frozen_modules.

2021-09-27 Thread Barry Warsaw
A couple of questions. If you’re planning a runtime -X option, then does that mean that the modules will be frozen at build time but Python will decide at runtime whether to use the frozen modules or the unfrozen ones? Are you planning on including the currently frozen importlib modules in that

[Python-Dev] Re: PEP 654 except* formatting

2021-10-03 Thread Barry Warsaw
On Oct 3, 2021, at 10:42, Łukasz Langa wrote: > > My idea is this: > > try: >... > except group E as e: >... > except group E1, T2 as e: >... > > Should be doable given the magical match-case contextual keywords precedent. > This looks nice and is explicit, since you will always ge

[Python-Dev] Re: PEP 654 except* formatting

2021-10-05 Thread Barry Warsaw
What do the PEP authors think about `except group`? Bikeshedding aside, that’s still the best alternative I’ve seen. It’s unambiguous, self-descriptive, and can’t be confused with unpacking syntax. -Barry > On Oct 5, 2021, at 11:15, sascha.schlemmer--- via Python-Dev > wrote: > > I agree t

[Python-Dev] Re: PEP 654 except* formatting

2021-10-05 Thread Barry Warsaw
What do the PEP authors think about `except group`? Bikeshedding aside, that’s still the best alternative I’ve seen. It’s unambiguous, self-descriptive, and can’t be confused with unpacking syntax. -Barry > On Oct 5, 2021, at 11:15, sascha.schlemmer--- via Python-Dev > wrote: > > I agree t

[Python-Dev] Re: PEP 654 except* formatting

2021-10-06 Thread Barry Warsaw
That might be exceptable. -Barry > On Oct 6, 2021, at 08:59, Brandt Bucher wrote: > > Łukasz Langa wrote: >> Joking aside, since we allow any expression after 'except' 'group' then this >> is indeed ambiguous. In theory! > > Another option (to remove the ambiguity) could be to move the “group

[Python-Dev] Re: RFC on Callable Type Syntax

2021-10-08 Thread Barry Warsaw
Thanks for thinking more deeply about how we can make type annotations for callables more user friendly. The intersection between the syntax for general Python code and type annotations has been a topic of discussion within the Steering Council (on and off) for quite some time. We intend to pr

[Python-Dev] Re: RFC on Callable Type Syntax

2021-10-08 Thread Barry Warsaw
On Oct 8, 2021, at 13:02, Sergei Lebedev wrote: > > I agree that type annotation syntax should be consistent with the rest of the > language, but I'm curious why it has to be "standard Python syntax"? Could > you elaborate a bit more on the reasoning behind that constraint? Hi Sergei. I don’

[Python-Dev] The last Python 2.6 security release

2013-02-20 Thread Barry Warsaw
I just updated PEP 361 (Python 2.6 release schedule). Python 2.6 is in security maintenance, source only release mode. Official support for Python 2.6 expires on October 1 2013, and I would like to do one last release[1], i.e. 2.6.9 as close to that date as possible. I know of issue 16248, but i

Re: [Python-Dev] XML DoS vulnerabilities and exploits in Python

2013-02-20 Thread Barry Warsaw
On Feb 21, 2013, at 10:38 AM, Nick Coghlan wrote: >- make it possible to enable safer behaviour globally in at least 2.7 >and 3.3 (and perhaps in 2.6 and 3.2 security releases as well) I want to be fairly conservative with 2.6.9. -Barry ___ Python-Dev

Re: [Python-Dev] XML DoS vulnerabilities and exploits in Python

2013-02-20 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Feb 20, 2013, at 11:35 PM, Tres Seaver wrote: >I believe that the same rationale should apply as that for adding hash >randomization in 2.6.8: this is at least as bad a vulnerability, with >many more vectors of attack. Except that I really want

Re: [Python-Dev] [Python-checkins] peps: Pre-alpha draft for PEP 435 (enum). The name is not important at the moment, as

2013-02-23 Thread Barry Warsaw
On Feb 23, 2013, at 04:02 PM, Stefan Krah wrote: >Hmm. I think this limits interoperation with C libraries and prototyping >C code. As for flufl.enums, it doesn't really, because while items are not ints they are interoperable with ints. >>> from flufl.enum import make >>> Colors = make('Colors'

Re: [Python-Dev] [Python-checkins] peps: Pre-alpha draft for PEP 435 (enum). The name is not important at the moment, as

2013-02-24 Thread Barry Warsaw
On Feb 23, 2013, at 04:02 PM, Stefan Krah wrote: >> +Ordered comparisons between enumeration values are *not* supported. Enums >> are +not integers! > >Hmm. I think this limits interoperation with C libraries and prototyping >C code. This is mostly a red-herring. flufl.enum values are C-level i

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