Re: Why use _mysql module and not use MySQLdb directly?

2014-02-09 Thread Marcel Rodrigues
Another option is PyMySQL [1]. It's developed in the open at GitHub [2]. It's pure Python, compatible with both Python 2 and Python 3. It's DB-API 2 compliant. It also implements some non-standard bits that are present in MySQLdb, in order to be compatible with legacy code, notably Django

Why use _mysql module and not use MySQLdb directly?

2014-02-08 Thread Sam
I am writing my first python script to access MySQL database. With reference to http://mysql-python.sourceforge.net/MySQLdb.html#connection-objects Why is it advisable to use _mysql and not MySQLdb module directly? -- https://mail.python.org/mailman/listinfo/python-list

Re: Why use _mysql module and not use MySQLdb directly?

2014-02-08 Thread Chris Angelico
On Sat, Feb 8, 2014 at 7:52 PM, Sam lightai...@gmail.com wrote: I am writing my first python script to access MySQL database. With reference to http://mysql-python.sourceforge.net/MySQLdb.html#connection-objects Why is it advisable to use _mysql and not MySQLdb module directly? Other way

Re: Why use _mysql module and not use MySQLdb directly?

2014-02-08 Thread Asaf Las
On Saturday, February 8, 2014 10:52:36 AM UTC+2, Sam wrote: I am writing my first python script to access MySQL database. With reference to http://mysql-python.sourceforge.net/MySQLdb.html#connection-objects Why is it advisable to use _mysql and not MySQLdb module directly? I used this one

Re: Why use _mysql module and not use MySQLdb directly?

2014-02-08 Thread Chris Angelico
On Sat, Feb 8, 2014 at 10:09 PM, Asaf Las roeg...@gmail.com wrote: I used this one from Oracle and it was OK for simple test case and supports from 2.6 till 3.3: http://dev.mysql.com/doc/connector-python/en/index.html https://pypi.python.org/pypi/mysql-connector-python/1.1.5 yet there is

Re: Why use _mysql module and not use MySQLdb directly?

2014-02-08 Thread Asaf Las
On Saturday, February 8, 2014 1:25:15 PM UTC+2, Chris Angelico wrote: On Sat, Feb 8, 2014 at 10:09 PM, Asaf Las r...@gmail.com wrote: I used this one from Oracle and it was OK for simple test case and supports from 2.6 till 3.3: http://dev.mysql.com/doc/connector-python/en/index.html

Re: Why use _mysql module and not use MySQLdb directly?

2014-02-08 Thread Chris Angelico
On Sat, Feb 8, 2014 at 10:32 PM, Asaf Las roeg...@gmail.com wrote: Hi Chris The doc says https://pypi.python.org/pypi/mysql-connector-python/1.1.5 MySQL driver written in Python which does not depend on MySQL C client libraries and implements the DB API v2.0 specification (PEP-249). Ah. And

Re: Why use _mysql module and not use MySQLdb directly?

2014-02-08 Thread Asaf Las
On Saturday, February 8, 2014 1:42:30 PM UTC+2, Chris Angelico wrote: On Sat, Feb 8, 2014 at 10:32 PM, Asaf Las r...@gmail.com wrote: Hi Chris The doc says https://pypi.python.org/pypi/mysql-connector-python/1.1.5 MySQL driver written in Python which does not depend on MySQL C client