| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/importlib/metadata/__pycache__/ |
Upload File : |
R
>lqj� c �2 � ] PH s ]QHGs Q Q\2 sP! )� )�method_cachec � ` `� \ sQ s]s nQsQ sQ sQ sQ sQ s U 1Q ks
Q s\U 1Q k2 s
Q
sQ
Q ksQsUsU 9s! )�
FoldedCasea�
A case insensitive string class; behaves just like str
except compares equal when the only variation is case.
>>> s = FoldedCase('hello world')
>>> s == 'Hello World'
True
>>> 'Hello World' == s
True
>>> s != 'Hello World'
False
>>> s.index('O')
4
>>> s.split('O')
['hell', ' w', 'rld']
>>> sorted(map(FoldedCase, ['GAMMA', 'alpha', 'Beta']))
['alpha', 'Beta', 'GAMMA']
Sequence membership is straightforward.
>>> "Hello World" in [s]
True
>>> s in ["Hello World"]
True
You may test for set inclusion, but candidate and elements
must both be folded.
>>> FoldedCase("Hello World") in {s}
True
>>> s in {FoldedCase("Hello World")}
True
String inclusion works as long as the FoldedCase object
is on the right.
>>> "hello" in FoldedCase("Hello World")
True
But not if the FoldedCase object is on the left:
>>> FoldedCase('hello') in 'Hello World'
False
In that case, use in_:
>>> FoldedCase('hello').in_('Hello World')
True
>>> FoldedCase('hello') > FoldedCase('Hello')
False
c �F � U O 2 UO 2 6 ! �N��lower��self�others &&�-C:\Python315\\Lib\importlib\metadata\_text.py�__lt__�FoldedCase.__lt__C � � ��z�z�|�e�k�k�m�+�+� c �F � U O 2 UO 2 6� ! r r r s &&r �__gt__�FoldedCase.__gt__F r r c �F � U O 2 UO 2 6H ! r r r s &&r �__eq__�FoldedCase.__eq__I � � ��z�z�|�u�{�{�}�,�,r c �F � U O 2 UO 2 6g ! r r r s &&r �__ne__�FoldedCase.__ne__L r r c �6 � [ U O 2 2 ! r )�hashr )r
s &r �__hash__�FoldedCase.__hash__O s � ��D�J�J�L�!�!r c �\ :� [ RU _ 2 O UO 2 2 ! r )�superr �__contains__)r
r � __class__s &&�r r! �FoldedCase.__contains__R s �� ��w�}��+�+�E�K�K�M�:�:r c � � U [ U2 7 ! )zDoes self appear in other?)r r s &&r �in_�FoldedCase.in_U s � ��z�%�(�(�(r c �"