[issue7259] Documentation update for operator module

Gabriel Genellina report at bugs.python.org
Wed Nov 4 06:23:39 CET 2009


New submission from Gabriel Genellina <gagsl-py2 at yahoo.com.ar>:

This patch fixes some issues with the documentation of the operator 
module:

- docstrings for all augmented assignments incorrectly stated, e.g., 
`operator.iadd(a,b)` is the same as `a += b`. The main documentation 
shows `a = operator.iadd(a,b)` instead, and that's correct. This patch 
updates all affected docstrings in the operator.c module.

- Added +obj to the table of operators.

- Replaced getslice/setslice/delslice examples (deprecated) with their 
getitem/setitem/delitem equivalents. This change unfortunately made the 
table some characters wider.

Originally reported by Juanjo Conti:
http://permalink.gmane.org/gmane.org.user-groups.python.argentina/28596

----------
assignee: georg.brandl
components: Documentation
files: operator.diff
keywords: patch
messages: 94878
nosy: gagenellina, georg.brandl
severity: normal
status: open
title: Documentation update for operator module
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file15255/operator.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7259>
_______________________________________


More information about the Python-bugs-list mailing list