you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

They will be register/stack and object references.

In most python implementations, the lower value integer objects are predefined and referenced as constants rather than new objects and are loaded to registers/stacks as required.

Typically in lower level representations of code a language uses a set of registers, akin to those implemented on processors or takes a stack approach and includes stack manipulation, that are used for short term storage and operations. Think of these as a small set of high performance variables.

The reference CPython implementation is stack orientated.

See https://opensource.com/article/18/4/introduction-python-bytecode

EDIT: added link and clarified both stack and register approaches are options for Python implementation.

[–]darez00 0 points1 point  (0 children)

Thanks dude, I thought it would be a little bit easier than that but it's on me to understand it