Comments (2)
Yes, unfortunately, the PyPy port is behind the CPython one and several more recent features are missing in the former. (Combo of development for PyPy being harder and more folks asking for CPython.)
from cppyy.
A solution https://foss.heptapod.net/pypy/pypy/-/issues/3607
import cppyy
def pythonize_vector(klass, name):
if 'vector<' in name:
old_init = klass.__init__
def pyinit(self, *args):
if len(args) == 1:
try:
iter(args[0])
old_init(self)
self. Reserve(len(args[0]))
self += args[0]
return
except TypeError:
pass
return old_init(self, *args)
klass.__init__ = pyinit
cppyy.py.add_pythonization(pythonize_vector, 'std')
from cppyy.
Related Issues (20)
- Issue with aarch64 HOT 7
- Error related to MPI and the default constructor when debug mode is enabled HOT 3
- Cannot import cppyy under Mac OS HOT 7
- `explicit` keyword is ignored for constructors HOT 5
- Persistence issue with global vectors? HOT 2
- An error occurred when calling the addressof function HOT 2
- Call segfaulting only on linux HOT 1
- Public member functions from .ipp files get loaded into global namespace HOT 1
- template operator< <T> gets resolved as operator<< HOT 8
- SIGSEGV when accessing an array of uint8_t HOT 5
- SIGSEGV when completing a struct containing arrays HOT 2
- Replacing cling with clang-repl HOT 12
- Unable to pass python callback to C++ HOT 15
- Reset / restart backend state HOT 1
- Could not load cppyy_backend library, details:\n%s? HOT 4
- UnicodeDecodeError HOT 12
- Possible to get a list of enum names from a header file? HOT 9
- gcc error when trying to install cppyy-backend using pip HOT 3
- ImportError: Failed to load header file HOT 1
- std::vector<Vector3f> to NumPy? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cppyy.