-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PyROOT] Remove
TClonesArray.__setitem__
pythonization
The `TClonesArray.__setitem__` pythonization was introduced in commit 67db9e5 with PR #3423. However, this pythonization is quite unnatural, because a `TObjArray` should not adopt external memory. In fact, on in the C++ side, all `TObjArray`-inherited methods that take a `TObject *` and that would adopt these objects are flagged as `MayNotUse` for good reasons! Supporting this element setting only on the Python side therefore comes with a very high cost of hacking deep into CPyCppyy, and the benefit of this is not clear because the PR that introduced this feature didn't refer to any user request. Hence, this commit suggests to remove this pythonization, with the ultimate goal of relying less on the usage of CPyCppyy internals.
- Loading branch information
1 parent
65afe27
commit 0afffc6
Showing
7 changed files
with
8 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
bindings/pyroot/pythonizations/test/tclonesarray_itemaccess.py
This file was deleted.
Oops, something went wrong.