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
  • 49,619
  • 19
  • 114
  • 198
dsl400
  • 43
  • 1
  • 8

0 Answers0