Re: xml parsing escape characters

2005-01-20 Thread Irmen de Jong
Martin v. Löwis wrote: Irmen de Jong wrote: The unescaping is usually done for you by the xml parser that you use. Usually, but not in this case. If you have a text that looks like XML, and you want to put it into an XML element, the XML file uses lt; and gt;. The XML parser unescapes

Re: What YAML engine do you use?

2005-01-20 Thread Irmen de Jong
Istvan Albert wrote: XML with elementtree is what makes me never have think about XML again. +1 QOTW -Irmen -- http://mail.python.org/mailman/listinfo/python-list

Re: ANNOUNCE: Altova ... blah blah blah

2005-01-18 Thread Irmen de Jong
Altova Announcements wrote: Altova Unveils . [spam] Well now, I didn't like their products very much already, but this spam has certainly made them drop another few steps down on my scale. Hmpf. --Irmen -- http://mail.python.org/mailman/listinfo/python-list

Re: Integration with java (Jpype vs. JPE)

2005-01-18 Thread Irmen de Jong
Joachim Boomberschloss wrote: Option iii would also enable writing independent packages in Python and Java, but its glue layer will be distributed between Python and Java using Jython and Pyro (I chose Pyro because it works in both CPython and Jython, and can be used to communicate between them).

Re: hex notation funtion

2005-01-18 Thread Irmen de Jong
tertius wrote: Hi, Is there a builtin function that will enable me to display the hex notation of a given binary string? (example below) Does this help: hello.encode(hex) '68656c6c6f' deadbeef.decode(hex) '\xde\xad\xbe\xef' ? --Irmen -- http://mail.python.org/mailman/listinfo/python-list

Re: Why 'r' mode anyway?

2005-01-14 Thread Irmen de Jong
Tim Peters wrote: That differences may exist is reflected in the C standard, and the rules for text-mode files are more restrictive than most people would believe. Apparently. Because I know only about the Unix - Windows difference (windows converts \r\n -- \n when using 'r' mode, right). So it's

there's a socket.sendall(), so why no socket.recvall()?

2005-01-08 Thread Irmen de Jong
Subject says it all; there's a socket.sendall(), so why no socket.recvall()? I know that I can use the MSG_WAITALL flag with recv(), but this is not implemented on all platforms, most notably windows. --Iremn -- http://mail.python.org/mailman/listinfo/python-list

Re: there's a socket.sendall(), so why no socket.recvall()?

2005-01-08 Thread Irmen de Jong
Robert Brewer wrote: Irmen de Jong wrote: Subject says it all; there's a socket.sendall(), so why no socket.recvall()? [...] If you call .makefile() and then .read() the _fileobject, you get the same behavior (only better). Adding recvall would just duplicate that, I think. But that's desirable

Re: tuples vs lists

2005-01-08 Thread Irmen de Jong
Steve Holden wrote: Well, it might be Two-Pull in American, but in English it's tyoopl -- NOT choopl (blearch!). I've also heard people say tuppl. Probably the same ones who attend Tuppl-ware parties. --Irmen -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows XP Installation

2005-01-08 Thread Irmen de Jong
Smitsky wrote: Hi. I am a newbie to Python. I am running Win XP and want to know what the best course is for installing Python on my system. Could someone kindly direct me to some related resources? Thanks in advance, Steve The Python beginners guide contains a lot of information for you:

Re: website hosting

2005-01-03 Thread Irmen de Jong
[EMAIL PROTECTED] wrote: [some spam] Those people don't even provide python hosting, how lame. (Yes, I know, I shouldn't have clicked the link). -- http://mail.python.org/mailman/listinfo/python-list

Re: How to access database?

2005-01-03 Thread Irmen de Jong
Florian Lindner wrote: AFAIK python has a generic API for database access which adapters are supposed to implement. How can I found API documentation on the API? http://www.python.org/topics/database/ --Irmen -- http://mail.python.org/mailman/listinfo/python-list

Re: Python on Linux Cluster

2004-12-23 Thread Irmen de Jong
Gurpreet Sachdeva wrote: I have shifted my python script on a 4 node open ssi cluster. Please guide me what changes do I have to do in my python scripts to fully utilize the cluster. How do we introduce parralel processing in python??? There was a very recent thread about this subject:

Re: Parallelization with Python: which, where, how?

2004-12-21 Thread Irmen de Jong
Jp Calderone wrote: On 21 Dec 2004 05:04:36 -0800, Mike M?ller [EMAIL PROTECTED] wrote: Can someone recommend a parallelization approach? Are there examples or documentation? Has someone got experience with stability and efficiency? I am successfully using pyro http://pyro.sourceforge.net for my

Re: Persistent objects

2004-12-12 Thread Irmen de Jong
Paul Rubin wrote: Basically I wish there was a way to have persistent in-memory objects in a Python app, maybe a multi-process one. So you could have a persistent dictionary d, and if you say d[x] = Frob(foo=9, bar=23) that creates a Frob instance and stores it in d[x]. Then if you exit the

<    2   3   4   5   6   7