RE: About the 79 character line recommendation

2006-12-05 Thread Olivier Langlois
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

Problem with using unittest module

2006-07-31 Thread Olivier Langlois
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

Problem with installing MySQL-python-1.2.1_p2

2006-05-23 Thread Olivier Langlois
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 --

RE: Memory limit to dict?

2006-04-11 Thread Olivier Langlois
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

RE: Memory limit to dict?

2006-04-11 Thread Olivier Langlois
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

RE: Memory limit to dict?

2006-04-11 Thread Olivier Langlois
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

RE: String comparison question

2006-03-20 Thread Olivier Langlois
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

RE: String comparison question

2006-03-19 Thread Olivier Langlois
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

String comparison question

2006-03-19 Thread Olivier Langlois
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

Optimize flag question

2006-02-24 Thread Olivier Langlois
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