Jim Jewett wrote:
> If the implementation of [] ends up doing the moral equivalent of
> 
>     (self.__getitem__(arg) if not isintance(self, type) else
> self.__parameterization__(arg))
> 
> then we're running into problems with
> 
>     If the implementation is hard to explain, it's a bad idea.

It's no more complicated than the difference between dict() and dict()(). The 
former works because it invokes type.__call__, the latter fails because it 
tries to invoke dict.__call__ (and fails to find it).

Cheers,
Nick.

-- 
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to