FlaskCon's CFP is now open till Oct 24

2021-09-28 Thread Abdur-Rahmaan Janhangeer
Greetings folks, FlaskCon is around again this year, the very latest conf of the year. Bouncing in the first week of December, 1 2 3 4. CFP is open, submit -> https://flaskcon.com/ Any queries, let them fly to flask...@gmail.com Kind Regards, Abdur-Rahmaan Janhangeer about

Re: OT: AttributeError

2021-09-28 Thread Chris Angelico
On Wed, Sep 29, 2021 at 12:06 PM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > ... Or, even better, to be able to read off a hex dump and see E8 03 > > and instantly read it as "1,000 little-endian". > > 59535 big endian. Warningm flamebait ahead: Who thinks in little > endian? (I was raised o

Re: OT: AttributeError

2021-09-28 Thread 2QdxY4RzWzUUiLuE
On 2021-09-29 at 09:21:34 +1000, Chris Angelico wrote: > ... read off a hex dump and see E8 > 03 and instantly read it as "1,000 little-endian". ITYM 000,1 little-endian. ;-) (Or possibly 000.1, depending on your locale.) -- https://mail.python.org/mailman/listinfo/python-list

Re: OT: AttributeError

2021-09-28 Thread 2QdxY4RzWzUUiLuE
On 2021-09-29 at 09:21:34 +1000, Chris Angelico wrote: > On Wed, Sep 29, 2021 at 9:10 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > > > On 2021-09-29 at 11:38:22 +1300, > > dn via Python-list wrote: > > > > > For those of us who remember/can compute in binary, octal, hex, or > > > decimal a

Re: OT: AttributeError

2021-09-28 Thread Chris Angelico
On Wed, Sep 29, 2021 at 11:59 AM dn via Python-list wrote: > If I hold up two fingers, am I insulting you, or asking for three of > something? > A Roman soldier walked into a bar holding up two fingers. "Five beers, please" ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: OT: AttributeError

2021-09-28 Thread dn via Python-list
On 29/09/2021 12.21, Chris Angelico wrote: > On Wed, Sep 29, 2021 at 9:10 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: >> >> On 2021-09-29 at 11:38:22 +1300, >> dn via Python-list wrote: >> >>> For those of us who remember/can compute in binary, octal, hex, or >>> decimal as-needed: >>> Why do p

Re: OT: AttributeError

2021-09-28 Thread Chris Angelico
On Wed, Sep 29, 2021 at 10:06 AM Greg Ewing wrote: > > On 29/09/21 12:21 pm, Chris Angelico wrote: > > to the extent that you automatically read 65 and 0x41 as the same > > number. > > Am I too geeky for reading both of them as 'A'? > Not even slightly, and I did deliberately choose a printable A

Re: OT: AttributeError

2021-09-28 Thread Greg Ewing
On 29/09/21 12:21 pm, Chris Angelico wrote: to the extent that you automatically read 65 and 0x41 as the same number. Am I too geeky for reading both of them as 'A'? -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: XML Considered Harmful

2021-09-28 Thread dn via Python-list
On 29/09/2021 06.53, Michael F. Stemper wrote: > On 28/09/2021 10.53, Stefan Ram wrote: >> "Michael F. Stemper" writes: >>> Well, I could continue to hard-code the data into one of the test >>> programs >> >>    One can employ a gradual path from a program with hardcoded >>    data to an entity sh

Re: XML Considered Harmful

2021-09-28 Thread Greg Ewing
On 29/09/21 4:37 am, Michael F. Stemper wrote: I'm talking about something made from tons of iron and copper that is oil-filled and rotates at 1800 rpm. To avoid confusion, we should rename them "electricity comprehensions". -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: OT: AttributeError

2021-09-28 Thread Chris Angelico
On Wed, Sep 29, 2021 at 9:10 AM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2021-09-29 at 11:38:22 +1300, > dn via Python-list wrote: > > > For those of us who remember/can compute in binary, octal, hex, or > > decimal as-needed: > > Why do programmers confuse All Hallows'/Halloween for Chr

Re: OT: AttributeError

2021-09-28 Thread 2QdxY4RzWzUUiLuE
On 2021-09-29 at 11:38:22 +1300, dn via Python-list wrote: > For those of us who remember/can compute in binary, octal, hex, or > decimal as-needed: > Why do programmers confuse All Hallows'/Halloween for Christmas Day? That one is also very old. (Yes, I know the answer. No, I will not spoil i

OT: AttributeError

2021-09-28 Thread dn via Python-list
On 29/09/2021 10.50, Stefan Ram wrote: > (For Python programmers who have watched "Game of Thrones".) > > |>>> class girl: > |... pass > |... > |>>> girl = girl() > |>>> print( girl.name ) > |Traceback (most recent call last): > | File "", line 1, in > |AttributeError: A girl has no name.

Re: XML Considered Harmful

2021-09-28 Thread Chris Angelico
On Wed, Sep 29, 2021 at 8:00 AM Stefan Ram wrote: > JSON is a kind of a subset of JavaScript for JavaScript > programmers. In Python, we can use JSON too, or we can > use Python itself. > > When some external requirement to use a data exchange > notation like JSON should appear, one can

RE: XML Considered Harmful

2021-09-28 Thread Avi Gross via Python-list
Not lucky at all, Michael. The problem is he published a number of things with Paul Erdős a few years after I got my degrees and went to Bell laboratories. I never met Erdős but he was prolific and had 507 people publish with him as co-authors. I would have loved to as I also speak languages he spo

Re: XML Considered Harmful

2021-09-28 Thread Michael F. Stemper
On 28/09/2021 13.27, Avi Gross wrote: Well, Michael, if you want to go back to the eighties, and people you worked with, I did my Thesis with a professor who later had an Erdős number of 1! Too bad I never got around to publishing something with him or I could have been a 2! Lucky you. If a pap

Re: XML Considered Harmful

2021-09-28 Thread Karsten Hilbert
Am Tue, Sep 28, 2021 at 12:53:49PM -0500 schrieb Michael F. Stemper: > This sounds like a suggestion that I hard-code the data into a > module. I suppose that I could have half-a-dozen modules with > different data sets and ln them as required: > > $ rm GenData.py* FuelData.py* > $ ln gendata1.py

RE: XML Considered Harmful

2021-09-28 Thread Avi Gross via Python-list
Well, Michael, if you want to go back to the eighties, and people you worked with, I did my Thesis with a professor who later had an Erdős number of 1! Too bad I never got around to publishing something with him or I could have been a 2! But that work, being so long ago, was not in Python but main

RE: XML Considered Harmful

2021-09-28 Thread Avi Gross via Python-list
I replied to Michael privately but am intrigued by his words here: "The thing that creates realistic test cases is my brain." I consider extensions to my brain to include using a language like Python on my computer and in particular, to take a model I think of and instantiate it. Lots of people h

Re: XML Considered Harmful

2021-09-28 Thread Michael F. Stemper
On 28/09/2021 10.53, Stefan Ram wrote: "Michael F. Stemper" writes: Well, I could continue to hard-code the data into one of the test programs One can employ a gradual path from a program with hardcoded data to an entity sharable by different programs. When I am hurried to rush to a

Re: XML Considered Harmful

2021-09-28 Thread Michael F. Stemper
On 28/09/2021 02.25, Peter J. Holzer wrote: On 2021-09-27 21:01:04 -0400, Avi Gross via Python-list wrote: You keep talking about generators, though. If the generators are outside of your program, then yes, you need to read in whatever they produce. As I understood it, the "generators" don't g

Re: XML Considered Harmful

2021-09-28 Thread Michael F. Stemper
On 27/09/2021 20.01, Avi Gross wrote: Michael, Given your further explanation, indeed reading varying numbers of points in using a CSV is not valid, albeit someone might just make N columns (maybe a few more than 7) to handle a hopefully worst case. Definitely it makes more sense to read in a li

Re: XML Considered Harmful

2021-09-28 Thread dn via Python-list
On 25/09/2021 11.26, David L Neil via Python-list wrote: > On 25/09/2021 11.00, Chris Angelico wrote: > >> Invented because there weren't enough markup languages, so we needed another? > > Anything You Can Do I Can Do Better > https://www.youtube.com/watch?v=_UB1YAsPD6U Article (rather brief) i

Re: XML Considered Harmful

2021-09-28 Thread Peter J. Holzer
On 2021-09-27 21:01:04 -0400, Avi Gross via Python-list wrote: > You keep talking about generators, though. If the generators are outside of > your program, then yes, you need to read in whatever they produce. As I understood it, the "generators" don't generate the data, they are the subject of th