⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.12
/
importlib
/
resources
/
__pycache__
/
View File Name :
_itertools.cpython-312.pyc
CRh ddZ y )Nc t | }t || } t | }dj || }|xs t | # t $ r Y |S w xY w)a( If *iterable* has only one item, return it. If it has zero items, return *default*. If it has more than one item, raise the exception given by *too_long*, which is ``ValueError`` by default. >>> only([], default='missing') 'missing' >>> only([1]) 1 >>> only([1, 2]) # doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... ValueError: Expected exactly one item in iterable, but got 1, 2, and perhaps more.' >>> only([1, 2], too_long=TypeError) # doctest: +IGNORE_EXCEPTION_DETAIL Traceback (most recent call last): ... TypeError Note that :func:`only` attempts to advance *iterable* twice to ensure there is only one item. See :func:`spy` or :func:`peekable` to check iterable contents less destructively. zLExpected exactly one item in iterable, but got {!r}, {!r}, and perhaps more.)iternextformat ValueError StopIteration)iterabledefaulttoo_longitfirst_valuesecond_valuemsgs 5/usr/lib/python3.12/importlib/resources/_itertools.pyonlyr sj , hBr7#K *Bx &{L A )*S/) s A AA)NN)r r
r s $r