On Fri, Dec 8, 2017 at 6:29 AM, Lele Gaifax <l...@metapensiero.it> wrote:
> Chris Angelico <ros...@gmail.com> writes:
>
>> On Fri, Dec 8, 2017 at 5:53 AM, Peter Otten <__pete...@web.de> wrote:
>>>
>>> Hm, what does -- and what should --
>>>
>>> identity(('spam', 'eggs', 7))
>>>
>>> produce?
>>
>> The same thing. And so should identity((('spam', 'eggs', 7))) and
>> identity(((('spam', 'eggs', 7)))) and identity((((('spam', 'eggs',
>> 7))))).
>>
>> For consistency, identity 'spam', 'eggs', 7 should work too.
>
> So you think that
>
>   identity('spam', 'eggs', 7) \
>     == identity(('spam', 'eggs', 7)) \
>     == identity((('spam', 'eggs', 7),)) \
>     == identity(((('spam', 'eggs', 7),),))
>
> should yield True?

No, because you're adding commas. Commas are, like, really important, yo?

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to