Lists and Tuples

Douglas Alan nessus at mit.edu
Mon Dec 8 06:57:07 CET 2003


"Greg Ewing (using news.cis.dfn.de)" <g2h5dqi002 at sneakemail.com> writes:

> Douglas Alan wrote:

>> You'll be fine.  The only thing you have to watch out for is that
>> some rude folks here might call you names.

> That would add some spice to Python's error messages...

> Python 3.7 (#1, Sep 31 2007, 14:19:37)
> [GCC 5.6.7] on slartibartfast
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> t = (1, 3, 77, 654, 8)
> Traceback (most recent call last):
>    File "<stdin>", line 1, in ?
> HumiliationError: The programmer is a pink-faced baboon (tuple used where
> list would be more appropriate)

Hmmm, could I catch the exception and then continue on anyway?  Kind
of like casting away const in C++?

|>oug




More information about the Python-list mailing list