Cpython Performance Python Python Internals Timeit Why Is It Slower To Iterate Over A Small String Than A Small List? June 22, 2024 Post a Comment I was playing around with timeit and noticed that doing a simple list comprehension over a small st… Read more Why Is It Slower To Iterate Over A Small String Than A Small List?
Ascii Character Encoding Iso 8859 1 Python Python Internals Python 2 Assumes Different Source Code Encodings June 16, 2024 Post a Comment I noticed that without source code encoding declaration, the Python 2 interpreter assumes the sourc… Read more Python 2 Assumes Different Source Code Encodings
Python Python 3.5 Python 3.6 Python 3.x Python Internals In-place Custom Object Unpacking Different Behavior With __getitem__ Python 3.5 Vs Python 3.6 June 08, 2024 Post a Comment a follow-up question on this question: i ran the code below on python 3.5 and python 3.6 - with ver… Read more In-place Custom Object Unpacking Different Behavior With __getitem__ Python 3.5 Vs Python 3.6
Cpython Cython Python 3.x Python Internals 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 May 25, 2024 Post a Comment 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
Comparison Operators Python Python 2.7 Python 3.x Python Internals When To Use `<>` And `!=` Operators? April 05, 2024 Post a Comment Couldn't find much on this. Trying to compare 2 values, but they can't be equal. In my case… Read more When To Use `<>` And `!=` Operators?
Fractions Int Python Python Internals Fraction Object Doesn't Have __int__ But Int(fraction(...)) Still Works March 27, 2024 Post a Comment In Python, when you have an object you can convert it to an integer using the int function. For ex… Read more Fraction Object Doesn't Have __int__ But Int(fraction(...)) Still Works