MySQL Forums
Forum List  »  Connector/Python

Re: 5.2 Creating Tables Using Connector/Python code does not work
Posted by: Bill Orton
Date: July 25, 2016 07:54AM

Hello, The code I was having problems with "for name, ddl in TABLES.iteritems():" was written for Python 2. I am using Python 3.5 and didn't realize my problem was just a change in syntax between 2. and 3.5. To correct the code all that was required was to change iteritems to items.

Options: ReplyQuote


Subject
Written By
Posted
Re: 5.2 Creating Tables Using Connector/Python code does not work
July 25, 2016 07:54AM


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.