Module Expr Str ImportFrom alias alias Import alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Import alias identifier Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Dict FunctionDef arguments args NameParam defaults body Expr Str If NameLoad body Return TupleLoad NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr orelse Return TupleLoad NameLoad TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Return NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return Call NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Str NameLoad Assert CompareIsNot NameLoad NameLoad Str If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Return Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr orelse If NameLoad body Assign NameStore TupleLoad orelse Assign NameStore Call NameLoad ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Return NameLoad Return TupleLoad NameLoad Call NameLoad ListLoad Call AttributeLoad Str attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Return Call NameLoad NameLoad decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return TupleLoad NameLoad TupleLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad Dict Dict Str decorator_list Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Str Return TupleLoad NameLoad TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return TupleLoad NameLoad TupleLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list TryExcept body ImportFrom alias alias alias identifier handlers ExceptHandler type NameLoad body ImportFrom alias identifier orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad ClassDef bases body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Return TupleLoad NameLoad TupleLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Import alias If CompareNotIn Str AttributeLoad NameLoad attr body If Call NameLoad NameLoad Str NameLoad body For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list Assign NameStore Dict Assign NameStore Dict FunctionDef arguments args defaults body Global identifier identifier For NameStore Call NameLoad Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Assign NameStore Dict Assign NameStore Dict decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If BoolOpAnd CompareIn NameLoad NameLoad CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Num Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If BoolOpAnd CompareNotIn NameLoad NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return SubscriptLoad NameLoad Slice Num decorator_list ClassDef bases body Expr Str Assign NameStore Num Assign NameStore TupleLoad FunctionDef arguments args NameParam NameParam defaults body Assign SubscriptStore NameLoad Index Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body If CompareIn Str AttributeLoad NameLoad attr body For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body Delete SubscriptDel NameLoad Index NameLoad If CompareIn Str AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index BinOpMod Str Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Delete SubscriptDel AttributeLoad NameLoad attr Index Str Assign NameStore Num Assign NameStore NameLoad For NameStore NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Str body Continue If CompareGt AttributeLoad NameLoad attr NameLoad body Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpMod Str Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body If BoolOpAnd CompareNotIn NameLoad AttributeLoad NameLoad attr CompareNotIn Str AttributeLoad NameLoad attr body Continue Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Num If NameLoad body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Assert CompareLtE NameLoad NameLoad Str While CompareLt NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A 
Different styles of persisted objects.
 __future__ division absolute_import N/A types N/A N/A N/A copy_reg N/A N/A N/A ImportError N/A N/A copyreg copy_reg N/A copy N/A inspect N/A sys twisted.python.compat _PY3 twisted.python log twisted.python reflect N/A oldModules N/A pickleMethod N/A N/A method N/A N/A N/A support function for copy_reg to pickle method refs N/A _PY3 N/A N/A N/A unpickleMethod N/A N/A method __name__ N/A method __self__ N/A N/A method __self__ __class__ N/A N/A N/A unpickleMethod N/A N/A N/A method im_func __name__ N/A method im_self N/A method im_class N/A _methodFunction N/A N/A classObject methodName N/A N/A N/A 
    Retrieve the function object implementing a method name given the class
    it's on and a method name.

    @param classObject: A class to retrieve the method's function from.
    @type classObject: L{type} or L{types.ClassType}

    @param methodName: The name of the method whose function to retrieve.
    @type methodName: native L{str}

    @return: the function object corresponding to the given method name.
    @rtype: L{types.FunctionType}
     N/A methodObject N/A getattr classObject methodName N/A _PY3 N/A N/A methodObject N/A N/A methodObject im_func N/A unpickleMethod N/A N/A im_name im_self im_class N/A N/A N/A 
    Support function for copy_reg to unpickle method refs.

    @param im_name: The name of the method.
    @type im_name: native L{str}

    @param im_self: The instance that the method was present on.
    @type im_self: L{object}

    @param im_class: The class where the method was declared.
    @type im_class: L{types.ClassType} or L{type} or L{None}
     N/A N/A im_self None N/A N/A N/A getattr im_class im_name N/A N/A N/A methodFunction N/A _methodFunction im_class im_name N/A N/A N/A AttributeError N/A N/A N/A N/A log msg Method im_name not on class im_class N/A N/A im_self None No recourse: no instance to guess from. N/A N/A N/A im_self __class__ im_class N/A N/A N/A N/A unpickleMethod im_name im_self N/A im_self __class__ N/A N/A _PY3 N/A N/A maybeClass N/A N/A N/A maybeClass N/A tuple N/A im_class N/A bound N/A N/A types MethodType methodFunction im_self maybeClass N/A bound N/A N/A N/A N/A copy_reg pickle N/A types MethodType pickleMethod unpickleMethod _pickleFunction N/A N/A f N/A N/A N/A 
    Reduce, in the sense of L{pickle}'s C{object.__reduce__} special method, a
    function object into its constituent parts.

    @param f: The function to reduce.
    @type f: L{types.FunctionType}

    @return: a 2-tuple of a reference to L{_unpickleFunction} and a tuple of
        its arguments, a 1-tuple of the function's fully qualified name.
    @rtype: 2-tuple of C{(callable, native string}}
     N/A N/A N/A f __name__ <lambda> N/A N/A None N/A N/A _unpickleFunction N/A tuple N/A N/A N/A . join N/A N/A f __module__ N/A f __qualname__ N/A _unpickleFunction N/A N/A fullyQualifiedName N/A N/A N/A 
    Convert a function name into a function by importing it.

    This is a synonym for L{twisted.python.reflect.namedAny}, but imported
    locally to avoid circular imports, and also to provide a persistent name
    that can be stored (and deprecated) independently of C{namedAny}.

    @param fullyQualifiedName: The fully qualified name of a function.
    @type fullyQualifiedName: native C{str}

    @return: A function object imported from the given location.
    @rtype: L{types.FunctionType}
     twisted.python.reflect namedAny N/A N/A namedAny fullyQualifiedName N/A N/A N/A N/A copy_reg pickle N/A types FunctionType _pickleFunction _unpickleFunction pickleModule N/A N/A module N/A N/A N/A support function for copy_reg to pickle module refs N/A N/A unpickleModule N/A N/A module __name__ N/A unpickleModule N/A N/A name N/A N/A N/A support function for copy_reg to unpickle module refs N/A N/A name oldModules N/A N/A N/A N/A log msg N/A Module has moved: %s name N/A name N/A oldModules N/A name N/A N/A N/A log msg name N/A N/A __import__ name N/A N/A x N/A N/A N/A N/A copy_reg pickle N/A types ModuleType pickleModule unpickleModule pickleStringO N/A N/A stringo N/A N/A N/A 
    Reduce the given cStringO.

    This is only called on Python 2, because the cStringIO module only exists
    on Python 2.

    @param stringo: The string output to pickle.
    @type stringo: L{cStringIO.OutputType}
     N/A support function for copy_reg to pickle StringIO.OutputTypes N/A N/A unpickleStringO N/A N/A N/A stringo getvalue N/A N/A stringo tell N/A unpickleStringO N/A N/A val sek N/A N/A N/A 
    Convert the output of L{pickleStringO} into an appropriate type for the
    current python version.  This may be called on Python 3 and will convert a
    cStringIO into an L{io.StringIO}.

    @param val: The content of the file.
    @type val: L{bytes}

    @param sek: The seek position of the file.
    @type sek: L{int}

    @return: a file-like object which you can write bytes to.
    @rtype: L{cStringIO.OutputType} on Python 2, L{io.StringIO} on Python 3.
     N/A x N/A _cStringIO N/A N/A N/A x write val N/A N/A N/A x seek sek N/A x N/A pickleStringI N/A N/A stringi N/A N/A N/A 
    Reduce the given cStringI.

    This is only called on Python 2, because the cStringIO module only exists
    on Python 2.

    @param stringi: The string input to pickle.
    @type stringi: L{cStringIO.InputType}

    @return: a 2-tuple of (C{unpickleStringI}, (bytes, pointer))
    @rtype: 2-tuple of (function, (bytes, int))
     N/A N/A unpickleStringI N/A N/A N/A stringi getvalue N/A N/A stringi tell N/A unpickleStringI N/A N/A val sek N/A N/A N/A 
    Convert the output of L{pickleStringI} into an appropriate type for the
    current Python version.

    This may be called on Python 3 and will convert a cStringIO into an
    L{io.StringIO}.

    @param val: The content of the file.
    @type val: L{bytes}

    @param sek: The seek position of the file.
    @type sek: L{int}

    @return: a file-like object which you can read bytes from.
    @rtype: L{cStringIO.OutputType} on Python 2, L{io.StringIO} on Python 3.
     N/A x N/A _cStringIO val N/A N/A N/A x seek sek N/A x N/A N/A N/A cStringIO InputType OutputType StringIO _cStringIO N/A N/A N/A ImportError N/A io StringIO _cStringIO N/A N/A N/A N/A copy_reg pickle OutputType pickleStringO unpickleStringO N/A N/A N/A copy_reg pickle InputType pickleStringI unpickleStringI Ephemeral N/A N/A N/A 
    This type of object is never persisted; if possible, even references to it
    are eliminated.
     __reduce__ N/A N/A self N/A N/A N/A 
        Serialize any subclass of L{Ephemeral} in a way which replaces it with
        L{Ephemeral} itself.
         N/A N/A Ephemeral N/A N/A __getstate__ N/A N/A self N/A N/A N/A N/A N/A log msg N/A WARNING: serializing ephemeral %s self N/A gc N/A N/A __pypy__ N/A sys builtin_module_names N/A N/A N/A getattr gc get_referrers None N/A N/A r N/A N/A gc get_referrers self N/A N/A N/A N/A log msg N/A  referred to by %s N/A r N/A None N/A __setstate__ N/A N/A self state N/A N/A N/A N/A N/A log msg N/A WARNING: unserializing ephemeral %s N/A self __class__ N/A N/A self __class__ Ephemeral N/A N/A N/A versionedsToUpgrade N/A N/A upgraded N/A doUpgrade N/A N/A N/A N/A N/A versionedsToUpgrade upgraded N/A versioned N/A list N/A N/A versionedsToUpgrade values N/A N/A N/A requireUpgrade versioned N/A versionedsToUpgrade N/A N/A upgraded N/A N/A requireUpgrade N/A N/A obj N/A N/A N/A Require that a Versioned instance be upgraded completely first.
     N/A objID N/A id obj N/A N/A N/A objID versionedsToUpgrade N/A objID upgraded N/A N/A N/A upgraded N/A objID 1 N/A N/A N/A obj versionUpgrade N/A obj N/A _aybabtu N/A N/A c N/A N/A N/A 
    Get all of the parent classes of C{c}, not including C{c} itself, which are
    strict subclasses of L{Versioned}.

    The name comes from "all your base are belong to us", from the deprecated
    L{twisted.python.reflect.allYourBase} function.

    @param c: a class
    @returns: list of classes
     N/A l N/A c Versioned N/A b N/A N/A inspect getmro c N/A N/A N/A N/A b l N/A issubclass b Versioned N/A N/A N/A N/A l append b N/A N/A l N/A 2 N/A Versioned N/A N/A N/A 
    This type of object is persisted with versioning information.

    I have a single class attribute, the int persistenceVersion.  After I am
    unserialized (and styles.doUpgrade() is called), self.upgradeToVersionX()
    will be called for each version upgrade I must undergo.

    For example, if I serialize an instance of a Foo(Versioned) at version 4
    and then unserialize it when the code is at version 9, the calls::

      self.upgradeToVersion5()
      self.upgradeToVersion6()
      self.upgradeToVersion7()
      self.upgradeToVersion8()
      self.upgradeToVersion9()

    will be made.  If any of these methods are undefined, a warning message
    will be printed.
     N/A persistenceVersion 0 N/A persistenceForgets N/A __setstate__ N/A N/A self state N/A N/A N/A N/A versionedsToUpgrade N/A N/A id self self N/A N/A self __dict__ state N/A __getstate__ N/A N/A self dict N/A None N/A N/A Get state, adding a version number to it on its way out.
         N/A dct N/A N/A copy copy N/A dict N/A self __dict__ N/A bases N/A _aybabtu N/A self __class__ N/A N/A N/A bases reverse N/A N/A N/A bases append N/A self __class__ N/A base bases N/A N/A N/A persistenceForgets N/A base __dict__ N/A N/A slot N/A base persistenceForgets N/A N/A N/A slot dct N/A N/A N/A dct N/A slot N/A N/A persistenceVersion N/A base __dict__ N/A N/A N/A dct N/A N/A %s.persistenceVersion N/A N/A reflect qual base N/A base persistenceVersion N/A dct N/A versionUpgrade N/A N/A self N/A N/A N/A (internal) Do a version upgrade.
         N/A bases N/A _aybabtu N/A self __class__ N/A N/A N/A bases reverse N/A N/A N/A bases append N/A self __class__ N/A N/A persistenceVersion N/A self __dict__ N/A N/A pver N/A N/A self __dict__ N/A persistenceVersion N/A N/A N/A self __dict__ N/A persistenceVersion N/A highestVersion 0 N/A highestBase None N/A base bases N/A N/A N/A N/A N/A N/A base __dict__ has_key persistenceVersion N/A N/A N/A N/A N/A base persistenceVersion highestVersion N/A N/A highestBase base N/A highestVersion N/A base persistenceVersion N/A highestBase N/A N/A N/A N/A self __dict__ N/A N/A %s.persistenceVersion N/A N/A reflect qual highestBase pver N/A base bases N/A N/A N/A N/A Versioned N/A base __bases__ N/A persistenceVersion N/A base __dict__ N/A N/A N/A currentVers N/A base persistenceVersion N/A pverName N/A %s.persistenceVersion N/A N/A reflect qual base N/A persistVers N/A N/A N/A N/A self __dict__ get pverName 0 N/A persistVers N/A N/A N/A N/A self __dict__ N/A pverName N/A N/A persistVers currentVers Sorry, can't go backwards in time. N/A N/A persistVers currentVers N/A N/A persistVers N/A persistVers 1 N/A method N/A N/A N/A base __dict__ get N/A upgradeToVersion%s persistVers None N/A method N/A N/A N/A N/A log msg N/A Upgrading %s (of %s @ %s) to version %s N/A N/A N/A reflect qual base N/A N/A reflect qual N/A self __class__ N/A id self persistVers N/A N/A method self N/A N/A N/A N/A log msg N/A Warning: cannot upgrade %s to version %s N/A base persistVers N/A N/A