o $ x` @sdZddlmZddlmZddlmZddlmZddlmZgdZ Gdd d ej Z Gd d d ej Z Gd d d ej ZGdddejZGdddeeurSeneZeeeGdddejZGdddejZGdddejZdS)z Interface definitions for builtin types. After this module is imported, the standard library types will declare that they implement the appropriate interface. .. versionadded:: 5.0.0 )absolute_import)classImplements) collections)numbers)io)IListITuple ITextString IByteString INativeStringIBoolIDictIFilec@s eZdZdZefZdddZdS)rz% Interface for :class:`list` NFcCsdS)zs Sort the list in place and return None. *key* and *reverse* must be passed by name only. N)keyreverserr@/usr/lib/python3/dist-packages/zope/interface/common/builtins.pysort.sz IList.sort)NF)__name__ __module__ __qualname____doc__list extra_classesrrrrrr(src@eZdZdZefZdS)rz& Interface for :class:`tuple` N)rrrrtuplerrrrrr6 rc@seZdZdZedfZdS)r z Interface for text (unicode) strings. On Python 2, this is :class:`unicode`. On Python 3, this is :class:`str` unicodeN)rrrrtyperrrrrr =sr c@r)r z Interface for immutable byte strings. On all Python versions this is :class:`bytes`. Unlike :class:`zope.interface.common.collections.IByteString` (the parent of this interface) this does *not* include :class:`bytearray`. N)rrrrbytesrrrrrr Gs r c@seZdZdZdS)r z Interface for native strings. On all Python versions, this is :class:`str`. On Python 2, this extends :class:`IByteString`, while on Python 3 it extends :class:`ITextString`. N)rrrrrrrrr Tsr c@r)r z% Interface for :class:`bool` N)rrrrboolrrrrrr `rr c@r)r z% Interface for :class:`dict` N)rrrrdictrrrrrr grr c@s2eZdZdZzefZWdSeydZYdSw)ra Interface for :class:`file`. It is recommended to use the interfaces from :mod:`zope.interface.common.io` instead of this interface. On Python 3, there is no single implementation of this interface; depending on the arguments, the :func:`open` builtin can return many different classes that implement different interfaces from :mod:`zope.interface.common.io`. rN)rrrrfiler NameErrorrrrrrns   rN)r __future__rzope.interfacerzope.interface.commonrrr__all__IMutableSequencer ISequencerr r strrr IIntegralr IMutableMappingr IIOBaserrrrrs