Aw: Re: The task is to invent names for things

2021-10-28 Thread Karsten Hilbert
> Karsten Hilbert writes: > >ite is the -te form (in some uses like a gerundium) of aru > >(to go, to walk) > > This form, "行って", is written with two "t", as "itte", > in many transcriptions to convey the gemination (っ) of > the "t". There is, however, "ite", "居て", the -te form of > "居る"

Re: New assignmens ...

2021-10-28 Thread Antoon Pardon
Op 27/10/2021 om 20:20 schreef Avi Gross: I think anyone who suggests we should separate costs from benefits belongs securely within the academic world and should remain there. Practical things need to be built considering costs. Theoretical things, sure, cost is not an issue. Seperating co

Re: walrus with a twist :+= or ...

2021-10-28 Thread Abdur-Rahmaan Janhangeer
The proposal is very interesting, my only concern is readability unless a team has a tool check and flag it out as a process. Else i fear one day i'll be seeing =+_+= in Python code. But jokes aside @Avi why would someone want to immediately add a 2 after walrus defining it? in :+=2 Kind Regards

Re: New assignmens ...

2021-10-28 Thread Antoon Pardon
Op 27/10/2021 om 17:05 schreef Christman, Roger Graydon: I'm going to provide two loop-and-a-half segments to illustrate my interpretation of this PEP and the purpose of the walrus operator: [ first example ] Now contrast with this example: Without the walrus: replay = True while replay:

FlaskCon 2021: The Last Call

2021-10-28 Thread Abdur-Rahmaan Janhangeer
Greetings everybody, FlaskCon's CFP closes soon. If you plan to push in some talks, please do so. Don't worry about reviewing and push it in, like it's very simple to get started with and this year might be the last online one. This year it's pre-recorded with optional live QnA. So internet conne

Re: walrus with a twist :+= or ...

2021-10-28 Thread Peter J. Holzer
On 2021-10-27 22:15:09 -0400, Avi Gross via Python-list wrote: > But a serious question is now that we sort of have UNICODE, and even many > editors and other programs support it, perhaps it might make sense for some > operations in computer languages to make use of them. I have thought so since t

Python and Flask Book

2021-10-28 Thread Bruno Oliveira
Hello all, I would like to spread the word about a new Python book I have released, on how to develop a web application using Flask and deploying it on Heroku. It's geared more towards beginners or towards anyone who is willing to learn Python and Flask! I would be very glad if you know of people

Re: New assignmens ...

2021-10-28 Thread Jon Ribbens via Python-list
On 2021-10-28, Paul Rubin wrote: > Chris Angelico writes: >> But it all depends on the exact process being done, which is why I've >> been asking for real examples. > > My most frequent use case for walrus is so common that I have sometimes > implemented a special class for it: > >if g := re.

Re: Why so fast a web framework?

2021-10-28 Thread Calvin Spealman
Who cares? On Wed, Oct 27, 2021 at 10:47 PM Abdur-Rahmaan Janhangeer < arj.pyt...@gmail.com> wrote: > @Chris @Peter > > > See that famous benchmark > > https://www.techempower.com/benchmarks/#section=data-r20 > > Like routinely PHP frameworks appear higher up than py > -- > https://mail.python.or

Re: Why so fast a web framework?

2021-10-28 Thread Abdur-Rahmaan Janhangeer
Me Like why exactly is that the case, i would not be surprised for rust, C, CPP etc But as to where the difference comes for two comparatively similar langs. Kind Regards, Abdur-Rahmaan Janhangeer about | blog github

RE: Re: The task is to invent names for things

2021-10-28 Thread Avi Gross via Python-list
Names can be taken too far as the same variable may have different connotations in one place than another. Say I am counting how many of something and incrementing variable HowMany as I go along and initialized to zero. Then I want to test if I have any and instead of: if (HowMany > 0) I

RE: New assignmens ...

2021-10-28 Thread Avi Gross via Python-list
Antoon, You keep beating a dead horse. NOBODY denies there are benefits to suggestions like the one we are describing. It is a logical fallacy to keep arguing this way. And nobody (meaning me) suggests costs are a dominant factor in decisions no matter the benefits. The realistic suggest

Re: New assignmens ...

2021-10-28 Thread Chris Angelico
On Fri, Oct 29, 2021 at 4:37 AM Avi Gross via Python-list wrote: > Now for a dumb question. Many languages allow a form of setting a variable to > a value like: > > assign(var, 5+sin(x)) > > If we had a function that then returned var or the value of var, cleanly, > then would th

Re: The task is to invent names for things

2021-10-28 Thread Martin Di Paola
IMHO, I prefer really weird names. For example if I'm not sure how to name a class that I'm coding, I name it like XXXYYY (literally). Really ugly. This is a way to avoid the so called "naming paralysis". Once I finish coding the class I look back and it should be easy to see "what it does" and

RE: walrus with a twist :+= or ...

2021-10-28 Thread Avi Gross via Python-list
Good points, Peter. Although we are discussing Python, I think it would be reasonable to look a bit more broadly. Ages ago, IBM used a different encoding than ASCII called EBCDIC (Extended Binary Coded Decimal Interchange Code ) which let them use all 8 bits and thus add additional symbols. ± ¦

Re: Why so fast a web framework?

2021-10-28 Thread Calvin Spealman
I don't think there's anything meaningful being compared in that so-called "benchmark" at all. There is no evidence that its worth even the smallest bit of attention. You want to write a web service? Do it. Use Python or PHP, or whatever you prefer. Do you think your service is "slow"? You won't k

Re: walrus with a twist :+= or ...

2021-10-28 Thread Chris Angelico
On Fri, Oct 29, 2021 at 5:53 AM Avi Gross via Python-list wrote: > Is there a reasonable extension to a keyboard that might be reasonable, > perhaps with an accommodation to those without such a keyboard so that > entering some sequence gets it converted into what you want on the screen > but more

Re: Get a Joke in Python

2021-10-28 Thread Mostowski Collapse
QA engineer walks into a bar. Orders a beer. Orders 0 beers. Orders 9 beers. Orders a lizard. Orders -1 beers. Orders a sfdeljknesv. LoL joel.d...@gmail.com schrieb am Mittwoch, 27. Oktober 2021 um 21:00:29 UTC+2: > Get a Joke in Python. Pyjokes - is a python library / module for one lin

Re: Why so fast a web framework?

2021-10-28 Thread Chris Angelico
On Fri, Oct 29, 2021 at 6:17 AM Calvin Spealman wrote: > > I don't think there's anything meaningful being compared in that so-called > "benchmark" at all. There is no evidence that its worth even the smallest > bit of attention. > > You want to write a web service? Do it. Use Python or PHP, or wh

Re: Get a Joke in Python

2021-10-28 Thread Chris Angelico
On Fri, Oct 29, 2021 at 7:31 AM Mostowski Collapse wrote: > > QA engineer walks into a bar. Orders a beer. Orders 0 beers. > Orders 9 beers. Orders a lizard. Orders -1 beers. > Orders a sfdeljknesv. > Orders 1 пиво and is served a пиво. QA engineer sighs "not again". ChrisA -- https

RE: The task is to invent names for things

2021-10-28 Thread Avi Gross via Python-list
Stefan, I choose not to get involved in a discussion about arbitrary naming rules as many languages and programmers have their own ideas and preferences and rules. My examples were EXAMPLES and the actual names are irrelevant. Feel free not to use them and I assure you I have no plans to either

RE: walrus with a twist :+= or ...

2021-10-28 Thread Avi Gross via Python-list
Thank, Chris. I found and installed one from here: https://github.com/samhocevar/wincompose My right ALT key now lets me type in all kinds of nonsense like ⑦ and © and ß and ℵ0 and ⅔ and ≠ and ⇒ and ♬and although :- makes ÷ I see := makes ≔ which is just a longer equals sign. Not sure this

Re: Get a Joke in Python

2021-10-28 Thread Greg Ewing
On 29/10/21 11:34 am, Chris Angelico wrote: On Fri, Oct 29, 2021 at 7:31 AM Mostowski Collapse wrote: QA engineer walks into a bar. Orders a beer. Orders 0 beers. Orders 9 beers. Orders a lizard. Orders -1 beers. Orders a sfdeljknesv. Orders 1 пиво and is served a пиво. QA engin

Re: walrus with a twist :+= or ...

2021-10-28 Thread Grant Edwards
On 2021-10-28, Avi Gross via Python-list wrote: > I see := makes ≔ which is just a longer equals sign. On my screen it's an assignment operator that looks like := only a bit smaller. > Not sure this mailing list allows this stuff, so if your mailer does > not show it, never mind. Everything re

Re: Get a Joke in Python

2021-10-28 Thread Jon Ribbens via Python-list
On 2021-10-28, Greg Ewing wrote: > On 29/10/21 11:34 am, Chris Angelico wrote: >> On Fri, Oct 29, 2021 at 7:31 AM Mostowski Collapse >> wrote: >>> QA engineer walks into a bar. Orders a beer. Orders 0 beers. >>> Orders 9 beers. Orders a lizard. Orders -1 beers. >>> Orders a sfdeljknesv.

Re: Get a Joke in Python

2021-10-28 Thread Chris Angelico
On Fri, Oct 29, 2021 at 12:29 PM Jon Ribbens via Python-list wrote: > > On 2021-10-28, Greg Ewing wrote: > > On 29/10/21 11:34 am, Chris Angelico wrote: > >> On Fri, Oct 29, 2021 at 7:31 AM Mostowski Collapse > >> wrote: > >>> QA engineer walks into a bar. Orders a beer. Orders 0 beers. > >>> O

Re: Why so fast a web framework?

2021-10-28 Thread Dan Stromberg
I care, and I suspect the OP does too. Usually machine time doesn't matter as much as developer time, but API overhead Can matter - especially on a busy server. I wonder if Pypy would do any better? Or Micropython? Or Cython? CPython != Python. Sometimes this group reminds me of a certain lar

Re: Why so fast a web framework?

2021-10-28 Thread Chris Angelico
On Fri, Oct 29, 2021 at 3:49 PM Dan Stromberg wrote: > > I care, and I suspect the OP does too. Usually machine time doesn't matter > as much as developer time, but API overhead Can matter - especially on a > busy server. > > I wonder if Pypy would do any better? Or Micropython? Or Cython? > >

Re: New assignmens ...

2021-10-28 Thread Antoon Pardon
Op 28/10/2021 om 19:36 schreef Avi Gross via Python-list: Antoon, You keep beating a dead horse. NOBODY denies there are benefits to suggestions like the one we are describing. It is a logical fallacy to keep arguing this way. Please point to the specific logical falacy you think I am co

Re: Why so fast a web framework?

2021-10-28 Thread Abdur-Rahmaan Janhangeer
Well, They don't choose languages per se but choose frameworks based on that and ... by virtue of that choose languages. Like just to get faster web services. The benchmark is pretty much referred to in the Python world, web side like https://www.starlette.io/ "Independent TechEmpower benchmarks