Skip to content

Special variables are missing with pypy #209

@saraedum

Description

@saraedum

The following snippet behaves differently with CPython and PyPy.

>>> import cppyy
>>> cppyy.cppdef('void f(){}')
True
>>> cppyy.gbl.f.__sig2exc__
False  # CPython
AttributeError: 'CPPStaticOverload' object has no attribute '__sig2exc__'  # PyPy

I didn't find this mentioned in the documentation here. Is this the expected behavior, currently?


This happened on Linux with cppyy 3.1.2 from conda-forge with PyPy 7.3 and Python 3.10, respectively.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions