twisted.persisted.aot
module documentationtwisted.persisted
View Source
AOT: Abstract Object Trees The source-code-marshallin'est abstract-object-serializin'est persister this side of Marmalade!
Class | Named | Undocumented |
Class | Class | Undocumented |
Class | Function | Undocumented |
Class | Module | Undocumented |
Class | InstanceMethod | Undocumented |
Class | Instance | Undocumented |
Class | Ref | Undocumented |
Class | Deref | Undocumented |
Class | Copyreg | Undocumented |
Function | getSource | Pass me an AO, I'll return a nicely-formatted source representation. |
Class | NonFormattableDict | A dictionary was not formattable. |
Function | dictToKW | Undocumented |
Function | prettify | Undocumented |
Function | indentify | Undocumented |
Function | unjellyFromAOT | Pass me an Abstract Object Tree, and I'll unjelly it for you. |
Function | unjellyFromSource | Pass me a string of code or a filename that defines an 'app' variable (in terms of Abstract Objects!), and I'll execute it and unjelly the resulting AOT for you, returning a newly unpersisted Application object! |
Class | AOTUnjellier | I handle the unjellying of an Abstract Object Tree. See AOTUnjellier.unjellyAO |
Function | jellyToAOT | Convert an object to an Abstract Object Tree. |
Function | jellyToSource | Pass me an object and, optionally, a file object. I'll convert the object to an AOT either return it (if no file was specified) or write it to the file. |
Class | AOTJellier | No class docstring; 2/4 methods documented |
Class | _NoStateObj | Undocumented |
Function | _classOfMethod | Get the associated class of the given method object. |
Function | _funcOfMethod | Get the associated function of the given method object. |
Function | _selfOfMethod | Get the object that a bound method is bound to. |
Pass me a string of code or a filename that defines an 'app' variable (in terms of Abstract Objects!), and I'll execute it and unjelly the resulting AOT for you, returning a newly unpersisted Application object!
Pass me an object and, optionally, a file object. I'll convert the object to an AOT either return it (if no file was specified) or write it to the file.
Get the associated class of the given method object.
Parameters | methodObject | a bound method (type: types.MethodType ) |
Returns | a class (type: types.ClassType
or type ) |
Get the associated function of the given method object.
Parameters | methodObject | a bound method (type: types.MethodType ) |
Returns | the function implementing methodObject (type: types.FunctionType ) |
Get the object that a bound method is bound to.
Parameters | methodObject | a bound method (type: types.MethodType ) |
Returns | the self passed to methodObject (type: object ) |