[Python-Dev] Re: Switching to Discourse

2022-12-05 Thread Barney Gale
On Mon, 5 Dec 2022 at 01:00, Steven D'Aprano wrote: > On Sun, Dec 04, 2022 at 08:20:56PM +, Barney Gale wrote: > > > Oh brilliant. I'll unsubscribe from this list then. It sounds like the > only > > people using it will be those folks who think their too

[Python-Dev] Re: Switching to Discourse

2022-12-04 Thread Barney Gale
vello, < devel2...@baptiste-carvello.net> wrote: > Le 04/12/2022 à 16:55, Barney Gale a écrit : > > > > I don't want to post to multiple > > places in order to reach the devs. > > Nobody proposed that. In order to reach the devs, you use discourse (or > have someon

[Python-Dev] Re: Switching to Discourse

2022-12-04 Thread Barney Gale
Perspective from a minor Python contributor: The only thing worse than email or Discourse is email AND Discourse. Fragmented communities are a nightmare. I don't want to post to multiple places in order to reach the devs. Its hard enough to build consensus already. The relative strengths of email

[Python-Dev] Re: Raw strings ending with a backslash

2022-05-28 Thread Barney Gale
Personally I'd expect these two lines to do the same thing, whatever that thing is: path = 'C:\' path = ('C:\') Barney On Sat, 28 May 2022 at 12:59, Damian Shaw wrote: > That PR seems to make \' and \" not special in general right? > > I think this is a more limited proposal, to only change th

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-30 Thread Barney Gale
On Wed, 30 Mar 2022 at 12:20, Antoine Pitrou wrote: > On Wed, 30 Mar 2022 12:03:58 +0100 > Steve Dower wrote: > > On 30Mar2022 1124, Barney Gale wrote: > > > I'd like to become a maintainer for the pathlib module, if possible. I > > > know the code and tests

[Python-Dev] Re: Are "Batteries Included" still a Good Thing? [was: It's now time to deprecate the stdlib urllib module]

2022-03-30 Thread Barney Gale
On Mon, 28 Mar 2022 at 20:37, Steve Dower wrote: > email doesn't fix bugs; maintainers fix bugs. Please let us know > *publicly* if you want to become the maintainer for a stdlib module and > then we can support them, but if nobody is willing/able/ready to care > for them it's irresponsible for u

[Python-Dev] Re: Request for feedback: pathlib.AbstractPath prototype

2022-02-11 Thread Barney Gale
On Thu, 10 Feb 2022 at 21:45, Brett Cannon wrote: > > > On Wed, Feb 9, 2022 at 11:59 AM Barney Gale wrote: > >> Penny for your thoughts on those questions, Brett? Protocols are new to >> me. I see importlib.abc.Traversable is a Protocol, and I'm giving PEP 544 a

[Python-Dev] Re: Request for feedback: pathlib.AbstractPath prototype

2022-02-09 Thread Barney Gale
n Wed, Feb 9, 2022 at 7:05 AM Barney Gale wrote: > >> Over the last couple of years I've been tidying up the pathlib internals, >> with a view towards adding an AbstractPath class to the hierarchy. Users >> would be able to subclass AbstractPath to implement other kinds of >

[Python-Dev] Re: Request for feedback: pathlib.AbstractPath prototype

2022-02-09 Thread Barney Gale
On Wed, 9 Feb 2022 at 15:46, Ethan Furman wrote: > On 2/9/22 6:59 AM, Barney Gale wrote: > > > I've now submitted a PR that adds an initial underscore-prefixed > implementation of this class: > > Why the iniitial underscore? What could change between now and t

[Python-Dev] Request for feedback: pathlib.AbstractPath prototype

2022-02-09 Thread Barney Gale
Over the last couple of years I've been tidying up the pathlib internals, with a view towards adding an AbstractPath class to the hierarchy. Users would be able to subclass AbstractPath to implement other kinds of filesystems: s3, google cloud storage, pandas, ftp, git, zip and tar files, etc. By i

[Python-Dev] Re: Increase of Spammy PRs and PR reviews

2022-01-31 Thread Barney Gale
On Mon, 31 Jan 2022 at 23:29, Greg Ewing wrote: > Or they may just feel that it's better to organise their changes into > a number of small, independent commits rather than one large one. I > wouldn't be too quick to jump to conclusions about people's motives > here. I've found that highly targ

[Python-Dev] Re: 3.11 enhanced error location - can it be smarter?

2022-01-18 Thread Barney Gale
tox and pytest look at PY_COLORS: https://github.com/tox-dev/tox/blob/9cc692d85c9ce84344ea7fee4b127755c6099a32/src/tox/session/commands/help.py https://docs.pytest.org/en/6.2.x/reference.html#envvar-PY_COLORS On Tue, 18 Jan 2022 at 21:17, Ethan Furman wrote: > On 1/18/22 11:59 AM, Pablo Galindo

[Python-Dev] Re: Problems with dict subclassing performance

2021-08-19 Thread Barney Gale
Can someone please ban Marco? Temp ban would work fine. Thanks Barney On Thu, 19 Aug 2021 at 21:24, Marco Sulla wrote: > Anyway, Cannon, don't take it personal. I accuse the entire system, > the whole CoC council. > > Indeed I was also fired some times ago from the python-ideas list: > > https

[Python-Dev] Re: Request for reviewers: pathlib improvements

2021-07-01 Thread Barney Gale
pathlib tickets). Very appreciate to any core dev who might be able to find the time for these. Thank you! Barney On Sat, 24 Apr 2021 at 23:16, Barney Gale wrote: > Hi all, > > I hope I’m not in danger of abusing this mailing list - please let me know > if this is too much noise. >

[Python-Dev] Re: name for new Enum decorator

2021-05-30 Thread Barney Gale
+1 on 'complete'. If 'enum.unique()' means 'every value has at most one name', then perhaps `enum.complete()` can mean 'every value has at least one name'? Or is that not accurate? Other suggestions: 'occupied', 'full', 'exhaustive'. Barney On Mon, 31 May 2021 at 00:02, Jeff Allen wrote: > On

[Python-Dev] expanduser('~other') reliability and future

2021-04-28 Thread Barney Gale
There’s been a bit of discussion on the reliability of getting other users' home directories via os.path.expanduser(), mostly on issue42998 . In msg390503 , Serhiy Storchaka pointed out that ntpath only makes an educ

[Python-Dev] Re: Request for reviewers: pathlib improvements

2021-04-24 Thread Barney Gale
oviding a supported route for extending an AbstractPath saves a bunch of heartache and makes the wider pathlib ecosystem more robust. Thanks again to everyone who has contributed their time and expertise up to this point. Cheers Barney On Fri, 9 Apr 2021 at 01:17, Barney Gale wrote: >

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

2021-04-14 Thread Barney Gale
> In my Python projects, I like to provide the version as a tuple which > can be used directly for comparison To add to this, comparing tuples doesn't always work well for projects where multiple release lines are maintained simultaneously, e.g. user-facing changes introduced in minor/point releas

[Python-Dev] Re: Request for reviewers: pathlib improvements

2021-04-08 Thread Barney Gale
ows work on pathlib.AbstractPath to proceed. Thanks again to Antoine Pitrou, Brett Cannon, Serhiy Storchaka, Steve Dower and Eryk Sun for their invaluable contributions. Barney On Sat, 3 Apr 2021 at 03:02, Barney Gale wrote: > I’m working towards supporting subclassing pathlib.Path for thin

[Python-Dev] Re: Help to Resolve issues with Pull request 25220

2021-04-07 Thread Barney Gale
Hi Anthony, It looks like you’ve incorporated several other changes into your commit by mistake. The simplest thing to do might be to re-create your git branch and PR from scratch. If conflicting changes land while your PR is still open, you’ll need to do something called a “rebase”. The git book

[Python-Dev] Request for reviewers: pathlib improvements

2021-04-02 Thread Barney Gale
I’m working towards supporting subclassing pathlib.Path for things like zip/tar archives, iso files, S3, etc. This was first brought up a few years ago in bpo-24132 and discussed further on the python-ideas forum

[Python-Dev] Re: pathlib.Path: inconsistent symlink_to() and link_to()

2021-01-21 Thread Barney Gale
thub.com/python/cpython/pull/18909#discussion_r392416154 [1] https://bugs.python.org/issue39950#msg365275 On Wed, 11 Mar 2020 at 17:31, Brett Cannon wrote: > Antoine Pitrou wrote: > > On Wed, 11 Mar 2020 11:17:22 + > > Barney Gale barney.g...@gmail.com wrote: > > &g

[Python-Dev] Re: Recent PEP-8 change (Antoine Pitrou)

2020-07-02 Thread Barney Gale
Perhaps you could revert the original commit, then apply the same diff again with an adjusted message? Would that strike a good balance? Cheers, Barney On Thu, 2 Jul 2020 at 21:36, Henk-Jaap Wagenaar wrote: > On Thu, 2 Jul 2020 at 20:33, Chris Angelico wrote: > >> On Fri, Jul 3, 2020 at 5:

[Python-Dev] Re: PEP 616 -- String methods to remove prefixes and suffixes

2020-03-21 Thread Barney Gale
My 2c on the naming: 'start' and 'end' in 'startswith' and 'endswith' are verbs, whereas we're looking for a noun if we want to cut/strip/trim a string. You can use 'start' and 'end' as nouns for this case but 'prefix' and 'suffix' seems a more obvious choice in English to me. Pathlib has `with_s

[Python-Dev] pathlib.Path: inconsistent symlink_to() and link_to()

2020-03-11 Thread Barney Gale
Hi, Pathlib's symlink_to() and link_to() methods have different argument orders, so: a.symlink_to(b) # Creates a symlink from A to B a.link_to(b) # Creates a hard link from B to A I don't think link_to() was intended to be implemented this way, as the docs say "Create a hard link point