diff options
| author | Jason Madden <jamadden@gmail.com> | 2020-03-16 17:24:29 -0500 |
|---|---|---|
| committer | Jason Madden <jamadden@gmail.com> | 2020-03-18 12:06:17 -0500 |
| commit | 4c4e1c985ffa710482cfeebaf1cb28b470bab47e (patch) | |
| tree | 833b671abd678213c77b9e072c9b7808e813a08d /docs | |
| parent | bd5a749b5b050b422940193d8d2935e7c88aa7cc (diff) | |
| download | zope-interface-4c4e1c985ffa710482cfeebaf1cb28b470bab47e.tar.gz | |
Ensure Interface is the last item in the __sro__.
None of the elegant solutions mentioned in the issue worked out, so I had to brute force it.
Fixes #8
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/README.rst | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/docs/README.rst b/docs/README.rst index a8068f8..831f19a 100644 --- a/docs/README.rst +++ b/docs/README.rst @@ -689,9 +689,22 @@ that lists the specification and all of it's ancestors: <InterfaceClass builtins.IBaz>, <InterfaceClass builtins.IFoo>, <InterfaceClass builtins.IBlat>, - <InterfaceClass zope.interface.Interface>, - <implementedBy ...object>) - + <implementedBy ...object>, + <InterfaceClass zope.interface.Interface>) + >>> class IBiz(zope.interface.Interface): + ... pass + >>> @zope.interface.implementer(IBiz) + ... class Biz(Baz): + ... pass + >>> pprint(zope.interface.implementedBy(Biz).__sro__) + (<implementedBy builtins.Biz>, + <InterfaceClass builtins.IBiz>, + <implementedBy builtins.Baz>, + <InterfaceClass builtins.IBaz>, + <InterfaceClass builtins.IFoo>, + <InterfaceClass builtins.IBlat>, + <implementedBy ...object>, + <InterfaceClass zope.interface.Interface>) Tagged Values ============= |
