why () is () and [] is [] work in other way?

Kiuhnm kiuhnm03.4t.yahoo.it
Tue Apr 24 07:31:58 EDT 2012


On 4/24/2012 8:02, rusi wrote:
> On Apr 23, 9:34 am, Steven D'Aprano<steve
> +comp.lang.pyt... at pearwood.info>  wrote:
>
>> "is" is never ill-defined. "is" always, without exception, returns True
>> if the two operands are the same object, and False if they are not. This
>> is literally the simplest operator in Python.
>
> Circular definition: In case you did not notice, 'is' and 'are' are
> (or is it is?) the same verb.

Python is not English.
Double-quoted 'is' is a Python operator, while non-quoted 'is' and 'are' 
are forms of the English verb 'to be'. If you change the name of the 
operator or the language in which you define the operator, you'll 
realize that there's no real circularity in that definition.

Kiuhnm



More information about the Python-list mailing list