`implements ` doesn't work with py3

Bug #930759 reported by aodag
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zope.interface
Won't Fix
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?

Revision history for this message
aodag (aodag) wrote :
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.