Top "Cpython" questions

The reference implementation of the Python programming language.

Python hasattr vs getattr

I have been reading lately some tweets and the python documentation about hasattr and it says: hasattr(object, name) The …

python python-2.7 python-3.x cpython
Using NumPy and Cpython with Jython

I must use a commercial Java library, and would like to do it from Python. Jython is robust and I …

java python numpy jython cpython
Comparing None with built-in types using arithmetic operators?

Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>&…

python comparison cpython
ImportError: No module named clr when using CPython of python.org

I'm writing C++ code which should invoke python scripts underneath. For this purpose I use cpython of python.org. Some …

python .net clr cpython python.net
Why is Python 3 is considerably slower than Python 2?

I've been trying to understand why Python 3 is actually taking much time compared with Python 2 in certain situations, below are …

python performance python-2.7 python-3.x cpython
OrderedDict comprehensions

Can I extend syntax in python for dict comprehensions for other dicts, like the OrderedDict in collections module or my …

python dictionary cpython ordereddictionary dictionary-comprehension
ValueError: failed to parse CPython sys.version after using conda command

I'm running into an error that I can't solve despite others having reported the same error. I am connecting remotely …

python anaconda cpython conda
How to generate a repeatable random number sequence?

I would like a function that can generate a pseudo-random sequence of values, but for that sequence to be repeatable …

python random cpython
Why is it slower to iterate over a small string than a small list?

I was playing around with timeit and noticed that doing a simple list comprehension over a small string took longer …

python performance cpython timeit python-internals
Python or IronPython

How does IronPython stack up to the default Windows implementation of Python from python.org? If I am learning Python, …

python ironpython cpython