Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
io.cpython-314.pyc68 linesDownload Raw Back to __pycache__
1+
2��i����RtRt.ROt^RIt^RIt^R	IHt^R3IHtHtH	t	H4t5HtHtH
t
HtHtHtHtHtHtHtHt^t^t^t!RR]P2]P4R7t!R
R]P8]4t!RR]P<]4t!RR]P@]4t!]PE]4]
]]]]3Ft#]PE]#4K	]]3Ft#]!PE]#4K	A#^RIH$t$]PE]$4]&!]'](,4t)!RR]P4R7t*!RR]P4R7t+R# ]%dLFi;i)a�The io module provides the Python interfaces to stream handling. The6builtin open function is defined in this module.7 8At the top of the I/O hierarchy is the abstract base class IOBase. It9defines the basic interface to a stream. Note, however, that there is no10separation between reading and writing to streams; implementations are11allowed to raise an OSError if they do not support a given operation.12 13Extending IOBase is RawIOBase which deals simply with the reading and14writing of raw bytes to a stream. FileIO subclasses RawIOBase to provide15an interface to OS files.16 17BufferedIOBase deals with buffering on a raw byte stream (RawIOBase). Its18subclasses, BufferedWriter, BufferedReader, and BufferedRWPair buffer19streams that are readable, writable, and both respectively.20BufferedRandom provides a buffered interface to random access21streams. BytesIO is a simple stream of in-memory bytes.22 23Another IOBase subclass, TextIOBase, deals with the encoding and decoding24of streams into text. TextIOWrapper, which extends it, is a buffered text25interface to a buffered raw stream (`BufferedIOBase`). Finally, StringIO26is an in-memory stream for text.27 28Argument names are not part of the specification, and only the arguments29of open() are intended to be used as keyword arguments.30 31data:32 33DEFAULT_BUFFER_SIZE34 35   An int containing the default buffer size used by the module's buffered36   I/O classes. open() uses the file's blksize (as obtained by os.stat) if37   possible.38z�Guido van Rossum <guido@python.org>, Mike Verdone <mike.verdone@gmail.com>, Mark Russell <mark.russell@zen.co.uk>, Antoine Pitrou <solipsis@pitrou.net>, Amaury Forgeot d'Arc <amauryfa@gmail.com>, Benjamin Peterson <benjamin@python.org>�IOBase�	RawIOBase�BufferedIOBase�39TextIOBase�Reader�WriterN)�_check_methods)�DEFAULT_BUFFER_SIZE�BlockingIOError�UnsupportedOperation�open�	open_code�FileIO�BytesIO�StringIO�BufferedReader�BufferedWriter�BufferedRWPair�BufferedRandom�IncrementalNewlineDecoder�
text_encoding�
TextIOWrapperc�B�]tRt^Gt]P40PtRtR#)r�N)�__name__�41__module__�__qualname__�__firstlineno__�_io�_IOBase�__doc__�__static_attributes__r��	Lib\io.pyrrGs���k�k�!�!�Gr")�	metaclassc�B�]tRt^Jt]P42PtRtR#)rrN)rrrrr�43_RawIOBaser r!rr"r#rrJs���n�n�$�$�Gr"c�B�]tRt^Mt]P44PtRtR#)rrN)rrrrr�_BufferedIOBaser r!rr"r#rrMs���!�!�)�)�Gr"c�B�]tRt^Pt]P45PtRtR#)rrN)rrrrr�_TextIOBaser r!rr"r#rrPs���o�o�%�%�Gr")�_WindowsConsoleIOc�pa�]tRt^ktoRtRt]PRRl4t]	R4t46]	!]4tRt
VtR#)rzUProtocol for simple I/O reader instances.47 48This protocol only supports blocking I/O.49c��R#)z~Read data from the input stream and return it.50 51If *size* is specified, at most *size* items (bytes/characters) will be52read.53Nr)�self�sizes""r#�read�Reader.reads��r"c�:�V\Jd
\VR4#\#)r0)rr�NotImplemented��cls�Cs&&r#�__subclasshook__�Reader.__subclasshook__{s���&�=�!�!�V�,�,��r"rN).)rrrrr �	__slots__�abc�abstractmethodr0�classmethodr8�GenericAlias�__class_getitem__r!�__classdictcell__��
__classdict__s@r#rrksJ�����54�I�����������55$�L�1�r"c�la�]tRt^�toRtRt]PR4t]	R4t56]	!]4tRt
VtR#)rzUProtocol for simple I/O writer instances.57 58This protocol only supports blocking I/O.59c��R#)zIWrite *data* to the output stream and return the number of items written.Nr)r.�datas""r#�write�Writer.write�r2r"c�:�V\Jd
\VR4#\#)rF)rrr4r5s&&r#r8�Writer.__subclasshook__�s���&�=�!�!�W�-�-��r"rN)rrrrr r:r;r<rFr=r8r>r?r!r@rAs@r#rr�sL�����60�I����X��X�����61$�L�1�r")r62rr
rrrrrrrrrrrrr�SEEK_SET�SEEK_CUR�SEEK_ENDr	rrrr),r �63__author__�__all__rr;�_collections_abcrr	r64rrr
rrrrrrrrrrrJrKrLr�ABCMetarr&rr(rr*r�register�klassr+�ImportError�type�list�intr>rrrr"r#�<module>rWsV��!�H8�65����66�+�J�J�J�J�J�
������67"�S�[�[�C�K�K�"�%�����%�*�S�(�(�&�*�&����&�&�68���6���~�~�~���E����E�"���
�
&�E������'�	�*�%����(�)��D��I���2�s�{�{�2�22�s�{�{�2��K�	��	�s�0E�E�
E
codekingpro/portable-devtools · Team Ai