Your IP : 216.73.217.13


Current Path : /lib/python3/dist-packages/zope/interface/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/zope/interface/__pycache__/ro.cpython-38.pyc

U

ؒ�]��@s$dZdZdd�Zdd�Zdd�ZdS)	z7Compute a resolution order for an object and its bases
ZrestructuredtextcCsDi}g}t|�D].}t|�D] }||krd||<|�d|�qq|S)a�Merge multiple orderings so that within-ordering order is preserved

    Orderings are constrained in such a way that if an object appears
    in two or more orderings, then the suffix that begins with the
    object must be in both orderings.

    For example:

    >>> _mergeOrderings([
    ... ['x', 'y', 'z'],
    ... ['q', 'z'],
    ... [1, 3, 5],
    ... ['z']
    ... ])
    ['x', 'y', 'q', 1, 3, 5, 'z']

    ��)�reversed�insert)Z	orderings�seen�resultZordering�o�r�3/usr/lib/python3/dist-packages/zope/interface/ro.py�_mergeOrderingssr
cCs2|g}d}t|�D]}|d7}|j|||�<q|S)Nrr)�iter�	__bases__)�obr�irrr	�_flatten/srcCstt|�g�S)z/Compute a "resolution order" for an object
    )r
r)�objectrrr	�ro=srN)�__doc__Z
__docformat__r
rrrrrr	�<module>s