Skip to content

Commit f1b2b1b

Browse files
committed
docs/library/builtins: Add docs for delattr and slice.
1 parent 2550d7d commit f1b2b1b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docs/library/builtins.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ All builtin functions are described here. They are also available via
2828

2929
.. class:: complex()
3030

31+
.. function:: delattr(obj, name)
32+
33+
The argument *name* should be a string, and this function deletes the named
34+
attribute from the object given by *obj*.
35+
3136
.. class:: dict()
3237

3338
.. function:: dir()
@@ -110,6 +115,10 @@ All builtin functions are described here. They are also available via
110115

111116
.. function:: setattr()
112117

118+
.. class:: slice()
119+
120+
The *slice* builtin is the type that slice objects have.
121+
113122
.. function:: sorted()
114123

115124
.. function:: staticmethod()

0 commit comments

Comments
 (0)