[Python-Dev] Re: PEP 642 v3: Explicit patterns for structured pattern matching

2021-01-08 Thread Joseph Martinot-Lagarde
Paul Sokolovsky wrote: > Hello, > On Tue, 5 Jan 2021 20:37:27 +1000 > Nick Coghlan ncogh...@gmail.com wrote: > > object(host=as host, port=as port}:", but that > > couldn't ever be > > I'd like to point out the weirdness of the "as" syntax when applied > to > positional arguments, e.g.: > case [as

[Python-Dev] Re: Resurrecting PEP-472

2020-08-27 Thread Joseph Martinot-Lagarde
Hi, I'm Joseph, the co-author of PEP 472. You can remove the second complication ;) You can even remove my name if it simplifies things, Stefano did all of the work anyway. I'm also following the discussion on python-ideas and I like the way it seem to go with "standard" kwargs. It didn't

Re: [Python-Dev] File system path PEP, part 2

2016-05-13 Thread Joseph Martinot-Lagarde
> - there is no os function that returns "str or bytes, I don't > care which". (If you really need that, call __fspath__ directly.) os.fspath() in the PEP works when given str or bytes directly, but those don't have a __fspath__ method, so directly calling the dunder method is not equivalent

Re: [Python-Dev] Issue #26204: compiler now emits a SyntaxWarning on constant statement

2016-02-09 Thread Joseph Martinot-Lagarde
Victor Stinner gmail.com> writes: > > Hi, > > I changed the Python compiler to ignore any kind "constant > expressions", whereas it only ignored strings and integers before: > http://bugs.python.org/issue26204 > > The compiler now also emits a SyntaxWarning on such case. IMHO the > warning

Re: [Python-Dev] PEP 4000 to explicitly declare we won't be doing a Py3k style compatibility break again?

2014-08-20 Thread Joseph Martinot-Lagarde
Le 18/08/2014 03:02, Guido van Rossum a écrit : On Sun, Aug 17, 2014 at 6:29 AM, Barry Warsaw ba...@python.org mailto:ba...@python.org wrote: On Aug 16, 2014, at 07:43 PM, Guido van Rossum wrote: (Don't understand this to mean that we should never deprecate things. Deprecations

Re: [Python-Dev] Binary CPython distribution for Linux

2014-06-26 Thread Joseph Martinot-Lagarde
Le 26/06/2014 20:34, Gregory Szorc a écrit : I'm an advocate of getting users and projects to move to modern Python versions. I believe dropping support for end-of-lifed Python versions is important for the health of the Python community. If you've done any amount of Python 3 porting work, you

Re: [Python-Dev] Binary CPython distribution for Linux

2014-06-26 Thread Joseph Martinot-Lagarde
Le 26/06/2014 22:00, Antonio Cavallo a écrit : Of course Anaconda is oriented towards scientific applications but it is a proof that a pre-build binary installer works and can be simple to use. Rpm are the blessed way to instal software on linux: it supports what most sysadmin expect (easy

Re: [Python-Dev] Criticism of execfile() removal in Python3

2014-06-19 Thread Joseph Martinot-Lagarde
Le 15/06/2014 05:15, Steve Dower a écrit : So is exec(tokenize.open(file).read()) the actual replacement for execfile()? Not too bad, but still not obvious (or widely promoted - I'd never heard of it). Another way is to open the file in binary, then exec() checks itself if an encoding is