Skip to content Skip to sidebar Skip to footer
Showing posts with the label Cpython

Are There Any Datetime.tzinfo Implementations In C?

I've been working on a Python library that uses a C extension module to do ISO 8601 parsing. Pa… Read more Are There Any Datetime.tzinfo Implementations In C?

Python Threads Are Not Improving Speed

In order to speed up a certain list processing logic, I wrote a decorator that would 1) intercept i… Read more Python Threads Are Not Improving Speed

__builtin__.iterator Does Not Exist?

Consider: Python 2.7.3 (default, Aug 2 2012, 16:55:39) [GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on… Read more __builtin__.iterator Does Not Exist?

Forcing Modules To Run In Pypy From A Cpython Script (run Pypy On Part Of The Code)?

Is there a way to import modules from a CPython script, but run them in PyPy? The problem is that I… Read more Forcing Modules To Run In Pypy From A Cpython Script (run Pypy On Part Of The Code)?

Python: Equality For Nan In A List?

I just want to figure out the logic behind these results: >>>nan = float('nan') &g… Read more Python: Equality For Nan In A List?

Backward Compatibility Of Python 3.5 For External Modules

I have built a Python C++ module based on Python 3.4.3. Later I have installed Python 3.5, and trie… Read more Backward Compatibility Of Python 3.5 For External Modules

What Happens Behind The Scenes When Python Adds Small Ints?

I was fiddling around with id recently and realized that (c?)Python does something quite sensible: … Read more What Happens Behind The Scenes When Python Adds Small Ints?

How Does Module Loading Work In Cpython?

How does module loading work in CPython under the hood? Especially, how does the dynamic loading of… Read more How Does Module Loading Work In Cpython?