| Server IP : 178.105.222.151 / Your IP : 216.73.216.38 Web Server : nginx/1.28.3 System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.5.4 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3.14/importlib/metadata/__pycache__/ |
Upload File : |
+
��3jv � �0 � ^ RI t ^RIHt ! R R]4 tR# )� N)�method_cachec � a a� ] tR t^t oRtR tR tR tR tR t V 3R lt
R t]V 3R l4 t
R
tR
R ltRtVtV ;t# )�
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 �D � V P 4 VP 4 8 # �N��lower��self�others &&�//usr/lib/python3.14/importlib/metadata/_text.py�__lt__�FoldedCase.__lt__C � � ��z�z�|�e�k�k�m�+�+� c �D � V P 4 VP 4 8� # r r r
s &&r
�__gt__�FoldedCase.__gt__F r r c �D � V P 4 VP 4 8H # r r r
s &&r
�__eq__�FoldedCase.__eq__I � � ��z�z�|�u�{�{�}�,�,r c �D � V P 4 VP 4 8g # r r r
s &&r
�__ne__�FoldedCase.__ne__L r r c �4 � \ V P 4 4 # r )�hashr )r s &r
�__hash__�FoldedCase.__hash__O s � ��D�J�J�L�!�!r c �Z <� \ SV ` 4 P VP 4 4 # r )�superr �__contains__)r r � __class__s &&�r
r"