Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10681

New cppyy only provides addressof, not AddressOf

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.22/00
    • Fix Version/s: 6.22/00
    • Component/s: PyROOT
    • Labels:
      None
    • Environment:

      Python2/Python3

      Description

      New cppyy provides a function addressof which accepts a Python proxy for a C++ object, and it returns the address of the address of that C++ object.

      That function is also present in the old PyROOT, but in addition there is another variant called AddressOf (note the capitals) which returns the same address as addressof, but in an indexable buffer (more precisely, it returns a buffer of one position that stores the address).

      In order to keep backwards compatibility, both AddressOf and addressof need to be provided in the new PyROOT, preserving their semantics. As reported by CMSSW librarians, AddressOf in the new PyROOT behaves as addressof, which needs to be fixed.

        Attachments

          Activity

            People

            • Assignee:
              etejedor Enric Tejedor Saavedra
              Reporter:
              etejedor Enric Tejedor Saavedra
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: