For example, returning a None where an int is expected works fine in Python, not so in RPython.
rpython
How to use rpython in a sentence. Live example sentences for rpython pulled from indexed public discussions.
Editorial note
For example, returning a None where an int is expected works fine in Python, not so in RPython.
Quick take
For example, returning a None where an int is expected works fine in Python, not so in RPython.
Example sentences
If you mean run RPython code as regular Python code, that doesn't always catch typing problems.
Specifically, RPython is a compiled language, and PyPy is written in RPython.
Note that, as far as I know (the rpython/pypy team will confirm or infirm) RPython is not intended to be a general-purpose python-like language.
RPython is not a language as designed, it's an arbitrary set of restrictions to the Python bytecode and standard library.
I used RPython on my own interpreter project a few years ago (stopped working on it around 2013).
Nevertheless SPJ has suggested to the PyPy/RPython people to write a meta-tracer for Haskell, just to be able to measure what's possible.
RPython isn't really much like C, so that would be misleading.
RPython and PyPy are (IMO) the coolest Python projects out there.
RPython is only superficially like Python, the semantics are vastly different.
RPython, in which PyPy was written, is sort of one.
PyPy is written in a subset of python called RPython.
Quote examples
I always had the impression that the more "RPython-like" your Python code is, the better PyPy can optimize it.
Frequently asked questions
Short answers drawn from the clearest meanings and examples for this word.
How do you use rpython in a sentence?
For example, returning a None where an int is expected works fine in Python, not so in RPython.