AString.py - a compact string of characters

Author:Andreas Heger
Release:$Id$
Date:December 09, 2013
Tags:Python

Code

class AString.AString(*args)

an array posing as a sequence.

This class conserves memory as it uses only 1 byte per letter, while python strings use the machine word size for a letter.

It exports a mixture of the methods in the python string and python array classes.

Note

Using this class will incur a heavy penalty compared to using :class:array.array directly. Only use sparingly for heavy computations.

upper()

return upper case version.

lower()

return lower case version.

Table Of Contents

Previous topic

Modules

Next topic

<no title>

This Page