[Python-Dev] Two design questions

Georg Brandl g.brandl at gmx.net
Mon Mar 19 20:10:32 CET 2007


I'd like to have opinions on two issues:

Patch #1682205: suggests to remove code that catches a TypeError and raises one
with a different message if it occurs during iterable unpacking. This can mask
completely unrelated TypeErrors, while the message in the case that the new
error describes is already clear enough.

Bug #1683368: object.__new__ rejects arguments if self.__class__.__init__ is 
object.__init__. Why not simply let object.__init__ do the argument checking
itself?

Georg



More information about the Python-Dev mailing list