python gripes survey

Afanasiy abelikov72 at hotmail.com
Mon Aug 25 14:14:30 EDT 2003


On Sat, 23 Aug 2003 15:39:27 GMT, "Ryan Lowe" <ryanlowe0 at msn.com> wrote:

>python is a big improvement on most languages that came before it, but no
>language is perfect. id like to make a list of some of the aspects people
>find most annoying, regardless of their feasibility of implementation. for
>instance, i discussed putting if clauses in for loops, and i noticed another
>thread about allowing {} and [] to be added and subtracted. if its something
>from another language (especially an obscure one), please explain how it
>works in case people like myself dont know the language.
>
>thanks,
>ryan
>

I have a bunch, many of them hard to define, but one that I just thought
of I find strange sometimes is the use of tuples as near-mystery return
values. I can't help but thinking a C struct with named fields is easier
to remember than a tuple with fields accessed by integer.

Sure you can return an associative array, but in my experience the
preference is to return a tuple. I'll probably get flamed for saying so,
but this is how I feel and it is unavoidable. Returning a struct in C is
easier to deal with than returning a near-mystery tuple in Python.




More information about the Python-list mailing list