-
Notifications
You must be signed in to change notification settings - Fork 74
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 order argument to ts.nodes() #2471
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2471 +/- ##
==========================================
- Coverage 93.43% 93.40% -0.03%
==========================================
Files 28 28
Lines 27401 27321 -80
Branches 1255 1246 -9
==========================================
- Hits 25601 25520 -81
Misses 1766 1766
- Partials 34 35 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
d536a03
to
0398cdf
Compare
LGTM. Not obvious to me why |
There's no need to have a "timedesc" in that case, as the iterator is reversible: |
Let's remove |
0398cdf
to
0187923
Compare
@Mergifyio rebase |
✅ Branch has been successfully rebased |
0187923
to
187c180
Compare
df0796b
to
083c3fd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, some comments on testing.
083c3fd
to
23f14c0
Compare
23f14c0
to
c4684cd
Compare
@hyanwong Shall I review now? |
Yes please. |
c4684cd
to
3f97e51
Compare
Fixes #2370
This uses a lambda function, which make it quite a neat and flexible change without affecting performance of the
SimpleContainerSequence.__getitem__
function. Is that OK?It also means we can do things like:
But I think that's quite reasonable behaviour. If this seems like the right approach, I'll add some tests.