tuples, index method, Python's design

Hamilton, William whamil1 at entergy.com
Wed Apr 11 10:28:03 EDT 2007


> -----Original Message-----
> From: python-list-bounces+whamil1=entergy.com at python.org
[mailto:python-
> list-bounces+whamil1=entergy.com at python.org] On Behalf Of Chris Mellon
> Sent: Wednesday, April 11, 2007 9:12 AM
> To: python-list at python.org
> Subject: Re: tuples, index method, Python's design
>
>
> So, when you have a) a third party module that you cannot change and
> b) it shouldn't return a tuple but it does anyway and c) it's a big
> enough tuple that is large enough that conversion to a list is
> prohibitive, that's a "general" use case for tuple.index?
> 
> Has this supposedly general and common use case actually happened?

To me?  No.  Is it reasonable to believe it could happen?  Yes.  Is it
reasonable to say, "We don't think this is likely to happen often, so we
won't provide a simple way to deal with it?"  Well, I'm not a developer,
so it's not my decision.

---
-Bill Hamilton
whamil1 at entergy.com




More information about the Python-list mailing list