[Python-ideas] Re: "Curated" package repo?

2023-07-24 Thread James Addison via Python-ideas
On Sun, Jul 9, 2023, 23:35 Christopher Barker wrote: > On Sun, Jul 9, 2023 at 8:37 AM James Addison via Python-ideas < > [email protected]> wrote: > >> ISTM the primary use cases advanced here have been for "naive" users. >>>> Likely they won'

[Python-ideas] Re: Proposal for get_or function in Python dictionaries

2023-07-19 Thread James Addison via Python-ideas
On Thu, Jul 20, 2023, 01:19 Rob Cliffe via Python-ideas < [email protected]> wrote: > > > On 15/07/2023 21:08, Dom Grigonis wrote: > > Just to add. I haven’t thought about evaluation. Thus, to prevent > evaluation of unnecessary code, introduction of C-style expression is > needed anyways: >

[Python-ideas] Re: "Curated" package repo?

2023-07-09 Thread James Addison via Python-ideas
On Sun, Jul 9, 2023, 16:25 Paul Moore wrote: > > > On Sun, 9 Jul 2023 at 15:56, Stephen J. Turnbull < > [email protected]> wrote: > >> James Addison via Python-ideas writes: >> >> > The implementation of such a system could either be c

[Python-ideas] Re: "Curated" package repo?

2023-07-09 Thread James Addison via Python-ideas
packaging infrastructure. On Sun, Jul 9, 2023, 16:09 James Addison wrote: > On Sun, Jul 9, 2023, 15:52 Stephen J. Turnbull < > [email protected]> wrote: > >> James Addison via Python-ideas writes: >> >> > The implementation of such a system co

[Python-ideas] Re: "Curated" package repo?

2023-07-09 Thread James Addison via Python-ideas
On Sun, Jul 9, 2023, 15:52 Stephen J. Turnbull < [email protected]> wrote: > James Addison via Python-ideas writes: > > > The implementation of such a system could either be centralized or > > distributed; the trust signals that human users infer from

[Python-ideas] Re: "Curated" package repo?

2023-07-09 Thread James Addison via Python-ideas
On Sun, Jul 9, 2023, 09:13 Chris Angelico wrote: > On Sun, 9 Jul 2023 at 18:06, James Addison via Python-ideas > wrote: > > > > On Sun, 9 Jul 2023 at 02:11, Cameron Simpson wrote: > > > I have always thought that any community scoring system should allow > > &g

[Python-ideas] Re: "Curated" package repo?

2023-07-09 Thread James Addison via Python-ideas
On Sun, 9 Jul 2023 at 02:11, Cameron Simpson wrote: > > On 04Jul2023 17:21, Christopher Barker wrote: > >3) A rating system built into PyPi -- This could be a combination of > >two > >things: > > A - Automated analysis -- download stats, dependency stats, release > >frequency, etc, etc, etc. > >

[Python-ideas] Re: "Curated" package repo?

2023-07-06 Thread James Addison via Python-ideas
hird party module on a UEFI >> interface. >> >> On Thu, Jul 6, 2023 at 9:11 AM James Addison via Python-ideas < >> [email protected]> wrote: >> >>> On Wed, Jul 5, 2023, 19:06 Chris Angelico wrote: >>> >>>> On Thu, 6 Jul 2023

[Python-ideas] Re: "Curated" package repo?

2023-07-06 Thread James Addison via Python-ideas
ty use cases. > > I don’t want to load a hash table to load a third party module on a UEFI > interface. > > On Thu, Jul 6, 2023 at 9:11 AM James Addison via Python-ideas < > [email protected]> wrote: > >> On Wed, Jul 5, 2023, 19:06 Chris Angelico wrote: >>

[Python-ideas] Re: "Curated" package repo?

2023-07-06 Thread James Addison via Python-ideas
On Wed, Jul 5, 2023, 19:06 Chris Angelico wrote: > On Thu, 6 Jul 2023 at 03:57, James Addison via Python-ideas > wrote: > > I also agree with a later reply about avoiding the murkier side of > blockchains / etc. That said, it seems to me (again, sample size one > anecdata) th

[Python-ideas] Re: "Curated" package repo?

2023-07-05 Thread James Addison via Python-ideas
On Wed, Jul 5, 2023, 01:24 Christopher Barker wrote: > Stating a new thread with a correct title. > > On 2 Jul 2023, at 10:12, Paul Moore wrote: > > Unfortunately, too much of this discussion is framed as “someone should”, >> or “it would be good if”. No-one is saying “I will”. Naming groups, li

[Python-ideas] Re: len(Enum) should raise TypeError

2023-04-04 Thread James Addison via Python-ideas
Hi Richard, On Tue, 4 Apr 2023 at 12:49, Richard Hajek wrote: > > I encountered that Enum having a len hid a mistake on my part. If len(Enum) > raised, my mistake would be immediately apparent, however at the end of the > day, my mistake was easily found. Can any Python linting tools (such as

[Python-ideas] Re: Proposal: -X importcache to supplement -X importtime for loaded modules

2023-02-27 Thread James Addison via Python-ideas
On Wed, 15 Feb 2023 at 02:06, Inada Naoki wrote: > > `-X importtime=2` > > This is expert-only tool. So no need for verbose name. +1 that re-using existing parameter names is both concise and also convenient. However: do we have an opportunity to make the parameter _value_ both concise and also

[Python-ideas] Re: Combinations of keywords

2023-02-21 Thread James Addison via Python-ideas
On Tue, 21 Feb 2023 at 11:29, Steven D'Aprano wrote: > Trying to squeeze many lines of code into one line is a bad idea. Agreed, in most cases - but there can be (no pun intended.. probably) exceptions to that. if cloudy or raining: print("Bring an umbrella") else: print("Looks fair out"

[Python-ideas] Re: Multiple arguments to str.partition and bytes.partition

2023-01-09 Thread James Addison via Python-ideas
On Sun, 8 Jan 2023 at 20:20, dn wrote: > > (and hence earlier illustration/question: does the sep belong with the > string forming the left-side of that partition, or the 'right'?) There's no connection implied between each separator and the partitions that surround it in the results. In the use

[Python-ideas] Re: Multiple arguments to str.partition and bytes.partition

2023-01-08 Thread James Addison via Python-ideas
On Sun, 8 Jan 2023 at 08:32, Stephen J. Turnbull wrote: > > Steven D'Aprano writes: > > > On Sat, Jan 07, 2023 at 10:48:48AM -0800, Peter Ludemann wrote: > > > You can get almost the same result using pattern matching. For example, > your > > > "foo:bar;baz".partition(":", ";") > > > can be d

[Python-ideas] Re: Multiple arguments to str.partition and bytes.partition

2023-01-08 Thread James Addison via Python-ideas
On Sun, 8 Jan 2023 at 13:20, Barry Scott wrote: > Maybe combine the ideas by allowing a tuple where a string is used. > 'a=b;c'.partition('=', (':',';')) => ('a', '=', b, ';', 'c') I like that idea - and it seems to fit neatly with the existing partition contract: the inclusion of the matched-de

[Python-ideas] Re: Multiple arguments to str.partition and bytes.partition

2023-01-08 Thread James Addison via Python-ideas
On Sun, 8 Jan 2023 at 03:44, Steven D'Aprano wrote: > > Keep it nice and simple: provided with multiple separators, `partition` > will split the string on the first separator found in the source string. > > In other words, `source.partition(a, b, c, d)` will split on a /or/ b > /or/ c /or/ d, whic

[Python-ideas] Multiple arguments to str.partition and bytes.partition

2023-01-07 Thread James Addison via Python-ideas
Hi folks, I'd like to gather some feedback on a feature suggestion to extend str.partition and bytes.partition to support multiple arguments. Please find the feature described below. # Feature or enhancement The str.partition[1] method -- and similarly the bytes.partition[2] method -- is useful w