Back to index

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

Classes

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

Functions

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 site.py file to switch off
    automatic string to Unicode coercion.

Written by Marc-Andre Lemburg (mal@lemburg.com).

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

Function Documentation

Definition at line 40 of file undefined.py.

00040 
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     )