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

2005-12-30 Thread ziga . seilnacht
Jon Guyer wrote: 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:

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

2005-12-30 Thread google
ziga.seilnacht at gmail.com writes: This is a bug in Python. See this thread: http://mail.python.org/pipermail/python-dev/2005-December/059046.html OK, thanks. This doesn't strike me as the same issue (but maybe it is). We're not getting NotImplemented returned, we're getting a TypeError;

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

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

2005-12-29 Thread Steven D'Aprano
On Fri, 30 Dec 2005 03:47:30 +, Jon Guyer wrote: 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