Package pyxb :: Package utils :: Module types_
[hide private]
[frames] | no frames]

Module types_

source code

This module provides references to built-in Python types.

In Python 2.x these are in the types module. In Python 3. those references have been removed in favor of explicit use of the natural Python type. We need these in contexts where the binding of the type identifier (e.g., int) has changed to the class representing the XML Schema datatype of the same name (viz., xsd:int or pyxb.binding.datatypes.int), so provide a way to get back to the underlying Python type.

Variables [hide private]
  StringTypes = (<type 'str'>, <type 'unicode'>)
The type underlying generic text types.
  __package__ = 'pyxb.utils'
Variables Details [hide private]

StringTypes

The type underlying generic text types. This changes from Python 2 (basestr) to Python 3 (str).

Value:
(<type 'str'>, <type 'unicode'>)