Skip to content Skip to sidebar Skip to footer
Showing posts with the label Python Internals

Printing Without Parentheses Varying Error Message Using Python 3

When I try to use print without parentheses on a simple name in Python 3.4 I get: >>> prin… Read more Printing Without Parentheses Varying Error Message Using Python 3

In-place Custom Object Unpacking Different Behavior With __getitem__ Python 3.5 Vs Python 3.6

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

What Does "del" Do Exactly?

Here is my code: from memory_profiler import profile @profile def mess_with_memory(): huge_lis… Read more What Does "del" Do Exactly?

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

Efficiency Of Sorting By Multiple Keys In Python

I have a list of strings that I want to sort by two custom key functions in Python 3.6. Comparing t… Read more Efficiency Of Sorting By Multiple Keys In Python

In Python 3.x, Why Is There Not An Itertools Shared-object On Disk?

Is the itertools C module included somehow in the main Python binary in 3.x? Assuming that the C m… Read more In Python 3.x, Why Is There Not An Itertools Shared-object On Disk?

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?