Back to index

python3.2  3.2.2
Classes | Functions
encodings.undefined Namespace Reference


class  Codec
 Codec APIs. More...
class  IncrementalEncoder
class  IncrementalDecoder
class  StreamWriter
class  StreamReader


def getregentry

Detailed Description

Python 'undefined' Codec

    This codec will always raise a ValueError exception when being
    used. It is intended for use by the file to switch off
    automatic string to Unicode coercion.

Written by Marc-Andre Lemburg (

(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.

Function Documentation

Definition at line 40 of file

00041 def getregentry():
00042     return codecs.CodecInfo(
00043         name='undefined',
00044         encode=Codec().encode,
00045         decode=Codec().decode,
00046         incrementalencoder=IncrementalEncoder,
00047         incrementaldecoder=IncrementalDecoder,
00048         streamwriter=StreamWriter,
00049         streamreader=StreamReader,
00050     )