Skip to content

Commit 1a9c776

Browse files
authored
some changes in order
1 parent a65ece6 commit 1a9c776

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Doc/c-api/arg.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,17 @@ Numbers
237237
Convert a Python integer to a tiny int without overflow checking, stored in a C
238238
:c:expr:`unsigned char`.
239239

240+
``c`` (:class:`bytes` or :class:`bytearray` of length 1) [char]
241+
Convert a Python byte, represented as a :class:`bytes` or
242+
:class:`bytearray` object of length 1, to a C :c:expr:`char`.
243+
244+
.. versionchanged:: 3.3
245+
Allow :class:`bytearray` objects.
246+
247+
``C`` (:class:`str` of length 1) [int]
248+
Convert a Python character, represented as a :class:`str` object of
249+
length 1, to a C :c:expr:`int`.
250+
240251
``h`` (:class:`int`) [short int]
241252
Convert a Python integer to a C :c:expr:`short int`.
242253

@@ -251,13 +262,13 @@ Numbers
251262
Convert a Python integer to a C :c:expr:`unsigned int`, without overflow
252263
checking.
253264

254-
``l`` (:class:`int`) [long int]
255-
Convert a Python integer to a C :c:expr:`long int`.
256-
257265
``k`` (:class:`int`) [unsigned long]
258266
Convert a Python integer to a C :c:expr:`unsigned long` without
259267
overflow checking.
260268

269+
``l`` (:class:`int`) [long int]
270+
Convert a Python integer to a C :c:expr:`long int`.
271+
261272
``L`` (:class:`int`) [long long]
262273
Convert a Python integer to a C :c:expr:`long long`.
263274

@@ -268,17 +279,6 @@ Numbers
268279
``n`` (:class:`int`) [:c:type:`Py_ssize_t`]
269280
Convert a Python integer to a C :c:type:`Py_ssize_t`.
270281

271-
``c`` (:class:`bytes` or :class:`bytearray` of length 1) [char]
272-
Convert a Python byte, represented as a :class:`bytes` or
273-
:class:`bytearray` object of length 1, to a C :c:expr:`char`.
274-
275-
.. versionchanged:: 3.3
276-
Allow :class:`bytearray` objects.
277-
278-
``C`` (:class:`str` of length 1) [int]
279-
Convert a Python character, represented as a :class:`str` object of
280-
length 1, to a C :c:expr:`int`.
281-
282282
``f`` (:class:`float`) [float]
283283
Convert a Python floating point number to a C :c:expr:`float`.
284284

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy