Skip to content

In Python, RNTupleReader no longer iterable #22431

@rybkine

Description

@rybkine

Check duplicate issues.

  • Checked for duplicates

Description

Firstly, it ought to be iterable since it is iterable in C++. Secondly, such iterablity is Pythonic and is a convenient feature.

Reproducer

$ python -m unittest -v -k Iter >& log.txt

log.txt

validateRootFile_iter.py

test_validateRootFile.py

validateRootFile_range.py

ROOT version

$ root -q

| Welcome to ROOT 6.41.01 https://root.cern |
| (c) 1995-2025, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for linuxx8664gcc on May 24 2026, 22:55:42 |
| From heads/master@9a7f3e77 |
| With g++ (GCC) 15.2.0 std202302 |
| Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |

Installation method

lcg nightly builds at CERN

Operating system

Red Hat Enterprise Linux release 9.7 (Plow)

Additional context

The bug was introduced by PR #21131.

Metadata

Metadata

Assignees

Labels

experimentAffects an experiment / reported by its software & computimng expertsimprovementin:RNTuple

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions