map/filter/reduce/lambda opinions and background unscientific mini-survey

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Thu Jul 7 18:01:07 EDT 2005


In <sFcze.219803$w15.78971 at tornado.tampabay.rr.com>, Ron Adam wrote:

> Reinhold Birkenfeld wrote:
>> Ron Adam wrote:
>>>(a) == ()
>> 
>> 
>> Whoops! a (which is None) is equal to the empty tuple (which is not None)?
> 
> It's not an empty tuple, it's an empty parenthesis.  Using tuples it 
> would be.

But empty parenthesis are parsed as empty tuple::

  In [8]: type( () )
  Out[8]: <type 'tuple'>

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list