This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Philip.Bober
Recipients Philip.Bober, docs@python
Date 2010-12-10.20:25:44
SpamBayes Score 1.5089652e-11
Marked as misclassified No
Message-id <1292012746.16.0.939598765846.issue10676@psf.upfronthosting.co.za>
In-reply-to
Content
In the Python Standard Library reference, section 5.4: Numeric Types, the table of operators/functions has the following unclear note:

(4)Complex floor division operator, modulo operator, and divmod().
   Deprecated since version 2.3: Instead convert to float using abs() if appropriate.

The intention of this note is to indicate that //,%, and divmod shouldn't be used with complex numbers, but the phrasing is bad and the note being on generic operators makes it sound like the operators themselves are deprecated, not just for complex numbers. 

There was an earlier bugfix (621708, on the previous tracker. Archive: http://mail.python.org/pipermail/python-bugs-list/2002-October/013913.html) which fixed this bad wording elsewhere in the docs (Section 5.6 Binary arithmetic operations in the Python Reference Manual) but it seems the same wording was in both documents and it was only patched in one of them. 

It was replaced with:
"Deprecated since version 2.3: The floor division operator, the modulo operator, and the divmod() function are no longer defined for complex numbers. Instead, convert to a floating point number using the abs() function if appropriate."
History
Date User Action Args
2010-12-10 20:25:46Philip.Bobersetrecipients: + Philip.Bober, docs@python
2010-12-10 20:25:46Philip.Bobersetmessageid: <1292012746.16.0.939598765846.issue10676@psf.upfronthosting.co.za>
2010-12-10 20:25:44Philip.Boberlinkissue10676 messages
2010-12-10 20:25:44Philip.Bobercreate