Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Greg Ewing
On 14/01/22 12:23 pm, dn wrote: On 14/01/2022 09.48, Dennis Lee Bieber wrote: On Thu, 13 Jan 2022 15:22:50 -0500, Dennis Lee Bieber declaimed the following: Talking to myself in public again... Bad habit... Recommend that you not start any arguments then - they will be unwinnable!

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread dn via Python-list
On 14/01/2022 09.48, Dennis Lee Bieber wrote: > On Thu, 13 Jan 2022 15:22:50 -0500, Dennis Lee Bieber > declaimed the following: > > Talking to myself in public again... Bad habit... Recommend that you not start any arguments then - they will be unwinnable! -- Regards, =dn -- https://ma

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Avi Gross via Python-list
I am not replying to anything below so I have removed it. So I need to remind people of the topic and how it has wandered. Someone has data in a not particularly great format in an EXCEL spreadsheet. They want to somehow use an external language like Python to manipulate the contents from outsid

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Dennis Lee Bieber
On Fri, 14 Jan 2022 08:24:43 +1100, Chris Angelico declaimed the following: >On Fri, Jan 14, 2022 at 7:56 AM Dennis Lee Bieber >wrote: >> >> On Thu, 13 Jan 2022 15:22:50 -0500, Dennis Lee Bieber >> declaimed the following: >> >> Talking to myself in public again... Bad habit... > >Not

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Chris Angelico
On Fri, Jan 14, 2022 at 7:56 AM Dennis Lee Bieber wrote: > > On Thu, 13 Jan 2022 15:22:50 -0500, Dennis Lee Bieber > declaimed the following: > > Talking to myself in public again... Bad habit... Not as bad as singing choruses in public, which - or so I'm told, by a mad girl in opera - i

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Dennis Lee Bieber
On Thu, 13 Jan 2022 15:22:50 -0500, Dennis Lee Bieber declaimed the following: Talking to myself in public again... Bad habit... > As you've described this system, the only thing your application will >do is record "check-outs" by tracking available copies of books, and the >name (

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread Dennis Lee Bieber
On Thu, 13 Jan 2022 10:44:01 -0800 (PST), NArshad declaimed the following: Please arrange to use some client that does proper quote attribution. It gets difficult to read these when you have snippets from multiple posts with no attribution of who wrote the snippet, and when it was posted,

Re: What to write or search on github to get the code for what is written below:

2022-01-13 Thread NArshad
- “if you are deploying to something like Heroku for the application -- the Excel file will have to be deployed also, and no one except your application will be able to see it there. Under this situation, there is no reason/excuse to keep the data in the very inefficient format you've defined i

Re: Scope confusion in Python REPL

2022-01-13 Thread Anssi Saari
Chris Angelico writes: > When you import something, all you're doing is getting a local > reference to it; "from foo import make_adder" is basically like saying > "import foo; make_adder = foo.make_adder". The function itself is > still the same, and it still remembers its original context. Than

Re: Scope confusion in Python REPL

2022-01-13 Thread Chris Angelico
On Thu, Jan 13, 2022 at 9:43 PM Anssi Saari wrote: > > > I ran into what seems odd scoping to me when playing with some matching > examples for 3.10. > > I kinda thought that if I do from foo import * and from bar import * in > the Python REPL, I'd get everything from foo and bar in the main > sco

Scope confusion in Python REPL

2022-01-13 Thread Anssi Saari
I ran into what seems odd scoping to me when playing with some matching examples for 3.10. I kinda thought that if I do from foo import * and from bar import * in the Python REPL, I'd get everything from foo and bar in the main scope. Or whatever the scope is at the prompt. And yet, if I define

Re: preserving entities with lxml

2022-01-13 Thread Robin Becker
On 13/01/2022 09:29, Dieter Maurer wrote: Robin Becker wrote at 2022-1-13 09:13 +: On 12/01/2022 20:49, Dieter Maurer wrote: ... Apparently, the `resolve_entities=False` was not effective: otherwise, your tree content should have more structure (especially some entity reference children).

Re: preserving entities with lxml

2022-01-13 Thread Dieter Maurer
Robin Becker wrote at 2022-1-13 09:13 +: >On 12/01/2022 20:49, Dieter Maurer wrote: > ... >> Apparently, the `resolve_entities=False` was not effective: otherwise, >> your tree content should have more structure (especially some >> entity reference children). >> >except that the tree knows not

Re: preserving entities with lxml

2022-01-13 Thread Robin Becker
On 12/01/2022 20:49, Dieter Maurer wrote: ... when run I see this $ python tmp/tlp.py using tostring xxml=b'a &mysym; < & > ! A' ET.tostring(tree)=b'a &mysym; < & > ! A' using attributes tree.text='a &mysym; < & > ! A' tree.getchildren(