This is probably something well known, but I just tried using ABCs in IPy
2.6 for first time and saw that they don't enforce anything:
from abc import ABCMeta, abstractmethod
class A(object):
__metaclass__ = ABCMeta
@abstractmethod
def foo(self, x):
pass
class B(A): pass # no foo method
b = B() # shouldn't work, but does
Do you know if/when this is planned to be fixed?
thanks
Ronnie
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com