@@ -252,13 +252,21 @@ The sections of a function's docstring are:
252252 Support for the **Yields ** section was added in `numpydoc
253253 <https://github.com/numpy/numpydoc> `_ version 0.6.
254254
255- 7. **Other Parameters **
255+ 7. **Receives **
256+
257+ Explanation of parameters passed to a generator's ``.send() `` method,
258+ formatted as for Parameters, above. Since, like for Yields and Returns, a
259+ single object is always passed to the method, this may describe either the
260+ single parameter, or positional arguments passed as a tuple. If a docstring
261+ includes Receives it must also include Yields.
262+
263+ 8. **Other Parameters **
256264
257265 An optional section used to describe infrequently used parameters.
258266 It should only be used if a function has a large number of keyword
259267 parameters, to prevent cluttering the **Parameters ** section.
260268
261- 8 . **Raises **
269+ 9 . **Raises **
262270
263271 An optional section detailing which errors get raised and under
264272 what conditions::
@@ -271,16 +279,16 @@ The sections of a function's docstring are:
271279 This section should be used judiciously, i.e., only for errors
272280 that are non-obvious or have a large chance of getting raised.
273281
274- 9 . **Warns **
282+ 10 . **Warns **
275283
276284 An optional section detailing which warnings get raised and
277285 under what conditions, formatted similarly to Raises.
278286
279- 10 . **Warnings **
287+ 11 . **Warnings **
280288
281289 An optional section with cautions to the user in free text/reST.
282290
283- 11 . **See Also **
291+ 12 . **See Also **
284292
285293 An optional section used to refer to related code. This section
286294 can be very useful, but should be used judiciously. The goal is to
@@ -319,7 +327,7 @@ The sections of a function's docstring are:
319327 func_b, func_c_, func_d
320328 func_e
321329
322- 12 . **Notes **
330+ 13 . **Notes **
323331
324332 An optional section that provides additional information about the
325333 code, possibly including a discussion of the algorithm. This
@@ -364,7 +372,7 @@ The sections of a function's docstring are:
364372 where filename is a path relative to the reference guide source
365373 directory.
366374
367- 13 . **References **
375+ 14 . **References **
368376
369377 References cited in the **notes ** section may be listed here,
370378 e.g. if you cited the article below using the text ``[1]_ ``,
@@ -397,7 +405,7 @@ The sections of a function's docstring are:
397405
398406.. highlight :: pycon
399407
400- 14 . **Examples **
408+ 15 . **Examples **
401409
402410 An optional section for examples, using the `doctest
403411 <http://docs.python.org/library/doctest.html> `_ format.
0 commit comments