New submission from Paul Pogonyshev:

I believe attached script demonstrates a bug in Python 3000.  As far as
I can tell, it should print four times 'True'.

----------
components: Interpreter Core
files: test.py
messages: 57135
nosy: Paul Pogonyshev
severity: normal
status: open
title: function comparing lacks NotImplemented error
versions: Python 3.0
Added file: http://bugs.python.org/file8698/test.py

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1393>
__________________________________
class Anything:
    def __eq__(self, other):
        return True
    def __ne__(self, other):
        return False

x = lambda: None

print(x == Anything())
print(Anything() == x)

y = object()

print(y == Anything())
print(Anything() == y)
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to