[Python-Dev] Bad interaction of __index__ and sequence repeat

Travis Oliphant oliphant.travis at ieee.org
Wed Aug 2 21:15:24 CEST 2006


Nick Coghlan wrote:
> 
> 
> One possibility would be to invert the sense of that flag and call it 
> "typeerror", which probably more accurately reflects what it's intended for - 
> it's a way of telling the function "if this object does not have the correct 
> type, tell me by setting this flag instead of by setting the Python error state".

+1 on changing the name (type_error might be a better spelling)

-Travis



More information about the Python-Dev mailing list