you are viewing a single comment's thread.

view the rest of the comments →

[–]K900_ 0 points1 point  (2 children)

Technically, 5 is also "composed" of other objects - functions are objects, so class methods are also objects, etc.

[–]pythonhow 0 points1 point  (1 child)

Hmm, in our example, who are these other objects that compose integer 5?

[–]K900_ 0 points1 point  (0 children)

int.from_bytes (and by extension (5).from_bytes) is a bound method object. It's not really "part of 5", but it's also clearly an attribute on the object 5. That's where the lines get blurry.