`implements ` doesn't work with py3

Reported by aodag on 2012-02-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zope.interface
Undecided
Unassigned

Bug Description

from zope.interface import Interface, implements

class ISample(Interface):
    """ sample interface """

class Spam(object):
    implements(ISample)

if ISample.implementedBy(Spam):
    print("OK")
else:
    print("NG")

running with python2.7 displays "OK", but displays "NG" with python3.2.

And `Spam` class has `__implements_advice_data__`.
Is that correct?

Tres Seaver (tseaver) wrote :
Changed in zope.interface:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers