On 09/09/2026 11:05 AM, Lawrence DrCOOliveiro wrote:
On Tue, 08 Sep 2026 22:38:58 -0300, Kragen Javier Sitaker wrote:Dear Lawrence,
PostScript does in fact have something like readmacros; in particular,
readhexstring was the recommended way to handle image data, so that the
image data didnrCOt have to be loaded into a PostScript object by way of >>> the PostScript parser.
ItrCOs just a function. ItrCOs like saying Python has rCLreadmacrosrCY because
the JSON and XML library modules have functions for reading input
streams and returning language-object representations of those
structures.
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?-a In
C, we have -- I believe -- several, but I've only used Expat precisely because it doesn't create language-objects for me.-a Do you not have a
stream oriented XML parser in Pythong?-a 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.-a 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.-a Please remove alt.folklore.computers if you think it's not relevant anymore.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 74 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 03:36:47 |
| Calls: | 1,194 |
| Files: | 1,353 |
| D/L today: |
2 files (1,590K bytes) |
| Messages: | 291,364 |