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
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
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
://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
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
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'
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
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
#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
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
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
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
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
+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
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
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 -->
>
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?
>&
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:
>>>
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
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
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
21 matches
Mail list logo