On 2024-05-29 at 11:39:14 -0700,
HenHanna via Python-list wrote:
> On 5/27/2024 1:59 PM, 2qdxy4rzwzuui...@potatochowder.com wrote:
> > https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule
[...]
> Are the Rules 1--9 by Greenspun good too?
I don't know; let me look it up. Oh, there it
On 5/29/24 13:27, Larry Martell via Python-list wrote:
On Tue, May 28, 2024 at 11:46 AM Left Right via Python-list
wrote:
Most Python objects aren't serializable into JSON. Pydantic isn't
special in this sense.
What can you do about this? -- Well, if this is a one-of situation,
then, maybe
On Wed, May 29, 2024 at 12:27 PM Larry Martell wrote:
>
> On Tue, May 28, 2024 at 11:46 AM Left Right via Python-list
> wrote:
> >
> > Most Python objects aren't serializable into JSON. Pydantic isn't
> > special in this sense.
> >
> > What can you do about this? -- Well, if this is a one-of
On 29/05/24 06:49, Gilmeh Serda via Python-list wrote:
Solved by using a different method.
Hedonist for hire... no job too easy!
This combination of sig-file and content seems sadly ironic.
How about CONTRIBUTING to the community by explaining 'the solution' to
people who may find a
On 2024-05-29, HenHanna wrote:
> On 5/27/2024 1:59 PM, 2qdxy4rzwzuui...@potatochowder.com wrote:
>> https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule
>
>
> interesting!!!
>
> Are the Rules 1--9 by Greenspun good too?
I don't think they exist; it's a joke.
However, Greenspun's resume
On 5/27/2024 1:59 PM, 2qdxy4rzwzuui...@potatochowder.com wrote:
On 2024-05-27 at 12:37:01 -0700,
HenHanna via Python-list wrote:
On 5/27/2024 7:18 AM, Cor wrote:
Some entity, AKA "B. Pym" ,
wrote this mindboggling stuff:
(selectively-snipped-or-not-p)
On 12/16/2023, c...@clsnet.nl
On Tue, May 28, 2024 at 11:46 AM Left Right via Python-list
wrote:
>
> Most Python objects aren't serializable into JSON. Pydantic isn't
> special in this sense.
>
> What can you do about this? -- Well, if this is a one-of situation,
> then, maybe just do it by hand?
>
> If this is a recurring
On 5/29/2024 10:59 AM, MRAB via Python-list wrote:
On 2024-05-29 15:32, Thomas Passin via Python-list wrote:
On 5/29/2024 8:55 AM, Kevin M. Wilson wrote:
Please recall, I said the format for the email failed to retain the
proper indents.
I'll attach a picture of the code!
Purpose; to
On 2024-05-29, Mats Wichmann via Python-list wrote:
> On 5/29/24 08:02, Grant Edwards via Python-list wrote:
>> On 2024-05-29, Chris Angelico via Python-list wrote:
>>
>>> print(f"if block {name[index]=} {index=}")
>>
>> Holy cow! How did I not know about the f-string {=} thing?
>
> It's more
On 2024-05-29 15:32, Thomas Passin via Python-list wrote:
On 5/29/2024 8:55 AM, Kevin M. Wilson wrote:
Please recall, I said the format for the email failed to retain the
proper indents.
I'll attach a picture of the code!
Purpose; to uppercase every other letter in a string.
Thanks all, KMW
> On 29 May 2024, at 05:38, Kevin M. Wilson via Python-list
> wrote:
>
> The format in this email is not of my making, should someone know, how to do
> this so that it's a readable script do tell!
> KMW
Your mail program may have a plain-text mode to compose messages in try using
that.
On 5/29/2024 8:55 AM, Kevin M. Wilson wrote:
Please recall, I said the format for the email failed to retain the
proper indents.
I'll attach a picture of the code!
Purpose; to uppercase every other letter in a string.
Thanks all, KMW
Simpler is good, and readability is good. For a simple
On 5/29/24 08:02, Grant Edwards via Python-list wrote:
On 2024-05-29, Chris Angelico via Python-list wrote:
print(f"if block {name[index]=} {index=}")
Holy cow! How did I not know about the f-string {=} thing?
It's more recent than f-strings in general, so it's not that hard to miss.
--
On 2024-05-29, Chris Angelico via Python-list wrote:
> print(f"if block {name[index]=} {index=}")
Holy cow! How did I not know about the f-string {=} thing?
--
Grant
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 29 May 2024 at 23:06, Dan Sommers via Python-list
wrote:
> (For the history-impaired, getopt existed long before Python and will
> likely exist long after it, but getopt's "replacement" optparse lasted
> only from 2003 until 2011.)
Depends on your definition of "lasted". It's not getting
On 2024-05-29 at 17:14:51 +1000,
Chris Angelico via Python-list wrote:
> I wouldn't replace str.format() everywhere, nor would I replace
> percent encoding everywhere - but in this case, I think Thomas is
> correct. Not because it's 2024 (f-strings were brought in back in
> 2015, so they're
On 5/29/2024 3:14 AM, Chris Angelico via Python-list wrote:
On Wed, 29 May 2024 at 16:03, Cameron Simpson via Python-list
wrote:
By which Thomas means stuff like this:
print(f'if block {name[index]} and index {index}')
Notice the leading "f'". Personally I wouldn't even go that far,
On 2024-05-29 05:33, Kevin M. Wilson via Python-list wrote:
The following is my effort to understand how to process a string, letter, by
letter:
def myfunc(name): index = 0 howmax = len(name) # while (index <=
howmax): while (index < howmax): if (index % 2 == 0):
On Tue, May 28, 2024 at 9:48 PM Gilmeh Serda via Python-list <
python-list@python.org> wrote:
>
> Solved by using a different method.
>
>
- - - And that was how?
TIA
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, 29 May 2024 at 16:03, Cameron Simpson via Python-list
wrote:
> By which Thomas means stuff like this:
>
> print(f'if block {name[index]} and index {index}')
>
> Notice the leading "f'". Personally I wouldn't even go that far, just:
>
> print('if block', name[index], 'and index',
On 29May2024 01:14, Thomas Passin wrote:
Also, it's 2024 ... time to start using f-strings (because they are
more readable than str.format())
By which Thomas means stuff like this:
print(f'if block {name[index]} and index {index}')
Notice the leading "f'". Personally I wouldn't even go
21 matches
Mail list logo