Using Tornado and mysql with Python 3x

Tornado framework is compatible with Python 3, but it uses the mysqldb package which from what I've read is not compatible with Python 3.

Will this present any issues when working with my mysql database? If so, is there a workaround? I'd be open to using another framework that is more friendly to Python 3, but I'm committed to sticking with Python 3.

Thanks

Answers


There are no issues, as Tornado has no dependencies on a particular client; the wrapper is included for your convenience. You can get a working py3 version of python-mysqldb on Golhke's site. Since you can use any valid Python code in the handlers, you can also use any other library (like PyMySQL), you just won't be able to use Tornado's wrapper functions.


Need Your Help

User input of integer followed by garbage

c++ error-handling user-input cin

In my simple Fraction class, I have the following method to get user input for the numerator, which works fine for checking garbage input like garbage, but will not recognize user input which start...

Centering images in Bootstrap using offsets

twitter-bootstrap twitter-bootstrap-3 offset centering

At the top of a page using Bootstrap 3, I am trying to center 3 images by placing them in nested columns within an offset column. They do end up looking offset, but not centered (there is a jumbotron