Skip to content

[PyROOT][8183] Do not increment STL-like iterator in first iteration#8282

Merged
etejedor merged 1 commit intoroot-project:masterfrom
etejedor:stliter
May 31, 2021
Merged

[PyROOT][8183] Do not increment STL-like iterator in first iteration#8282
etejedor merged 1 commit intoroot-project:masterfrom
etejedor:stliter

Conversation

@etejedor
Copy link
Copy Markdown
Contributor

This fixes the iteration over a TTreeReader, since incrementing its
iterator before the loop body of the first iteration runs causes
the current entry of the reader to always be one position ahead.

From:
https://bitbucket.org/wlav/cpycppyy/commits/8222848093bd687d67f2b89172764e0964cb14f0

Fixes #8183

This fixes the iteration over a TTreeReader, since incrementing its
iterator before the loop body of the first iteration runs causes
the current entry of the reader to always be one position ahead.

From:
https://bitbucket.org/wlav/cpycppyy/commits/8222848093bd687d67f2b89172764e0964cb14f0
@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@ghost
Copy link
Copy Markdown

ghost commented May 31, 2021

DeepCode's analysis on #9613dd found:

  • ℹ️ 1 minor issue. 👇

Top issues

Description Example fixes
Use Py_XDECREF instead of Py_DECREF Occurrences: 🔧 Example fixes

👉 View analysis in DeepCode’s Dashboard | Configure the bot

Copy link
Copy Markdown
Contributor

@eguiraud eguiraud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really understand the changes, but if they make root-project/roottest#708 green that's ok with me 😄

@phsft-bot
Copy link
Copy Markdown

Build failed on windows10/cxx14.
Running on null:C:\build\workspace\root-pullrequests-build
See console output.

Failing tests:

@etejedor etejedor merged commit a155ae7 into root-project:master May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python iteration over a TTreeReader is broken

3 participants