Skip to content

[rfile] Further cleanups + allow setting object titles - #23807

Closed
silverweed wants to merge 8 commits into
root-project:masterfrom
silverweed:rfile_cleanups2
Closed

silverweed wants to merge 8 commits into
root-project:masterfrom
silverweed:rfile_cleanups2

Conversation

@silverweed

Copy link
Copy Markdown
Contributor

This Pull request:

Adds some changes and fixed for RFile.

Changes or fixes:

  • Added overload of Put(const TNamed&) as suggested by Philippe (this replaces the alternative Put overload for the title). No overload of Overwrite yet because it's not so obvious how to introduce it cleanly.
  • Replaced bool arg of Overwrite with bitmask for improved readability/expandability
  • Pythonized Overwrite so you can use keyword args instead of the bitmask
  • added tests
  • fixed bug in pythonized Get which didn't consider the cycle when getting the object.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

@silverweed silverweed self-assigned this Oct 23, 2026
@silverweed
silverweed requested a review from pcanal as a code owner October 23, 2026 08:17
@silverweed silverweed changed the title [rfile] Further cleanups [rfile] Further cleanups + allow setting object titles Oct 23, 2026
@silverweed silverweed added this to the 6.42.00 milestone Oct 23, 2026
Comment thread io/io/inc/ROOT/RFile.hxx Outdated
@silverweed

Copy link
Copy Markdown
Contributor Author

Split into #23811 and #23812 for ease of reviewing

@silverweed silverweed closed this Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants