Is there a maximum length of a regular expression in python?

2006-01-18 Thread olekristianvillabo
I have a regular expression that is approximately 100k bytes. (It is basically a list of all known norwegian postal numbers and the corresponding place with | in between. I know this is not the intended use for regular expressions, but it should nonetheless work. the pattern is ur'(N-|NO-)?(5259

MySQLdb module, method executemany with anything other than strings?

2005-08-25 Thread olekristianvillabo
The method cursor.executemany is there in order to avoid multiple calls to cursor.execute(). I have tried, with success, to do like every single example (that I have found on the www) on the subject shows, to use a insert statement on the form: statement = INSERT INTO table (colA,colB,colC)

Re: MySQLdb module, method executemany with anything other than strings?

2005-08-25 Thread olekristianvillabo
I just realised that myself about two minutes ago, but thanks anyway! -- http://mail.python.org/mailman/listinfo/python-list