Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed obsolete docs about passing None to i?remove()

  • Loading branch information...
commit 2b1b6b46b87142167661526702de7de81d96f570 1 parent 8c1e807
Alexander Schepanovski authored April 06, 2013

Showing 1 changed file with 2 additions and 5 deletions. Show diff stats Hide diff stats

  1. 7  docs/seqs.rst
7  docs/seqs.rst
Source Rendered
@@ -215,12 +215,9 @@ Most of functions in this section support :ref:`extended_fns`. Among other thing
215 215
 .. function:: remove(pred, seq)
216 216
               iremove(pred, seq)
217 217
 
218  
-    Return a list or an iterator of items of ``seq`` that result in false when passed to ``pred``. The results of this functions complement results of standard :func:`filter` and :func:`~itertools.ifilter`. The notable diffrence is that predicate can't be ``None``, use ``bool`` instead::
  218
+    Return a list or an iterator of items of ``seq`` that result in false when passed to ``pred``. The results of this functions complement results of standard :func:`filter` and :func:`~itertools.ifilter`.
219 219
 
220  
-        remove(bool, [0, 1, 2, ''])
221  
-        # -> [0, '']
222  
-
223  
-    Other handy use is passing :func:`re_tester` result as ``pred``. For example, this code removes any whitespace only lines from list::
  220
+    A handy use is passing :func:`re_tester` result as ``pred``. For example, this code removes any whitespace-only lines from list::
224 221
 
225 222
         remove(re_tester('^\s+$'), lines)
226 223
 

0 notes on commit 2b1b6b4

Please sign in to comment.
Something went wrong with that request. Please try again.