Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in python-internals

How can I force update the Python locals() dictionary of a different stack frame?

What cool hacks can be done using sys.settrace?

python sys python-internals

Why isn't the size of an empty list 0 bytes?

CPython: Why does += for strings change the id of string variable

Hash of integers in python

yield from vs yield in for-loop

Why is integer divisions not optimised when compiling to bytecode?

Python: equality for Nan in a list?

globals() vs locals() mutability

Why round off of 0.500000 in python differs from 45.500000 using '%.0f'?

Are simple hardcoded arithmetics cached/compiled away?

python python-internals

How __future__ imports work under the hood

Fraction object doesn't have __int__ but int(Fraction(...)) still works

How does Python's reversed() function work?

Why doesn't 1 + 1 use BINARY_ADD?

What's the logic behind Python's hash function order?

Why does Python's CONTINUE_LOOP allow an outer loop, when BREAK_LOOP doesn't?

What are these extra symbols in a comprehension's symtable?

Definition of math_sin function in the CPython source code?

In Python 3.12, why does 'Öl' take less memory than 'Ö'?