Your IP : 18.221.81.158


Current Path : /opt/alt/python313/lib64/python3.13/importlib/metadata/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/importlib/metadata/__pycache__/_itertools.cpython-313.pyc

�

+}g��*�SSKJr SSjr\\44Sjrg)�)�filterfalseNc#��# �[5nURnUc*[URU5HnU"U5 Uv� M gUHnU"U5nXR;dMU"U5 Uv� M  g7f)zHList unique elements, preserving order. Remember all elements ever seen.N)�set�addr�__contains__)�iterable�key�seen�seen_add�element�ks      �D/opt/alt/python313/lib64/python3.13/importlib/metadata/_itertools.py�unique_everseenrsg����5�D��x�x�H�
�{�"�4�#4�#4�h�?�G��W���M�@� �G��G��A��}�����
�	 �s�AA+�A+c��Uc[S5$Ub[X5(a[U45$[U5$![a [U45s$f=f)aIf *obj* is iterable, return an iterator over its items::

    >>> obj = (1, 2, 3)
    >>> list(always_iterable(obj))
    [1, 2, 3]

If *obj* is not iterable, return a one-item iterable containing *obj*::

    >>> obj = 1
    >>> list(always_iterable(obj))
    [1]

If *obj* is ``None``, return an empty iterable:

    >>> obj = None
    >>> list(always_iterable(None))
    []

By default, binary and text strings are not considered iterable::

    >>> obj = 'foo'
    >>> list(always_iterable(obj))
    ['foo']

If *base_type* is set, objects for which ``isinstance(obj, base_type)``
returns ``True`` won't be considered iterable.

    >>> obj = {'a': 1}
    >>> list(always_iterable(obj))  # Iterate over the dict's keys
    ['a']
    >>> list(always_iterable(obj, base_type=dict))  # Treat dicts as a unit
    [{'a': 1}]

Set *base_type* to ``None`` to avoid any special handling and treat objects
Python considers iterable as iterable:

    >>> obj = 'foo'
    >>> list(always_iterable(obj, base_type=None))
    ['f', 'o', 'o']
�)�iter�
isinstance�	TypeError)�obj�	base_types  r�always_iterablersY��R�{��B�x����:�c�#=�#=��S�F�|����C�y������S�F�|���s�
:�A�A)N)�	itertoolsrr�str�bytesrr�r�<module>rs��!��&%(��<�2r

?>