Hello,
On Wed, 6 Jan 2021 11:47:08 +1100
Steven D'Aprano wrote:
[]
> You know Paul, as an advocate for braces, you're doing a great job of
> convincing me that they aren't necessary.
I'm an advocate for braces in as much as I'm an advocate for 2+2=4.
Braces exist, and used by people who need
Hello,
On Tue, 5 Jan 2021 14:29:03 +0100
Ronald Oussoren wrote:
[]
> > In this regard, braces aren't worse than average other stuff posted
> > here. Actually, it might be a bit more interesting, as it clearly
> > moved people throughout the years.
>
> That’s questionable. The primary reason
On Wed, Jan 06, 2021 at 07:07:30AM +0300, Mikhail V wrote:
> I'd like to have an option to force the path separator for the
> "os.path.join()" method.
> E.g. if I run the script on Windows, but I generate, say, an URL, I'd
> find it convenient
> to use the same method, but with an explicit flag to
On 2021-01-05 20:07, Mikhail V wrote:
I'd like to have an option to force the path separator for the
"os.path.join()" method.
The urljoin method was made for the URL use case:
from urllib.parse import urljoin
urljoin('http://www.cwi.nl/%7Eguido/Python.html', 'FAQ.html')
'http:/
On 06Jan2021 07:07, Mikhail V wrote:
>I'd like to have an option to force the path separator for the
>"os.path.join()" method.
>E.g. if I run the script on Windows, but I generate, say, an URL, I'd
>find it convenient
>to use the same method, but with an explicit flag to "join" with the
>forward s
On 05Jan2021 22:41, Dan Sommers <2qdxy4rzwzuui...@potatochowder.com> wrote:
>That said, AIUI, there's nothing stopping a web server from using
>whatever separators it wants. Everything after the domain name is up to
>the web server to interpret; it just happens that most early web servers
>ran on
On 2021-01-06 at 07:07:30 +0300,
Mikhail V wrote:
> I'd like to have an option to force the path separator for the
> "os.path.join()" method.
> E.g. if I run the script on Windows, but I generate, say, an URL, I'd
> find it convenient
> to use the same method, but with an explicit flag to "join"
I'd like to have an option to force the path separator for the
"os.path.join()" method.
E.g. if I run the script on Windows, but I generate, say, an URL, I'd
find it convenient
to use the same method, but with an explicit flag to "join" with the
forward slash (because URLs use it).
Currently I simp
On Tue, Jan 05, 2021 at 02:35:05AM +0300, Paul Sokolovsky wrote:
> But links were already posted:
> https://github.com/search?o=desc&q=python+braces&s=updated&type=Repositories .
> That's even sorted by last updated. Not every project in that list is
> about "python braces", but there're enough.
you really want to look at other Python JIT methods, including ones based
on LLVM:
numba: https://numba.pydata.org/
and the old unladen swallow project:
http://qinsb.blogspot.com/2011/03/unladen-swallow-retrospective.html
and of course, not LLVM based, but PyPy is worth a look.
In short: a lot
On Wed, Jan 6, 2021 at 9:17 AM lasizoillo wrote:
>
> Sorry, but if I'm understanting the point is to make one-liners. For example,
> if I want to do something like:
>
> $ env | grep "^XDG"
>
> In one python one liner like
>
> $ python -c 'import os;print("\n".join([f"{key}:{value}" for key, value
Hi!
El mar, 5 ene 2021 a las 0:35, Paul Sokolovsky ()
escribió:
> Hello,
>
> On Tue, 5 Jan 2021 08:52:54 +1100
> Steven D'Aprano wrote:
>
>
> >> We love Python. We love them bash one-liners. We want to do
> >> one-liners in Python.
>
>
> The most vivid real-world example of that I know is Frida
On Tue, Jan 5, 2021 at 10:04 AM Chris Angelico wrote:
> So my question to you is: Why raise all these threads on python-ideas
> that have approximately zero chance of being accepted into the core
> language?
"Approximately zero" overstates the likelihood. "Strictly equal to zero"
is a more acc
On Wed, Jan 6, 2021 at 12:01 AM Paul Sokolovsky wrote:
> Anyway, this went offtopic wrt to the original subject.
> [chomp loads of drivel]
Yep, nothing more in this thread. Time to let it die a quiet death.
ChrisA
___
Python-ideas mailing list -- pytho
> On 5 Jan 2021, at 11:38, Paul Sokolovsky wrote:
>
> Hello,
>
> On Tue, 5 Jan 2021 21:03:06 +1100
> Chris Angelico mailto:ros...@gmail.com>> wrote:
>
>> On Tue, Jan 5, 2021 at 8:32 PM Paul Sokolovsky
>> wrote:
>>> And you seem to have 2nd level miss about this miss. I'm not the 1st
>>> aski
Hello,
On Tue, 5 Jan 2021 23:22:03 +1100
Chris Angelico wrote:
> On Tue, Jan 5, 2021 at 9:38 PM Paul Sokolovsky
> wrote:
> > There were good reasons to not have string interpolation in the core
> > language for decades then - KABOOM - there's string interpolation.
> > You see a pattern yet? No?
On Tue, Jan 5, 2021 at 9:38 PM Paul Sokolovsky wrote:
> There were good reasons to not have string interpolation in the core
> language for decades then - KABOOM - there's string interpolation. You
> see a pattern yet? No? Oh, let's just keep watching.
Do you have evidence from the language itsel
Hello,
On Tue, 5 Jan 2021 21:03:06 +1100
Chris Angelico wrote:
> On Tue, Jan 5, 2021 at 8:32 PM Paul Sokolovsky
> wrote:
> > And you seem to have 2nd level miss about this miss. I'm not the 1st
> > asking about braces in Python, hundreds of people embraced braces
> > (sorry for the pun) in Pyth
On Tue, Jan 5, 2021 at 8:32 PM Paul Sokolovsky wrote:
> And you seem to have 2nd level miss about this miss. I'm not the 1st
> asking about braces in Python, hundreds of people embraced braces
> (sorry for the pun) in Python for decades (references are in other
> messages of this thread). Apparent
Hello,
On Tue, 5 Jan 2021 10:07:45 +0100
Ronald Oussoren wrote:
> > On 4 Jan 2021, at 12:29, Paul Sokolovsky wrote:
> >
> > Hello,
> >
> > On Mon, 4 Jan 2021 21:47:26 +1100
> > Chris Angelico mailto:ros...@gmail.com>> wrote:
> >
> >> On Mon, Jan 4, 2021 at 9:41 PM Paul Sokolovsky
> >> wro
> On 4 Jan 2021, at 12:29, Paul Sokolovsky wrote:
>
> Hello,
>
> On Mon, 4 Jan 2021 21:47:26 +1100
> Chris Angelico mailto:ros...@gmail.com>> wrote:
>
>> On Mon, Jan 4, 2021 at 9:41 PM Paul Sokolovsky
>> wrote:
>>>
>>> Hello,
>>>
>>> There're tons of projects which introduce alternative br
21 matches
Mail list logo