Python Object awareness of being in an array?

Is there a way in Python for an object to 'know' what its array element id is? I.e 6 in an array, and the object itself prints out its own array element number, so '0,1,2,3,4,5'


No. The object could be inside everything and multiple objects at the same time, so it can't know unless you tell it.

In a word, no...

Need Your Help

PHP/Perl filesize function not working on new server

php perl filesize

I have a problem with a function that doesn't work as expected since I have moved my site from a shared hosting to a VPS (both have the same Linux OS, php version 5.2.9 and Perl version 5.8.8).

How to change Default Storage Class on AWS S3

amazon-web-services amazon-s3

By default storage in a bucket is STANDARD. And while pushing each object we can change the storage.