Skip to content

Align pythonization of TDirectory::WriteObject with its C++ counterpart#9990

Merged
vepadulano merged 2 commits intoroot-project:masterfrom
vepadulano:tfile-writeobject-pyobject
Mar 2, 2022
Merged

Align pythonization of TDirectory::WriteObject with its C++ counterpart#9990
vepadulano merged 2 commits intoroot-project:masterfrom
vepadulano:tfile-writeobject-pyobject

Conversation

@vepadulano
Copy link
Copy Markdown
Member

Fixes #9989

Similarly to what is done in TDirectory::WriteObject. The cppyy
pythonization of this method had to rely only on WriteObjectAny since
the wrapped C++ type of the object is obfuscated.
@phsft-bot
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@etejedor etejedor left a comment

Choose a reason for hiding this comment

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

LGTM thanks! Pity that we can't just use WriteObject and we need the extra conditional.

@vepadulano vepadulano merged commit 498ac1d into root-project:master Mar 2, 2022
@vepadulano vepadulano deleted the tfile-writeobject-pyobject branch March 16, 2022 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Writing TObject-derived objects to file does not store the object's title

3 participants