0

In Python id('some text') returns the “identity” of an object. Is there a function that takes a number as argument that can access an item by identity?

e.g.:

print(object_at(id('some text')+1))
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
dsl400
  • 322
  • 3
  • 14

0 Answers0