Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a00b64

Browse files
committed
Removed some versionadded tags, and a reference to "long" in a sample
1 parent fdfe62d commit 6a00b64

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

Doc/library/ctypes.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,8 +1875,6 @@ Utility functions
18751875
module with a call to the ``free(void *)``, it is important that you
18761876
use the function in the same library that allocated the memory.
18771877

1878-
.. versionadded:: 2.6
1879-
18801878
.. function:: FormatError([code])
18811879

18821880
Windows only: Returns a textual description of the error code. If no error code
@@ -1895,15 +1893,11 @@ Utility functions
18951893
Returns the current value of the ctypes-private copy of the system
18961894
`errno` variable in the calling thread.
18971895

1898-
.. versionadded:: 2.6
1899-
19001896
.. function:: get_last_error()
19011897

19021898
Windows only: returns the current value of the ctypes-private copy of the system
19031899
`LastError` variable in the calling thread.
19041900

1905-
.. versionadded:: 2.6
1906-
19071901
.. function:: memmove(dst, src, count)
19081902

19091903
Same as the standard C memmove library function: copies *count* bytes from
@@ -1961,16 +1955,12 @@ Utility functions
19611955
`errno` variable in the calling thread to `value` and return the
19621956
previous value.
19631957

1964-
.. versionadded:: 2.6
1965-
19661958
.. function:: set_last_error(value)
19671959

19681960
Windows only: set the current value of the ctypes-private copy of
19691961
the system `LastError` variable in the calling thread to `value`
19701962
and return the previous value.
19711963

1972-
.. versionadded:: 2.6
1973-
19741964
.. function:: sizeof(obj_or_type)
19751965

19761966
Returns the size in bytes of a ctypes type or instance memory buffer. Does the
@@ -2164,8 +2154,6 @@ These are the fundamental ctypes data types:
21642154
optional float initializer. On platforms where ``sizeof(long
21652155
double) == sizeof(double)`` it is an alias to :class:`c_double`.
21662156

2167-
.. versionadded:: 2.6
2168-
21692157
.. class:: c_float
21702158

21712159
Represents the C float datatype. The constructor accepts an optional float

Doc/library/numbers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ forward and reverse instances of any given operator. For example,
181181

182182
def _operator_fallbacks(monomorphic_operator, fallback_operator):
183183
def forward(a, b):
184-
if isinstance(b, (int, long, Fraction)):
184+
if isinstance(b, (int, Fraction)):
185185
return monomorphic_operator(a, b)
186186
elif isinstance(b, float):
187187
return fallback_operator(float(a), b)

0 commit comments

Comments
 (0)