From f1b2b1b600cd21d4835c3ad6c784eaafd215c046 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 25 Oct 2016 11:02:47 +1100 Subject: [PATCH] docs/library/builtins: Add docs for delattr and slice. --- docs/library/builtins.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/library/builtins.rst b/docs/library/builtins.rst index 42768ab999..d53c4d377b 100644 --- a/docs/library/builtins.rst +++ b/docs/library/builtins.rst @@ -28,6 +28,11 @@ All builtin functions are described here. They are also available via .. class:: complex() +.. function:: delattr(obj, name) + + The argument *name* should be a string, and this function deletes the named + attribute from the object given by *obj*. + .. class:: dict() .. function:: dir() @@ -110,6 +115,10 @@ All builtin functions are described here. They are also available via .. function:: setattr() +.. class:: slice() + + The *slice* builtin is the type that slice objects have. + .. function:: sorted() .. function:: staticmethod()