Skip to content

Why is verify*'s argument-name-code commented out? #63

@Julian

Description

@Julian

Hi!

I noticed that zope.interface.verify* are not verifying argument names.

It appears that https://github.com/zopefoundation/zope.interface/blob/master/src/zope/interface/verify.py#L108-L111 is commented out, but I can't find why in the history.

Is there a reason why that's been commented out (seemingly since 2007)?

(Sample code that unexpectedly passes:

from zope.interface import Interface, implementer, verify
class IFoo(Interface):
    def method(a, b):
        pass

@implementer(IFoo)
class Foo(object):
    def method(self, c, d):
        pass

verify.verifyObject(IFoo, Foo())

)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions