Hi,
There was a coding standard where I worked and the intention behind this
requirement was to make the code printer friendly. Printing code source
with lines longer than 80 chars greatly hinder readability on paper.
Greetings,
Olivier Langlois
http://www.olivierlanglois.net
>
> I also
ot;,
line 69, in Validate
raise CDKeyException, self.logger.error(e) CDKeyException
Any idea what is happening?
Thanks,
Olivier Langlois
http://www.olivierlanglois.net
--
http://mail.python.org/mailman/listinfo/python-list
s but if I do that and compile _mysql.pyd. When that module
is initialized, python is crashing because PyRun_String returns a NULL
pointer instead of the expected valid PyObject pointer.
Is there anybody that can help me?
Thank you,
Olivier Langlois
http://www3.sympatico.ca/olanglois
--
facing.
I have kept thinking about the original problem and I now believe that
the only solution if he wants to store 3.6GB of data in a Python script
is to recompile Python in 64 bits. I do not know if this is something
that someone has already done successfully...
Olivier Langlois
http
That is a good observation!
Considering that hash tables to have good performance need to have a
fill rate of 70% or lower means that if you try to fit 3.6 GB of data
into a dict, your memory requirement will be much higher than 3.6GB.
BTW, this brings a new question. How does Python controls dic
Just out of curiosity. What is the OS that you are using? I am asking
because I do not know about XP 64bits edition but if you are using
Windows XP 32 bits version, no matter how much RAM you have on your
machine, the OS has an inherent 4GB address space limit per process.
Olivier Langlois
http
Hi Michael,
Normalizing the whitespace is what I was looking to do. I guess that
that aspect of my original query was not enough clear. But with either
solutions, I get the result I wanted.
Greetings,
Olivier Langlois
http://www.quazal.com
> -Original Message-
> Fredrik Lundh
Hi Michael!
Your suggestion is fantastic and is doing exactly what I was looking
for! Thank you very much.
There is something that I'm wondering though. Why is the solution you
proposed wouldn't work with Unicode strings?
Olivier Langlois
http://www.quazal.com
>
> impo
Hi,
I would like to make a string comparison that would
return true without regards of the number of spaces and new lines chars between
the words
like ‘A B\nC’ = ‘A\nB
C’
What would be the easiest way to do it in Python?
Thanks,
Olivier Langlois
http://www.quazal.com
flag has on
scripts but I have not found much…
So my question is: what are the ‘optimizations’
that the Python interpreter is doing when you specify the optimize flag and is
there anything I should be cautious about when using it?
Thank you,
Olivier Langlois
http://www.quazal.com
10 matches
Mail list logo