App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.api.datastore_types.Text Class Reference
Inheritance diagram for google.appengine.api.datastore_types.Text:

Public Member Functions

def __new__
 

Detailed Description

A long string type.

Strings of any length can be stored in the datastore using this
type. It behaves identically to the Python unicode type, except for
the constructor, which only accepts str and unicode arguments.

Member Function Documentation

def google.appengine.api.datastore_types.Text.__new__ (   cls,
  arg = None,
  encoding = None 
)
Constructor.

We only accept unicode and str instances, the latter with encoding.

Args:
  arg: optional unicode or str instance; default u''
  encoding: optional encoding; disallowed when isinstance(arg, unicode),
        defaults to 'ascii' when isinstance(arg, str);

The documentation for this class was generated from the following file: