Re: new-style classes multiplication error message isn't veryinformative

2005-12-30 Thread Jon Guyer
Steven D'Aprano REMOVETHIScyber.com.au> writes: > > On Fri, 30 Dec 2005 03:47:30 +0000, Jon Guyer wrote: > > > We have a rather complicated class that, under certain circumstances, knows > > that it cannot perform various arithmetic operations, and so returns >

new-style classes multiplication error message isn't very informative

2005-12-29 Thread Jon Guyer
>>> This is a fake line to confuse the stupid top-posting filter at gmane We have a rather complicated class that, under certain circumstances, knows that it cannot perform various arithmetic operations, and so returns NotImplemented. As a trivial example: >>> class my: ... def __mul