Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #198005

XML in Pythong (was: Re: Postscript in 4tH)

Path csiph.com!2.eu.feeder.erje.net!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer05.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx08.ams4.POSTED!not-for-mail
MIME-Version 1.0
User-Agent Mozilla Thunderbird
Subject XML in Pythong (was: Re: Postscript in 4tH)
Newsgroups comp.lang.forth, comp.lang.postscript, alt.folklore.computers, comp.lang.lisp, comp.lang.python, comp.lang.xml, borland.public.xml
References <117hl2n$1ne4b$1@dont-email.me> <871pb7l36f.fsf@nightsong.com> <nnd$47db062e$781955bb@280ad1e4adf8c230> <875x0gib1k.fsf@debian> <117prfv$gq7e$3@dont-email.me> <87o6e7cifh.fsf@debian> <117qido$ng8h$3@dont-email.me>
Content-Language en-US
Followup-To alt.folklore.computers, comp.lang.python, comp.lang.xml, borland.public.xml
From Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid>
Organization Watcom Pro Ltd.
In-Reply-To <117qido$ng8h$3@dont-email.me>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
Lines 41
Message-ID <iu7oS.240010$4yM7.67254@fx08.ams4> (permalink)
X-Complaints-To abuse@easynews.com
X-Complaints-Info Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date Wed, 9 Sep 2026 15:00:29 +0800
X-Received-Bytes 3105
Xref csiph.com comp.lang.forth:135617 comp.lang.postscript:4027 alt.folklore.computers:235551 comp.lang.lisp:61630 comp.lang.python:198005

Cross-posted to 7 groups.

Followups directed to: alt.folklore.computers, comp.lang.python, comp.lang.xml, borland.public.xml

Show key headers only | View raw


On 09/09/2026 11:05 AM, Lawrence D’Oliveiro wrote:
> On Tue, 08 Sep 2026 22:38:58 -0300, Kragen Javier Sitaker wrote:
> 
>> PostScript does in fact have something like readmacros; in particular,
>> readhexstring was the recommended way to handle image data, so that the
>> image data didn’t have to be loaded into a PostScript object by way of
>> the PostScript parser.
> 
> It’s just a function. It’s like saying Python has “readmacros” because
> the JSON and XML library modules have functions for reading input
> streams and returning language-object representations of those
> structures.
> 
Dear Lawrence,

Ok, so I was tempted to ask why you're bringing up Python in a Post-
Script discussion, but then I remembered you're a /Pythong influencer/,
and can not help yourself.

Now, why are there only two library modules in Python for this task?  In
C, we have -- I believe -- several, but I've only used Expat precisely
because it doesn't create language-objects for me.  Do you not have a
stream oriented XML parser in Pythong?  Is Python that much inferiour
to C?

The same question can be asked of JSON, because sometimes we don't want
to download the whole payload before starting the parse process.  After
all, why not just shut down the network connection when we detect garb-
age, like the one Lawrence is constantly spewing all over Usenet?


Best wishes, and happy XML, JSON parsing in alt.folklore.computers!


I've set the follow-up to: alt.folklore.computers, comp.lang.python,
comp.lang.xml, borland.public.xml in that order.  Please remove
alt.folklore.computers if you think it's not relevant anymore.
-- 
Johann | email: invalid -> com | http://www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | via Easynews.com
https://bsky.app/profile/myrkraverk.bsky.social | for ( ;; ) _:;

Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

XML in Pythong (was: Re: Postscript in 4tH) Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-09-09 15:00 +0800
  Re: XML in Pythong Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2026-09-25 23:21 +0800

csiph-web