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

Is An Explicit Nul-byte Necessary At The End Of A Bytearray For Cython To Be Able To Convert It To A Null-terminated C-string

When converting a bytearray-object (or a bytes-object for that matter) to a C-string, the cython-do… Read more Is An Explicit Nul-byte Necessary At The End Of A Bytearray For Cython To Be Able To Convert It To A Null-terminated C-string

Why Is 'new_file += Line + String' So Much Faster Than 'new_file = New_file + Line + String'?

Our code takes 10 minutes to siphon thru 68,000 records when we use: new_file = new_file + line + s… Read more Why Is 'new_file += Line + String' So Much Faster Than 'new_file = New_file + Line + String'?

Error When Compiling Cpython: Cannot Convert From Pylongobject To Pyobject

I've been trying to learn to use CPython and for it, I tried creating a simple factorial functi… Read more Error When Compiling Cpython: Cannot Convert From Pylongobject To Pyobject

In Python 2.7 Why Are Strings Written Faster In Text Mode Than In Binary Mode?

The following example script writes some strings to a file using either 'w', text, or '… Read more In Python 2.7 Why Are Strings Written Faster In Text Mode Than In Binary Mode?

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

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?