Skip to content
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

Iterable from order_by not behaving as expected. #3

Closed
GoogleCodeExporter opened this issue Jul 17, 2015 · 4 comments
Closed

Iterable from order_by not behaving as expected. #3

GoogleCodeExporter opened this issue Jul 17, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

This code:

dates = query(directories).where(is_date).order_by()
for date in dates:
    pass

doesn't enter the loop (the sequence is empty),

whereas this code does:

dates = query(directories).where(is_date).order_by().to_list()
for date in dates:
    pass



Original issue reported on code.google.com by robert.smallshire@gmail.com on 8 Nov 2011 at 9:00

@GoogleCodeExporter
Copy link
Author

Two sick kids == time to code ;)

Original comment by austin.bingham on 11 Nov 2011 at 11:32

@GoogleCodeExporter
Copy link
Author

I think this is happening in the debugger because either __str__() or __repr_() 
- whichever the debugger is calling to display values is not idempotent.

Original comment by robert.smallshire@gmail.com on 11 Nov 2011 at 6:33

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

This is actually a PyCharm debugger issue. PyCharm is calling str() rather than 
repr() and the former is not idempotent on Queryables.

Original comment by robert.smallshire@gmail.com on 23 May 2012 at 9:00

  • Changed state: WontFix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant