StackOverflow Questions for Tag: python-internals

nr.o
nr.o

Reputation: 175

Accessing the list while being sorted

Score: 17

Views: 780

Answers: 2

Read More
user89862
user89862

Reputation:

What algorithm does Python's built-in sort() method use?

Score: 142

Views: 87648

Answers: 4

Read More
debashish
debashish

Reputation: 1414

When is a function in a standard library module called a built-in function?

Score: 34

Views: 4039

Answers: 4

Read More
Phrogz
Phrogz

Reputation: 303441

Performance impact of inheriting from many classes

Score: 2

Views: 79

Answers: 2

Read More
Stefan Pochmann
Stefan Pochmann

Reputation: 28646

How/why are {2,3,10} and {x,3,10} with x=2 ordered differently?

Score: 21

Views: 1461

Answers: 1

Read More
Skenvy
Skenvy

Reputation: 1410

Dynamically create modules inside __init__ if they don't exist

Score: 0

Views: 83

Answers: 0

Read More
Kelly Bundy
Kelly Bundy

Reputation: 27630

Why is bytes(lst) slower than bytearray(lst)?

Score: 7

Views: 171

Answers: 1

Read More
Amir reza Riahi
Amir reza Riahi

Reputation: 2460

Why list comprehensions create a function internally?

Score: 49

Views: 3517

Answers: 3

Read More
stdiohero
stdiohero

Reputation: 1

Why is `co_code_adaptive` in `PyCodeObject` cast to a `uint16_t` pointer in `_PyCode_CODE` macro?

Score: 0

Views: 73

Answers: 1

Read More
Neil G
Neil G

Reputation: 33252

What is the difference between type.__getattribute__ and object.__getattribute__?

Score: 11

Views: 1597

Answers: 1

Read More
wim
wim

Reputation: 363294

How are small sets stored in memory?

Score: 13

Views: 883

Answers: 1

Read More
Aemyl
Aemyl

Reputation: 2194

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

Score: 36

Views: 1840

Answers: 1

Read More
Roman Odaisky
Roman Odaisky

Reputation: 2941

list() vs iterable unpacking in Python 3.5+

Score: 10

Views: 927

Answers: 5

Read More
user459872
user459872

Reputation: 24827

Finding the source code of methods implemented in C?

Score: 3

Views: 1118

Answers: 2

Read More
notepadNinja
notepadNinja

Reputation: 488

Python generator expression recursion

Score: 0

Views: 256

Answers: 3

Read More
Jack
Jack

Reputation: 1

Why is the SWAP instruction missing in Python 3.11's disassembled bytecode for tuple swaps?

Score: 0

Views: 40

Answers: 0

Read More
praveen
praveen

Reputation: 3263

How does swapping of members in tuples (a,b)=(b,a) work internally?

Score: 43

Views: 23966

Answers: 1

Read More
Yogeswaran
Yogeswaran

Reputation: 365

Internals for python tuples

Score: 11

Views: 461

Answers: 2

Read More

Why is variable1 += variable2 much faster than variable1 = variable1 + variable2?

Score: 57

Views: 2130

Answers: 1

Read More
usual me
usual me

Reputation: 8788

What is None doing in the code object's co_consts attribute?

Score: 7

Views: 2043

Answers: 2

Read More
PreviousPage 1Next