Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
IncrementalEncoder Class Reference
Inheritance diagram for IncrementalEncoder:
Collaboration diagram for IncrementalEncoder:

Public Member Functions

 __init__ (self, encoding=UTF8, errors='strict')
 

Data Fields

 encode
 

Detailed Description

“Push”-based encoder.

:param encoding: An :class:`Encoding` object or a label string.
:param errors: Type of error handling. See :func:`codecs.register`.
:raises: :exc:`~exceptions.LookupError` for an unknown encoding label.

.. method:: encode(input, final=False)

    :param input: An Unicode string.
    :param final:
        Indicate that no more input is available.
        Must be :obj:`True` if this is the last call.
    :returns: A byte string.

Definition at line 323 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  encoding = UTF8,
  errors = 'strict' 
)

Definition at line 340 of file __init__.py.

340 def __init__(self, encoding=UTF8, errors='strict'):
341 encoding = _get_encoding(encoding)
342 self.encode = encoding.codec_info.incrementalencoder(errors).encode
for i

References pip._vendor.webencodings._get_encoding().

Referenced by Protocol.__init_subclass__().

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ encode

encode

Definition at line 342 of file __init__.py.

Referenced by _FileCacheMixin._fn().


The documentation for this class was generated from the following file: