Skip to content

Commit d12ce24

Browse files
author
Kenneth Reitz
committed
added linsert() to readme.
1 parent 2eb518a commit d12ce24

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,20 @@ API Reference
173173
Negative indexes are supported and will return an item at the
174174
end of the list
175175

176+
### linsert(self, name, where, refvalue, value)
177+
Insert _value_ in list _name_ either immediately before or after
178+
(_where_) _refvalue_.
179+
180+
Returns the new length of the list on success or -1 if _refvalue_
181+
is not in the list.
182+
176183
### listen(self)
177184
Listen for messages on channels this client has been subscribed to
178185

179186
### llen(self, name)
180187
Return the length of the list _name_
181188

182-
###lock(self, name, timeout=None, sleep=0.10000000000000001)
189+
### lock(self, name, timeout=None, sleep=0.10000000000000001)
183190
Return a new Lock object using key _name_ that mimics
184191
the behavior of threading.Lock.
185192

0 commit comments

Comments
 (0)