Repository URL to install this package:
|
Version:
4.1.2 ▾
|
cdocutils.nodes
document
q)q}q(UtagnameqUdocumentqUreporterqNU
attributesq}q(Udupnamesq ]Ubackrefsq
]UsourceX= /home/tseaver/projects/Zope/Z3/zope.interface/docs/README.rstqUidsq]Uclassesq
]Unamesq]uUparse_messagesq]qU
decorationqNU citationsq]qU rawsourceqU U nametypesq}q(X external declarationsqNX' inheritance of attribute specificationsqNX specificationsqNX
tagged valuesqNX declaration objectsqNX inherited declarationsqNX
invariantsqNX compatqX defining interfacesqNX
interfacesq NX __adapt__q!NX declaring interfacesq"NX createq#X declaring provided interfacesq$NX factoryq%X declaring implemented interfacesq&NX interface inheritanceq'NX
adaptationq(NuUsettingsq)(cdocutils.frontend
Values
q*oq+}q,(Upep_referencesq-NUoutput_encoding_error_handlerq.Ustrictq/U
halt_levelq0KU
source_urlq1NU
dump_settingsq2NUdoctitle_xformq3Udump_pseudo_xmlq4NU tab_widthq5KU id_prefixq6U Utitleq7NUembed_stylesheetq8U
docinfo_xformq9KUfootnote_backlinksq:KUerror_encodingq;UUTF-8q<Uauto_id_prefixq=Uidq>U
language_codeq?Uenq@U datestampqANUdump_transformsqBNUoutput_encodingqCUutf-8qDUexit_status_levelqEKUstrict_visitorqFNU_disable_configqGNUfile_insertion_enabledqHU tracebackqIUrecord_dependenciesqJNUstrip_commentsqKNUdebugqLNU generatorqMNUgettext_compactqNUenvqONU
strip_classesqPNUpep_file_url_templateqQUpep-%04dqRUinput_encoding_error_handlerqSh/Uexpose_internalsqTNUrfc_referencesqUNU
toc_backlinksqVUentryqWUtrim_footnote_reference_spaceqXU_sourceqYhUwarning_streamqZNUinput_encodingq[U utf-8-sigq\Usectsubtitle_xformq]Usource_linkq^NUconfigq_NU
sectnum_xformq`KUerror_encoding_error_handlerqaUbackslashreplaceqbU
_config_filesqc]Udump_internalsqdNUsmart_quotesqeUcloak_email_addressesqfUraw_enabledqgKUstrip_elements_with_classesqhNUpep_base_urlqiU https://www.python.org/dev/peps/qjUreport_levelqkKUrfc_base_urlqlUhttps://tools.ietf.org/html/qmU_destinationqnNUsyntax_highlightqoUlongqpubUautofootnote_refsqq]qr(cdocutils.nodes
footnote_reference
qs)qt}qu(hUfootnote_referenceqvh}qw(h ]h
]UrefidqxUcreateqyh
]h]qzUid1q{aUautoq|Kh]uhX
[#create]_Uresolvedq}KUparentq~cdocutils.nodes
paragraph
q)q}q(hhhU paragraphqh}q(h
]h ]h]h]h
]uUlineqK%Usourceq
hhX0 In the example above, we've created an interface, `IFoo`. We
subclassed `zope.interface.Interface`, which is an ancestor interface for
all interfaces, much as `object` is an ancestor of all new-style
classes [#create]_. The interface is not a class, it's an Interface,
an instance of `InterfaceClass`:h~cdocutils.nodes
section
q)q}q(hhhUsectionqh}q(h
]h ]h]qhah]qUdefining-interfacesqah
]uhKh
hhU h~h)q}q(hhhhh}q(h
]h ]h]qh ah]qU
interfacesqah
]uhKh
hhU h~hUchildrenq]q(cdocutils.nodes
title
q)q}q(hhhh7h}q(h
]h ]h]h]h
]uhKh
hhX
Interfacesqh~hh]qcdocutils.nodes
Text
qX
Interfacesq
q}q(hhh~hubaubh)q }q¡(hhhhh}q¢(h
]h ]h]h]h
]uhKh
hhX Interfaces are objects that specify (document) the external behavior
of objects that "provide" them. An interface specifies behavior
through:q£h~hh]q¤hX Interfaces are objects that specify (document) the external behavior
of objects that "provide" them. An interface specifies behavior
through:q¥
q¦}q§(hh£h~h ubaubcdocutils.nodes
bullet_list
q¨)q©}qª(hhhUbullet_listq«h}q¬(h ]h
]h
]h]UbulletqX -h]uhK h
hhU h~hh]q®(cdocutils.nodes
list_item
q¯)q°}q±(hhhU list_itemq²h}q³(h
]h ]h]h]h
]uhNh
hhX' Informal documentation in a doc string
h~h©h]q´h)qµ}q¶(hhh}q·(h
]h ]h]h]h
]uhK h
hhX&