Message168933
I used the following for:
>>CodeType
>>FunctionType
>>LambdaType
>>SimpleNamespace
>>MethodType
--------------------
>>> print(CodeType.__doc__)
code(argcount, kwonlyargcount, nlocals, stacksize, flags, codestring,
constants, names, varnames, filename, name, firstlineno,
lnotab[, freevars[, cellvars]])
Create a code object. Not for the faint of heart.
>>> print(FunctionType.__doc__)
function(code, globals[, name[, argdefs[, closure]]])
Create a function object from a code object and a dictionary.
The optional name string overrides the name from the code object.
The optional argdefs tuple specifies the default argument values.
The optional closure tuple supplies the bindings for free variables.
>>> print(LambdaType.__doc__)
function(code, globals[, name[, argdefs[, closure]]])
Create a function object from a code object and a dictionary.
The optional name string overrides the name from the code object.
The optional argdefs tuple specifies the default argument values.
The optional closure tuple supplies the bindings for free variables.
>>> print(SimpleNamespace.__doc__)
A simple attribute-based namespace.
namespace(**kwargs)
>>> print(MethodType.__doc__)
method(function, instance)
Create a bound instance method object.
--------------------
I left out the [] arguments.
I've stopped here and uploaded a patch for the
>>'first easy part'.
Despite that name I suspect I will have to change quite a few things. Once this part is done then I will move on the the
>>'second easy part' |
|
Date |
User |
Action |
Args |
2012-08-23 10:36:12 | mikehoy | set | recipients:
+ mikehoy, georg.brandl, terry.reedy, ncoghlan, techtonik, ezio.melotti, eric.araujo, docs@python, guandalino |
2012-08-23 10:36:12 | mikehoy | set | messageid: <1345718172.18.0.538909995989.issue11776@psf.upfronthosting.co.za> |
2012-08-23 10:36:11 | mikehoy | link | issue11776 messages |
2012-08-23 10:36:11 | mikehoy | create | |
|