We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In https://bugs.launchpad.net/zope.interface/+bug/180844, @jimfulton reports:
See: http://mail.zope.org/pipermail/interface-dev/2008-January/000192.html Here's an example that provides the basis for a test case:
See: http://mail.zope.org/pipermail/interface-dev/2008-January/000192.html
Here's an example that provides the basis for a test case:
>>> import zope.interface.interface >>> class InterfaceClass(zope.interface.interface.InterfaceClass): ... def __call__(self, *args): ... print 'called', self, args ... >>> IFoo = InterfaceClass('IFoo', (zope.interface.Interface,)) >>> IFoo(1) called <InterfaceClass __main__.IFoo> (1,) >>> class IBar(IFoo): pass ... >>> IBar() called <InterfaceClass __main__.IBar> () >>> class ISpam(zope.interface.Interface): pass ... >>> ISpam() Traceback (most recent call last): File "<console>", line 1, in ? TypeError: function takes at least 1 argument (0 given) >>> ISpam.__class__ = InterfaceClass >>> ISpam() Traceback (most recent call last): File "<console>", line 1, in ? TypeError: function takes at least 1 argument (0 given)
The text was updated successfully, but these errors were encountered:
This works as requested using the pure-Python implementation but fails with the C accelerator.
Sorry, something went wrong.
Add test case for #6.
d49f8e2
It seems to be working now, so this fixes #6
Merge pull request #176 from zopefoundation/issue6
0e32e11
Successfully merging a pull request may close this issue.
In https://bugs.launchpad.net/zope.interface/+bug/180844, @jimfulton reports:
The text was updated successfully, but these errors were encountered: