[DB-SIG] "lists of tuples" vs. "tuples of tuples"
mike_mp at zzzcomputing.com
Wed Feb 11 00:08:48 CET 2015
Peter Eisentraut <peter_e at gmx.net> wrote:
> On 2/3/15 6:10 PM, Michael Bayer wrote:
>> It’s mostly an issue of semantic correctness. A tuple implies a certain kind
>> of role for a data structure. From a “Does it work?” perspective, there’s
>> really no problem at all, except if we’re concerned about applications that
>> assume the return of fetchall() is mutable. Python is in often enthusiastic
>> about this kind of thing in general, from pep8 to naming conventions to
>> everything else (to pointing out in the Python docs what the usual
>> role of tuples is). But there’s no pressing issue here other than that.
> Other than that, Python is not Haskell,
This issue is obviously closed. But I’d point out, I’d very much like Python
to not be PHP either ;).
More information about the DB-SIG