Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
add support for python 3.6 #216
I installed pony with python3.6 (I never got the error that @pingf got, it just worked for me), however I think something in Python3.6 broke queries.
Using the following dummy test file:
#!/usr/bin/env python3.6 from pony import orm db = orm.Database() class Foo(db.Entity): name = orm.Required(str) db.bind('sqlite', ':memory:') db.generate_mapping(create_tables=True) with orm.db_session: Foo(name="foo") print(orm.select(_ for _ in Foo))
With python3.5 the output is as expected (a Query object) however with python 3.6 the output is the following: