D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
lib
/
python3.14
/
__pycache__
/
Filename :
csv.cpython-314.pyc
back
Copy
+ ��3j�J � �> � R t ^ RIt^ RIHtHtHtHtHtHtH t H t HtHtH t HtHtHt ^ RIHt ^ RIHt . ROtRt ! R R4 t ! R R]4 t]! R]4 ! R R]4 t]! R]4 ! R R]4 t]! R]4 ! R R 4 t ! R R 4 t ! R R4 tR# )a) CSV parsing and writing. This module provides classes that assist in the reading and writing of Comma Separated Value (CSV) files, and implements the interface described by PEP 305. Although many CSV files are simple to parse, the format is not formally defined by a stable specification and is subtle enough that parsing lines of a CSV file with something like line.split(",") is bound to fail. The module supports three basic APIs: reading, writing, and registration of dialects. DIALECT REGISTRATION: Readers and writers support a dialect argument, which is a convenient handle on a group of settings. When the dialect argument is a string, it identifies one of the dialects previously registered with the module. If it is a class or instance, the attributes of the argument are used as the settings for the reader or writer: class excel: delimiter = ',' quotechar = '"' escapechar = None doublequote = True skipinitialspace = False lineterminator = '\r\n' quoting = QUOTE_MINIMAL SETTINGS: * quotechar - specifies a one-character string to use as the quoting character. It defaults to '"'. * delimiter - specifies a one-character string to use as the field separator. It defaults to ','. * skipinitialspace - specifies how to interpret spaces which immediately follow a delimiter. It defaults to False, which means that spaces immediately following a delimiter is part of the following field. * lineterminator - specifies the character sequence which should terminate rows. * quoting - controls when quotes should be generated by the writer. It can take on any of the following module constants: csv.QUOTE_MINIMAL means only when required, for example, when a field contains either the quotechar or the delimiter csv.QUOTE_ALL means that quotes are always placed around fields. csv.QUOTE_NONNUMERIC means that quotes are always placed around fields which do not parse as integers or floating-point numbers. csv.QUOTE_STRINGS means that quotes are always placed around fields which are strings. Note that the Python value None is not a string. csv.QUOTE_NOTNULL means that quotes are only placed around fields that are not the Python value None. csv.QUOTE_NONE means that quotes are never placed around fields. * escapechar - specifies a one-character string used to escape the delimiter when quoting is set to QUOTE_NONE. * doublequote - controls the handling of quotes inside fields. When True, two consecutive quotes are interpreted as one during read, and when writing, each quote character embedded in the data is written as two quotes N)�Error�writer�reader�register_dialect�unregister_dialect�get_dialect� list_dialects�field_size_limit� QUOTE_MINIMAL� QUOTE_ALL�QUOTE_NONNUMERIC� QUOTE_NONE� QUOTE_STRINGS� QUOTE_NOTNULL)�Dialect)�StringIOr �excel� excel_tab�Sniffer� DictReader� DictWriter�unix_dialectz1.0c �T a � ] tR t^Wt o RtRtRtRtRtRt Rt RtRtRt R tR tRtV tR# )r z�Describe a CSV dialect. This must be subclassed (see csv.excel). Valid attributes are: delimiter, quotechar, escapechar, doublequote, skipinitialspace, lineterminator, quoting. � FNc �^ � V P \ 8w d R V n V P 4 R# )TN)� __class__r �_valid� _validate��selfs &�/usr/lib/python3.14/csv.py�__init__�Dialect.__init__j s � ��>�>�W�$��D�K����� c �n � \ V 4 R # \ d p\ \ T4 4 R hR p?ii ; i�N)�_Dialect� TypeErrorr �str)r �es & r r �Dialect._validateo s. � � *��T�N��� *���A��-�T�)�� *�s � �4�/�4)r )�__name__� __module__�__qualname__�__firstlineno__�__doc__�_namer � delimiter� quotechar� escapechar�doublequote�skipinitialspace�lineterminator�quotingr! r �__static_attributes__�__classdictcell__�� __classdict__s @r r r W sI �� � �� �E� �F��I��I��J��K����N��G�� *� *r# c �2 � ] tR t^vtRtRtRtRtRtRt ] tRtR# ) r z;Describe the usual properties of Excel-generated CSV files.�,�"TF� � N) r+ r, r- r. r/ r1 r2 r4 r5 r6 r r7 r8 r@ r# r r r v s$ � �E��I��I��K����N��Gr# c � � ] tR t^�tRtRtRtR# )r zEDescribe the usual properties of Excel-generated TAB-delimited files.� r@ N)r+ r, r- r. r/ r1 r8 r@ r# r r r � s � �O��Ir# z excel-tabc �2 � ] tR t^�tRtRtRtRtRtRt ] tRtR# ) r z:Describe the usual properties of Unix-generated CSV files.r= r>