What the Pythons docs means by "container" ?

Chris Angelico rosuav at gmail.com
Wed Feb 18 19:33:06 EST 2015


On Thu, Feb 19, 2015 at 11:05 AM, Ben Finney <ben+python at benfinney.id.au> wrote:
>> Hmmm. I'm not sure I believe that. Can you enumerate all of the items
>> and see if there actually is an infinite number of them? I'll wait...
>
> A mathematician should know better: you don't need to enumerate to
> demonstrate a collection is infinite.

But you may have to demonstrate a 1:1 correspondence with counting
numbers, to prove that it's countably infinite. And that's pretty much
what the enumerate() function does, so that's enumeration.... right?

Bizarre pseudo-logic for the win.

ChrisA



More information about the Python-list mailing list