Back to index

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

Classes

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

Functions

def getregentry
def rot13
 Filter API.

Variables

tuple rot13_map = codecs.make_identity_dict(range(256))
 Map.

Function Documentation

Definition at line 37 of file rot_13.py.

00037 
00038 def getregentry():
00039     return codecs.CodecInfo(
00040         name='rot-13',
00041         encode=Codec().encode,
00042         decode=Codec().decode,
00043         incrementalencoder=IncrementalEncoder,
00044         incrementaldecoder=IncrementalDecoder,
00045         streamwriter=StreamWriter,
00046         streamreader=StreamReader,
00047     )

def encodings.rot_13.rot13 (   infile,
  outfile 
)

Filter API.

Definition at line 108 of file rot_13.py.

00108 
00109 def rot13(infile, outfile):
00110     outfile.write(infile.read().encode('rot-13'))


Variable Documentation

Map.

Definition at line 50 of file rot_13.py.