Article:
  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>

Full Threads Newest First

Showing messages 1 through 1 of 1.

  • Bad Python Code
    2003-04-23 09:51:09  anonymous2 [View]

    Ah. I forgot. Of course there is a 'cgi' module. Using stdin and regular expressions to parse submitted forms is just insane!

    It'd probably be best for all parties involved if this article were retracted.