Back to index

python3.2  3.2.2
Classes | Functions | Variables
encodings.utf_16 Namespace Reference

Classes

class  IncrementalEncoder
class  IncrementalDecoder
class  StreamWriter
class  StreamReader

Functions

def decode
def getregentry

Variables

 encode = codecs.utf_16_encode
 Codec APIs.

Detailed Description

Python 'utf-16' Codec


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

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

Function Documentation

def encodings.utf_16.decode (   input,
  errors = 'strict' 
)

Definition at line 15 of file utf_16.py.

00015 
00016 def decode(input, errors='strict'):
00017     return codecs.utf_16_decode(input, errors, True)

Definition at line 146 of file utf_16.py.

00146 
00147 def getregentry():
00148     return codecs.CodecInfo(
00149         name='utf-16',
00150         encode=encode,
00151         decode=decode,
00152         incrementalencoder=IncrementalEncoder,
00153         incrementaldecoder=IncrementalDecoder,
00154         streamreader=StreamReader,
00155         streamwriter=StreamWriter,
00156     )

Variable Documentation

Codec APIs.

Definition at line 13 of file utf_16.py.