관리-도구
편집 파일: _itertools.cpython-311.pyc
� �܋f� � � � e effd �ZdS )c �� � | �t d� � S |� t | |� � rt | f� � S t | � � S # t $ r t | f� � cY S w xY w)ax If *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'] N� )�iter� isinstance� TypeError)�obj� base_types �q/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/setuptools/_distutils/_itertools.py�always_iterabler sx � �R �{��B�x�x����:�c�9�#=�#=���S�F�|�|����C�y�y���� � � ��S�F�|�|�������s �A �A!� A!N)�str�bytesr r � r �<module>r s* ��$'��<� 2� 2� 2� 2� 2� 2r