Home
Docs
Install
OpenGL
OpenGL.latebind
Late-bound base-class (with acceleration)
Classes
class
Curry
(
object
):
Provides a simple Curry which can bind (only) the first element
This is used by lazywrapper, which explains the weird naming of the two attributes...
__call__
(
self ,
* args ,
** named
)
returns self.wrapperFunction( self.baseFunction, *args, **named )
__init__
(
self ,
wrapperFunction ,
baseFunction
)
Stores self.wrapperFunction and self.baseFunction
class
LateBind
(
object
):
Provides a __call__ which dispatches to self._finalCall
When called without self._finalCall() makes a call to self.finalise() and then calls self._finalCall()
__call__
(
self ,
* args ,
** named
)
Call self._finalCall, calling finalise() first if not already called
There's actually *no* reason to unpack and repack the arguments, but unfortunately I don't know of a Cython syntax to specify that.
finalise
(
self
)
Finalise our target to our final callable object
return final callable
getFinalCall
(
self
)
Retrieve and/or bind and retrieve final call
setFinalCall
(
self ,
finalCall
)
Set our finalCall to the callable object given