diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2013-11-24 07:19:09 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2013-11-24 07:19:09 (GMT) |
commit | a4b7a7548c43d1d7f4fd52129aa32340ca15af6a (patch) | |
tree | 9993a71599cca9dcfbb51dc3286cbb5ab094b455 /Objects | |
parent | 091167c1ca513d74c7a146d6a527e7b8b07ae7e8 (diff) | |
download | cpython-a4b7a7548c43d1d7f4fd52129aa32340ca15af6a.zip cpython-a4b7a7548c43d1d7f4fd52129aa32340ca15af6a.tar.gz cpython-a4b7a7548c43d1d7f4fd52129aa32340ca15af6a.tar.bz2 |
Issue #3158: doctest can now find doctests in functions and methods
written in C.
As a part of this, a few doctests have been added to the builtins module
(on hex(), oct(), and bin()), a doctest has been fixed (hopefully on all
platforms) on float, and test_builtins now runs doctests in builtins.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/floatobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index abea975..29c3b32 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -1417,7 +1417,7 @@ Create a floating-point number from a hexadecimal string.\n\ >>> float.fromhex('0x1.ffffp10')\n\ 2047.984375\n\ >>> float.fromhex('-0x1p-1074')\n\ --4.9406564584124654e-324"); +-5e-324"); static PyObject * |