Right, simple question here. I couldn’t find an answer using google and looking here.
I need to write a few stubs for builtin functions within python like open(name[, mode[, buffering]]). However I can’t seem to find the default values for mode and buffering
It does not seem to be None
For making wrappers for the built-ins, what you usually end up doing is something like:
The reason is that not all the arguments are accesible via keyword (
bufferin this case).