Package proton :: Module _wrapper
[frames] | no frames]

Module _wrapper

source code

Wrapper for python objects that need to be stored in event contexts and be retrived again from them Quick note on how this works: The actual *python* object has only 3 attributes which redirect into the wrapped C objects: _impl The wrapped C object itself _attrs This is a special pn_record_t holding a PYCTX which is a python dict every attribute in the python object is actually looked up here _record This is the C record itself (so actually identical to _attrs really but a different python type
  EMPTY_ATTRS = EmptyAttrs()
  PYCTX = 94601663825408
  __package__ = 'proton'