Module functools :: Class partial
[hide private]
[frames] | no frames]

type partial

object --+
         |
        partial

partial(func, *args, **keywords) - new function with partial application of the given arguments and keywords.

Instance Methods [hide private]
 
__call__(x, ...)
x(...)
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
Properties [hide private]
  args
tuple of arguments to future partial calls
  func
function object to use in future partial calls
  keywords
dictionary of keyword arguments to future partial calls
Method Details [hide private]

__delattr__(...)

 

x.__delattr__('name') <==> del x.name

Overrides: object.__delattr__

__getattribute__(...)

 

x.__getattribute__('name') <==> x.name

Overrides: object.__getattribute__

__new__(T, S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__setattr__(...)

 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__