-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for python 3.6 #216
Comments
Bumping 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:
|
kozlovsky
added a commit
that referenced
this issue
Jan 10, 2017
# New features * New warning DatabaseContainsIncorrectEmptyValue added, it is raised when the required attribute is empty during loading an entity from the database # Bugfixes * Fixes #216: Added Python 3.6 support * Fixes #203: subtranslator should use argnames from parent translator * Change a way aliases in SQL query are generated in order to fix a problem when a subquery alias masks a base query alias * Volatile attribute bug fixed * Fix creation of self-referenced foreign keys - before this Pony didn't create the foreign key for self-referenced attributes * Bug fixed: when required attribute is empty the loading from the database shouldn't raise the validation error. Now Pony raises the warning DatabaseContainsIncorrectEmptyValue * Throw an error with more clear explanation when a list comprehension is used inside a query instead of a generator expression: "Use generator expression (... for ... in ...) instead of list comprehension [... for ... in ...] inside query"
Thanks for reporting, should be fixed now! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when I use pip install with python 3.6, it says,
The text was updated successfully, but these errors were encountered: