Package gavo :: Package user :: Module upgrade :: Class AnnotatedString
[frames] | no frames]

Class AnnotatedString

source code

object --+        
         |        
basestring --+    
             |    
           str --+
                 |
                AnnotatedString

a string with an annotation.

This is (optionally) used to hold SQL statements here; the annotation is shown to the user instead of the naked statement when present.

Instance Methods

Inherited from str: __add__, __contains__, __eq__, __format__, __ge__, __getattribute__, __getitem__, __getnewargs__, __getslice__, __gt__, __hash__, __le__, __len__, __lt__, __mod__, __mul__, __ne__, __repr__, __rmod__, __rmul__, __sizeof__, __str__, capitalize, center, count, decode, encode, endswith, expandtabs, find, format, index, isalnum, isalpha, isdigit, islower, isspace, istitle, isupper, join, ljust, lower, lstrip, partition, replace, rfind, rindex, rjust, rpartition, rsplit, rstrip, split, splitlines, startswith, strip, swapcase, title, translate, upper, zfill

Inherited from object: __delattr__, __init__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Static Methods
a new object with type S, a subtype of T
__new__(cls, content, annotation) source code
Properties

Inherited from object: __class__

Method Details

__new__(cls, content, annotation)
Static Method

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)