ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Python and Apache
Subject:   Bad Python Code
Date:   2003-04-23 09:42:49
From:   anonymous2
Apart from the predjudices that were already critizized, the Python code just plain sucks:

'regex' was deprecated ages ago in favour or 're'. _mysql shouldn't be used at all, as the leading underscore shows. It's the backend for the MySQLdb module. Using MySQLdb, especially with cursorclass=dictcursor will make the code much more readable.

<Insert MySQL-sucks comment here>

1 to 1 of 1
1 to 1 of 1