MySQL Forums
Forum List  »  Connector/Python

Re: beginner's fault? import mysql.connector errors
Posted by: Michael Gens
Date: February 02, 2017 06:49AM

Additional information:

$ python
Python 2.7.10 (default, Jul 30 2016, 19:40:32)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import imp
>>> imp.get_magic()
'\x03\xf3\r\n'
>>> ^D

$ python3
Python 3.6.0 (v3.6.0:41df79263a11, Dec 22 2016, 17:23:13)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import imp
>>> imp.get_magic()
b'3\r\r\n'


How to control the way magic numbers are being used?

Michael

Options: ReplyQuote


Subject
Written By
Posted
Re: beginner's fault? import mysql.connector errors
February 02, 2017 06:49AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.