Closed vanadium23 closed 8 years ago
Ok, thank you! But I'm gonna ask you some changes in order to merge this:
db(Model.field is None)
but the wrong pep notation db(Model.field == None)
or the query cannot be built.Also, If you don't mind, rebase your branch into a single commit so we can have a better commit log :)
is
.query = 0
query = query == None // False
query = 0
query = query is None // Also False
Ok, I'll rebase after clearing this questions (:
db.where(Model.field == None).select()
since I can't override Python behaviour to write db.where(Model.field is None).select()
. Model.field == None
builds an SQL string, not just a boolean ;)
So I've done basic integration for pyflake8 (#102) and found 400+ errors: some just skipped (e.g.: error for using lambda instead of def), but some was useful.
For example: F821 tells on py35 about unicode undefined world, but in py27 doesn't. May be revert it and fix those problem?