[Python-checkins] r60393 - in python/branches/trunk-math: Doc/library/math.rst Doc/library/stdtypes.rst Misc/NEWS
christian.heimes
python-checkins at python.org
Mon Jan 28 17:05:57 CET 2008
Author: christian.heimes
Date: Mon Jan 28 17:05:56 2008
New Revision: 60393
Modified:
python/branches/trunk-math/Doc/library/math.rst
python/branches/trunk-math/Doc/library/stdtypes.rst
python/branches/trunk-math/Misc/NEWS
Log:
Doc fixes
Modified: python/branches/trunk-math/Doc/library/math.rst
==============================================================================
--- python/branches/trunk-math/Doc/library/math.rst (original)
+++ python/branches/trunk-math/Doc/library/math.rst Mon Jan 28 17:05:56 2008
@@ -151,7 +151,7 @@
returns *0.* for all positive *y*, *0* and *NAN*.
.. versionchanged:: 2.6
- The outcome of ``1**nan`` and ``0**nan`` was undefined.
+ The outcome of ``1**nan`` and ``0**nan`` was undefined.
.. function:: sqrt(x)
Modified: python/branches/trunk-math/Doc/library/stdtypes.rst
==============================================================================
--- python/branches/trunk-math/Doc/library/stdtypes.rst (original)
+++ python/branches/trunk-math/Doc/library/stdtypes.rst Mon Jan 28 17:05:56 2008
@@ -376,6 +376,8 @@
expotentional form ``r * exp(j * phi)``. The method ``as_cis()`` returns the
radius *r* and angle *phi* of a complex number.
+ .. versionadded:: 2.6
+
All :class:`numbers.Real` types (:class:`int`, :class:`long`, and
:class:`float`) also include the following operations:
Modified: python/branches/trunk-math/Misc/NEWS
==============================================================================
--- python/branches/trunk-math/Misc/NEWS (original)
+++ python/branches/trunk-math/Misc/NEWS Mon Jan 28 17:05:56 2008
@@ -12,6 +12,15 @@
Core and builtins
-----------------
+- Added ``from_cis`` constructor to the ``complex`` type to create a complex
+ from a polar or exp notation. The new method ``as_cis`` returns radius *r*
+ and angle *phi* of a complex.
+
+- Issue #XXXX: Four new methods were added to the math and cmath modules:
+ acosh, asinh, atanh and log1p. Replacement implementations for platforms
+ without the four functions and copysign in libm were added to a new file
+ Python/pymath.c.
+
- Patch #1473257: generator objects gain a gi_code attribute. This is the
same object as the func_code attribute of the function that produced the
generator.
@@ -36,11 +45,6 @@
- Issue #1882: when compiling code from a string, encoding cookies in the
second line of code were not always recognized correctly.
-- Issue #XXXX: Four new methods were added to the math and cmath modules:
- acosh, asinh, atanh and log1p. Replacement implementations for platforms
- without the four functions and copysign in libm were added to a new file
- Python/pymath.c.
-
- Issue #1679: "0x" was taken as a valid integer literal.
- Issue #1865: ``bytes`` as an alias for ``str`` and b"" as an alias "" were
More information about the Python-checkins
mailing list