Re: question about speed of sequential string replacement vs regex or

2011-09-28 Thread Willem
Eli the Bearded wrote: ) In comp.lang.perl.misc, Willem wrote: )> In Perl, it would be applicable. You see, in Perl, you can call a function )> in the replacement of the regex substitution, which can then look up the )> html entity and return the wanted unicode literal. ) ) A function

Re: question about speed of sequential string replacement vs regex or

2011-09-28 Thread Willem
can then look up the html entity and return the wanted unicode literal. I think you can do that in some other languages as well. SaSW, Willem -- Disclaimer: I am in no way responsible for any of the statements made in the above text. For all I know I might be drugged or s

Re: python simply not scaleable enough for google?

2009-11-14 Thread Willem Broekema
nterargument for "just write a Python to Lisp compiler to make things fast", and even I as its developer agree. Lisp offers lots of readily available optimization opportunities, but Python simply doesn't. I remember reading some years ago about a Smalltalk compiler guru who said he

Re: Re: pylab without X11

2008-10-02 Thread Willem-Jan Vriend
://matplotlib.sourceforge.net/matplotlibrc You may choose PS or SVG or pdf, there might be other possibilities, I do not know To save the file : savefig Marc Willem-Jan Vriend a écrit : I want to use pylab (matplotlib) on a machine without X11. I'm trying to generate onthefly graphics for an ap

pylab without X11

2008-09-30 Thread Willem-Jan Vriend
I want to use pylab (matplotlib) on a machine without X11. I'm trying to generate onthefly graphics for an apache2 web service, so they do not have to be displayed on this machine ! When i do pylab.figure() I get the error TclError: couldn't connect to display ":0.0" I tried setting the

Re: Game design : Making computer play

2008-04-14 Thread Willem
which the square behind it needs to be empty, obviously. SaSW, Willem -- Disclaimer: I am in no way responsible for any of the statements made in the above text. For all I know I might be drugged or something.. No I'm not paranoid. You all think I'

Re: Game design : Making computer play

2008-04-14 Thread Willem
r to play one of these player. If the board is that small then an exhaustive search might work, but then the computer would be unbeatable. Minmax would be best I guess. SaSW, Willem -- Disclaimer: I am in no way responsible for any of the statements made in the above text. For all I k

Re: CLPython (was Re: merits of Lisp vs Python)

2006-12-14 Thread Willem Broekema
x27;d prefer to wait with big announcements until there are really interesting things achieved. Thanks a lot for your interest and comments! - Willem -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-13 Thread Willem Broekema
#x27;s for performance reasons. This dual-representation aspect is nicely hidden behind macros, so that even in the code of CLPython itself there's no need to worry, or even know, about it. Why not take a look in the code -- I'll be happy to explain things. - Willem -- http://mail.python.org/mailman/listinfo/python-list

[Newbie] Plone/workflow change ownership

2005-12-30 Thread frederic . willem
wnership do nothing. Are there any tips to change the ownership during a state change? Thanks in advance and have a pretty new year. -- Frédéric Willem -- http://mail.python.org/mailman/listinfo/python-list

Re: Create a variable "on the fly"

2005-07-27 Thread Willem Broekema
c/current/lib/built-in-funcs.html> states: locals() Update and return a dictionary representing the current local symbol table. Warning: The contents of this dictionary should not be modified; changes may not affect the values of local variables used by the interpreter. Function globals() is not subject to this restriction. - Willem -- http://mail.python.org/mailman/listinfo/python-list

Re: XML file parsing with SAX

2005-04-23 Thread Willem Ligtenberg
I didn't make the XML file. And I don't like messing with other peoples data. So I just want my SAX parser to ignore it. I can't help if other people make it hard for me to read their xml file... On Sat, 23 Apr 2005 13:48:49 -0600, Uche Ogbuji wrote: > On Sat, 2005-04-23 at 1

XML file parsing with SAX

2005-04-23 Thread Willem Ligtenberg
print "Start element:", name So it doesn't do much yet. And still it crashes... How can I tell the parser not to look at the DOCTYPE declaration. On a website: http://www.devarticles.com/c/a/XML/Parsing-XML-with-SAX-and-Python/1/ it states that the SAX parsers a

Re: XML parsing per record

2005-04-22 Thread Willem Ligtenberg
+0200, Fredrik Lundh wrote: > Willem Ligtenberg wrote: > >> As I'm trying to write the code using cElementTree. >> I stumble across one problem. Sometimes there are multiple values to >> retrieve from one record for the same element. Like this: >> ATP-binding ca

Re: XML parsing per record

2005-04-22 Thread Willem Ligtenberg
By the way, I know about findall, but when I iterate thruogh it like: for x in function: print 'function', x I get: function function But ofcourse I want the information in there... On Fri, 22 Apr 2005 15:22:17 +0200, Willem Ligtenberg wrote: > As I'm trying to wr

Re: XML parsing per record

2005-04-22 Thread Willem Ligtenberg
st as well, so that I can store it in a list. Thanks in advance, Willem Ligtenberg On Fri, 22 Apr 2005 13:48:15 +0200, Willem Ligtenberg wrote: > This is all the info I need from the xml file: > ID -->320632 > > Name --> >

Re: XML parsing per record

2005-04-22 Thread Willem Ligtenberg
1 6 Some can happen more than once in a record. On Fri, 22 Apr 2005 02:41:46 -0400, William Park wrote: > Willem Ligtenberg <[EMAIL PROTECTED]> wrote: >> On Sun, 17 Apr 2005 02:16:04 +, William Park wrote: >> > Care to post more details? >&

Re: XML parsing per record

2005-04-21 Thread Willem Ligtenberg
Sorry I just decided that I want to use your solution, but I am wondering is cElemenTree in expat or is that something different? On Wed, 20 Apr 2005 08:03:00 -0400, Kent Johnson wrote: > Willem Ligtenberg wrote: >>>Willem Ligtenberg <[EMAIL PROTECTED]> wrote: >>>

Re: XML parsing per record

2005-04-21 Thread Willem Ligtenberg
d I might go for the cElementTree later on, if the ordinary SAX proves to slow... On Wed, 20 Apr 2005 08:03:00 -0400, Kent Johnson wrote: > Willem Ligtenberg wrote: >>>Willem Ligtenberg <[EMAIL PROTECTED]> wrote: >>> >>>>I want to parse a very large (2.4 g

Re: XML parsing per record

2005-04-20 Thread Willem Ligtenberg
On Sun, 17 Apr 2005 02:16:04 +, William Park wrote: > Willem Ligtenberg <[EMAIL PROTECTED]> wrote: >> I want to parse a very large (2.4 gig) XML file (bioinformatics >> ofcourse :)) But I have no clue how to do that. Most things I see read >> the entire xml file a

XML parsing per record

2005-04-16 Thread Willem Ligtenberg
e the information in another object. How should I do that? Thanks in advance, Willem Ligtenberg A total newbie to python by the way. -- http://mail.python.org/mailman/listinfo/python-list