Is An Element of a Sequence an Object?

Steve D'Aprano steve+python at pearwood.info
Sun Jun 4 05:41:00 EDT 2017


On Sun, 4 Jun 2017 05:48 pm, Larry Hudson wrote:

> On 06/03/2017 09:39 PM, Chris Angelico wrote:
>> That's a tricky thing to pin down. Since it's possible for a sequence
>> to contain itself, or to contain something which contains it,
> 
> Like a Tardis?
> 
> [Sorry, couldn't resist...]   ;-)

Exactly right!

I'm very fond of the model of Python objects that says they can be in multiple
places at once, including inside themselves, much like the TARDIS.

Unlike the TARDIS, however, they can't travel backwards in time.

> OTOH, On-Topic...  It might be worth while to point out that a 'character' is
> NOT a data type in Python, in the same sense as it is in other languages.



-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.




More information about the Python-list mailing list