From 11bfbbab6f587ff702be08c9f12670a778da9bc9 Mon Sep 17 00:00:00 2001 From: David Halter Date: Sun, 16 Sep 2012 23:38:02 +0200 Subject: [PATCH] builtin functions didn't have a self attribute until now --- builtin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builtin.py b/builtin.py index 7abfa675..33fcec31 100644 --- a/builtin.py +++ b/builtin.py @@ -281,6 +281,8 @@ class Parser(CachedModule): # functions for name, func in funcs.items(): params, ret = parse_function_doc(func) + if depth > 0: + params = 'self, ' + params doc_str = get_doc(func, indent=True) try: mixin = mixin_funcs[name]