Re: C parsing fun

2007-02-05 Thread karoly.kiripolszky
and the great thing is that the algorithm can be used with any language that structures the code with brackets, like PHP and many others. -- http://mail.python.org/mailman/listinfo/python-list

C parsing fun

2007-02-05 Thread karoly.kiripolszky
Helo ppl! At the job I was given the task to make a script to analyze C++ code based on concepts my boss had. To do this I needed to represent C++ code structure in Python somehow. I read the docs for Yapps, pyparsing and other stuff like those, then I came up with a very simple idea. I realized t

Re: strange test for None

2007-02-03 Thread karoly.kiripolszky
the tested variable was really a string containing "None" instead of simply None. this is the first time i ran into this error message confusion. :) thanks for the help! On Feb 3, 6:29 pm, Michael Bentley <[EMAIL PROTECTED]> wrote: > On Feb 3, 2007, at 7:47 AM, karoly.kiripols

Re: strange test for None

2007-02-03 Thread karoly.kiripolszky
forgot to mention my interpreter version: 2.4.4 -- http://mail.python.org/mailman/listinfo/python-list

strange test for None

2007-02-03 Thread karoly.kiripolszky
in my server i use the following piece of code: ims = self.headers["if-modified-since"] if ims != None: t = int(ims) and i'm always getting the following error: t = int(ims) ValueError: invalid literal for int(): None i wanna know what the hell is goi

strange test for None

2007-02-03 Thread karoly.kiripolszky
in my server i use the following piece of code: ims = self.headers["if-modified-since"] if ims != None: t = int(ims) and i'm always getting the following error: t = int(ims) ValueError: invalid literal for int(): None i wanna know what the hell is goi

Re: howto redirect and extend help content ?

2007-01-28 Thread karoly.kiripolszky
maybe you should make use of the objects' __doc__ attribute which holds the appropriate docstring. try to append something to it in the constructor. :) more on this in the manual: http://docs.python.org/tut/node11.html#SECTION001130 On Jan 28, 4:58 pm, Stef Mientki <[EMAIL PROT