Package pyamf :: Module codec :: Class _Codec
[hide private]
[frames] | no frames]

Class _Codec

source code


Base codec.

Instance Methods [hide private]
 
__init__(self, stream=None, context=None, strict=False, timezone_offset=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
buildContext(self)
A context factory.
source code
 
getTypeFunc(self, data)
Returns a callable based on data.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  context
The context for the encoding.
util.BufferedByteStream stream
The underlying data stream.
bool, default is False. strict
Whether the codec should operate in strict mode.
datetime.timedelta or int or None timezone_offset
The offset from UTC for any datetime objects being encoded.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, stream=None, context=None, strict=False, timezone_offset=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

getTypeFunc(self, data)

source code 

Returns a callable based on data. If no such callable can be found, the default must be to return None.


Instance Variable Details [hide private]

timezone_offset

The offset from UTC for any datetime objects being encoded. Default to None means no offset.
Type:
datetime.timedelta or int or None