Skip to content

Commit 752eb31

Browse files
committed
Deploying to gh-pages from @ 4a00826 🚀
1 parent 9194076 commit 752eb31

File tree

586 files changed

+1730
-1575
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

586 files changed

+1730
-1575
lines changed

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: c25c4b6fc5d5d55aea294dde0c81d589
3+
config: a7af48a189f240be6fd51de8aee6bd41
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_sources/c-api/arg.rst.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,10 @@ Numbers
280280
length 1, to a C :c:expr:`int`.
281281

282282
``f`` (:class:`float`) [float]
283-
Convert a Python floating point number to a C :c:expr:`float`.
283+
Convert a Python floating-point number to a C :c:expr:`float`.
284284

285285
``d`` (:class:`float`) [double]
286-
Convert a Python floating point number to a C :c:expr:`double`.
286+
Convert a Python floating-point number to a C :c:expr:`double`.
287287

288288
``D`` (:class:`complex`) [Py_complex]
289289
Convert a Python complex number to a C :c:type:`Py_complex` structure.
@@ -607,10 +607,10 @@ Building values
607607
object of length 1.
608608
609609
``d`` (:class:`float`) [double]
610-
Convert a C :c:expr:`double` to a Python floating point number.
610+
Convert a C :c:expr:`double` to a Python floating-point number.
611611
612612
``f`` (:class:`float`) [float]
613-
Convert a C :c:expr:`float` to a Python floating point number.
613+
Convert a C :c:expr:`float` to a Python floating-point number.
614614
615615
``D`` (:class:`complex`) [Py_complex \*]
616616
Convert a C :c:type:`Py_complex` structure to a Python complex number.

_sources/c-api/float.rst.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22

33
.. _floatobjects:
44

5-
Floating Point Objects
5+
Floating-Point Objects
66
======================
77

8-
.. index:: pair: object; floating point
8+
.. index:: pair: object; floating-point
99

1010

1111
.. c:type:: PyFloatObject
1212
13-
This subtype of :c:type:`PyObject` represents a Python floating point object.
13+
This subtype of :c:type:`PyObject` represents a Python floating-point object.
1414

1515

1616
.. c:var:: PyTypeObject PyFloat_Type
1717
18-
This instance of :c:type:`PyTypeObject` represents the Python floating point
18+
This instance of :c:type:`PyTypeObject` represents the Python floating-point
1919
type. This is the same object as :class:`float` in the Python layer.
2020

2121

@@ -45,7 +45,7 @@ Floating Point Objects
4545
.. c:function:: double PyFloat_AsDouble(PyObject *pyfloat)
4646
4747
Return a C :c:expr:`double` representation of the contents of *pyfloat*. If
48-
*pyfloat* is not a Python floating point object but has a :meth:`~object.__float__`
48+
*pyfloat* is not a Python floating-point object but has a :meth:`~object.__float__`
4949
method, this method will first be called to convert *pyfloat* into a float.
5050
If :meth:`!__float__` is not defined then it falls back to :meth:`~object.__index__`.
5151
This method returns ``-1.0`` upon failure, so one should call

_sources/c-api/marshal.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Numeric values are stored with the least significant byte first.
1515

1616
The module supports two versions of the data format: version 0 is the
1717
historical version, version 1 shares interned strings in the file, and upon
18-
unmarshalling. Version 2 uses a binary format for floating point numbers.
18+
unmarshalling. Version 2 uses a binary format for floating-point numbers.
1919
``Py_MARSHAL_VERSION`` indicates the current file format (currently 2).
2020

2121

_sources/c-api/module.rst.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,8 @@ The available slot types are:
342342
The *value* pointer of this slot must point to a function of the signature:
343343
344344
.. c:function:: PyObject* create_module(PyObject *spec, PyModuleDef *def)
345-
:noindex:
345+
:no-index-entry:
346+
:no-contents-entry:
346347
347348
The function receives a :py:class:`~importlib.machinery.ModuleSpec`
348349
instance, as defined in :PEP:`451`, and the module definition.
@@ -377,7 +378,8 @@ The available slot types are:
377378
The signature of the function is:
378379
379380
.. c:function:: int exec_module(PyObject* module)
380-
:noindex:
381+
:no-index-entry:
382+
:no-contents-entry:
381383
382384
If multiple ``Py_mod_exec`` slots are specified, they are processed in the
383385
order they appear in the *m_slots* array.

_sources/c-api/number.rst.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ Number Protocol
5151
5252
Return a reasonable approximation for the mathematical value of *o1* divided by
5353
*o2*, or ``NULL`` on failure. The return value is "approximate" because binary
54-
floating point numbers are approximate; it is not possible to represent all real
55-
numbers in base two. This function can return a floating point value when
54+
floating-point numbers are approximate; it is not possible to represent all real
55+
numbers in base two. This function can return a floating-point value when
5656
passed two integers. This is the equivalent of the Python expression ``o1 / o2``.
5757
5858
@@ -177,8 +177,8 @@ Number Protocol
177177
178178
Return a reasonable approximation for the mathematical value of *o1* divided by
179179
*o2*, or ``NULL`` on failure. The return value is "approximate" because binary
180-
floating point numbers are approximate; it is not possible to represent all real
181-
numbers in base two. This function can return a floating point value when
180+
floating-point numbers are approximate; it is not possible to represent all real
181+
numbers in base two. This function can return a floating-point value when
182182
passed two integers. The operation is done *in-place* when *o1* supports it.
183183
This is the equivalent of the Python statement ``o1 /= o2``.
184184

_sources/faq/design.rst.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ operations. This means that as far as floating-point operations are concerned,
7070
Python behaves like many popular languages including C and Java.
7171

7272
Many numbers that can be written easily in decimal notation cannot be expressed
73-
exactly in binary floating-point. For example, after::
73+
exactly in binary floating point. For example, after::
7474

7575
>>> x = 1.2
7676

@@ -87,7 +87,7 @@ which is exactly::
8787
The typical precision of 53 bits provides Python floats with 15--16
8888
decimal digits of accuracy.
8989

90-
For a fuller explanation, please see the :ref:`floating point arithmetic
90+
For a fuller explanation, please see the :ref:`floating-point arithmetic
9191
<tut-fp-issues>` chapter in the Python tutorial.
9292

9393

_sources/faq/library.rst.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,12 +825,12 @@ is simple::
825825
import random
826826
random.random()
827827
828-
This returns a random floating point number in the range [0, 1).
828+
This returns a random floating-point number in the range [0, 1).
829829
830830
There are also many other specialized generators in this module, such as:
831831
832832
* ``randrange(a, b)`` chooses an integer in the range [a, b).
833-
* ``uniform(a, b)`` chooses a floating point number in the range [a, b).
833+
* ``uniform(a, b)`` chooses a floating-point number in the range [a, b).
834834
* ``normalvariate(mean, sdev)`` samples the normal (Gaussian) distribution.
835835
836836
Some higher-level functions operate on sequences directly, such as:

_sources/faq/programming.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ How do I convert a string to a number?
869869
--------------------------------------
870870

871871
For integers, use the built-in :func:`int` type constructor, e.g. ``int('144')
872-
== 144``. Similarly, :func:`float` converts to floating-point,
872+
== 144``. Similarly, :func:`float` converts to a floating-point number,
873873
e.g. ``float('144') == 144.0``.
874874

875875
By default, these interpret the number as decimal, so that ``int('0144') ==

_sources/library/array.rst.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
--------------
1010

1111
This module defines an object type which can compactly represent an array of
12-
basic values: characters, integers, floating point numbers. Arrays are sequence
12+
basic values: characters, integers, floating-point numbers. Arrays are sequence
1313
types and behave very much like lists, except that the type of objects stored in
1414
them is constrained. The type is specified at object creation time by using a
1515
:dfn:`type code`, which is a single character. The following type codes are
@@ -253,7 +253,7 @@ The string representation is guaranteed to be able to be converted back to an
253253
array with the same type and value using :func:`eval`, so long as the
254254
:class:`~array.array` class has been imported using ``from array import array``.
255255
Variables ``inf`` and ``nan`` must also be defined if it contains
256-
corresponding floating point values.
256+
corresponding floating-point values.
257257
Examples::
258258

259259
array('l')

0 commit comments

Comments
 (0)