Skip to content

Commit 8e76a10

Browse files
Get changes from CPython Doc for 3.12
1 parent 7958218 commit 8e76a10

Some content is hidden

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

114 files changed

+6220
-5713
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# test build, we're building with the .rst files that generated our
2020
# .po files.
2121

22-
CPYTHON_CURRENT_COMMIT := d3f2051eec6039811ae42e4382e8b292a983edc1
22+
CPYTHON_CURRENT_COMMIT := c8e4c32105aff5c762ee3602426603212dcbcd40
2323
LANGUAGE := tr
2424
BRANCH := 3.12
2525

c-api/conversion.po

Lines changed: 60 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-09-18 19:05+0000\n"
10+
"POT-Creation-Date: 2024-02-01 00:15+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: \n"
1313
"Language-Team: TURKISH <python.docs.tr@gmail.com>\n"
@@ -90,21 +90,66 @@ msgstr ""
9090

9191
#: c-api/conversion.rst:53
9292
msgid ""
93+
"Convert the initial part of the string in ``str`` to an :c:expr:`unsigned "
94+
"long` value according to the given ``base``, which must be between ``2`` and "
95+
"``36`` inclusive, or be the special value ``0``."
96+
msgstr ""
97+
98+
#: c-api/conversion.rst:57
99+
msgid ""
100+
"Leading white space and case of characters are ignored. If ``base`` is zero "
101+
"it looks for a leading ``0b``, ``0o`` or ``0x`` to tell which base. If "
102+
"these are absent it defaults to ``10``. Base must be 0 or between 2 and 36 "
103+
"(inclusive). If ``ptr`` is non-``NULL`` it will contain a pointer to the "
104+
"end of the scan."
105+
msgstr ""
106+
107+
#: c-api/conversion.rst:63
108+
msgid ""
109+
"If the converted value falls out of range of corresponding return type, "
110+
"range error occurs (:c:data:`errno` is set to :c:macro:`!ERANGE`) and :c:"
111+
"macro:`!ULONG_MAX` is returned. If no conversion can be performed, ``0`` is "
112+
"returned."
113+
msgstr ""
114+
115+
#: c-api/conversion.rst:68
116+
msgid "See also the Unix man page :manpage:`strtoul(3)`."
117+
msgstr ""
118+
119+
#: c-api/conversion.rst:75
120+
msgid ""
121+
"Convert the initial part of the string in ``str`` to an :c:expr:`long` value "
122+
"according to the given ``base``, which must be between ``2`` and ``36`` "
123+
"inclusive, or be the special value ``0``."
124+
msgstr ""
125+
126+
#: c-api/conversion.rst:79
127+
msgid ""
128+
"Same as :c:func:`PyOS_strtoul`, but return a :c:expr:`long` value instead "
129+
"and :c:macro:`LONG_MAX` on overflows."
130+
msgstr ""
131+
132+
#: c-api/conversion.rst:82
133+
msgid "See also the Unix man page :manpage:`strtol(3)`."
134+
msgstr ""
135+
136+
#: c-api/conversion.rst:89
137+
msgid ""
93138
"Convert a string ``s`` to a :c:expr:`double`, raising a Python exception on "
94139
"failure. The set of accepted strings corresponds to the set of strings "
95140
"accepted by Python's :func:`float` constructor, except that ``s`` must not "
96141
"have leading or trailing whitespace. The conversion is independent of the "
97142
"current locale."
98143
msgstr ""
99144

100-
#: c-api/conversion.rst:59
145+
#: c-api/conversion.rst:95
101146
msgid ""
102147
"If ``endptr`` is ``NULL``, convert the whole string. Raise :exc:"
103148
"`ValueError` and return ``-1.0`` if the string is not a valid representation "
104149
"of a floating-point number."
105150
msgstr ""
106151

107-
#: c-api/conversion.rst:63
152+
#: c-api/conversion.rst:99
108153
msgid ""
109154
"If endptr is not ``NULL``, convert as much of the string as possible and set "
110155
"``*endptr`` to point to the first unconverted character. If no initial "
@@ -113,7 +158,7 @@ msgid ""
113158
"ValueError, and return ``-1.0``."
114159
msgstr ""
115160

116-
#: c-api/conversion.rst:70
161+
#: c-api/conversion.rst:106
117162
msgid ""
118163
"If ``s`` represents a value that is too large to store in a float (for "
119164
"example, ``\"1e500\"`` is such a string on many platforms) then if "
@@ -124,71 +169,71 @@ msgid ""
124169
"the first character after the converted value."
125170
msgstr ""
126171

127-
#: c-api/conversion.rst:78
172+
#: c-api/conversion.rst:114
128173
msgid ""
129174
"If any other error occurs during the conversion (for example an out-of-"
130175
"memory error), set the appropriate Python exception and return ``-1.0``."
131176
msgstr ""
132177

133-
#: c-api/conversion.rst:87
178+
#: c-api/conversion.rst:123
134179
msgid ""
135180
"Convert a :c:expr:`double` *val* to a string using supplied *format_code*, "
136181
"*precision*, and *flags*."
137182
msgstr ""
138183

139-
#: c-api/conversion.rst:90
184+
#: c-api/conversion.rst:126
140185
msgid ""
141186
"*format_code* must be one of ``'e'``, ``'E'``, ``'f'``, ``'F'``, ``'g'``, "
142187
"``'G'`` or ``'r'``. For ``'r'``, the supplied *precision* must be 0 and is "
143188
"ignored. The ``'r'`` format code specifies the standard :func:`repr` format."
144189
msgstr ""
145190

146-
#: c-api/conversion.rst:95
191+
#: c-api/conversion.rst:131
147192
msgid ""
148193
"*flags* can be zero or more of the values ``Py_DTSF_SIGN``, "
149194
"``Py_DTSF_ADD_DOT_0``, or ``Py_DTSF_ALT``, or-ed together:"
150195
msgstr ""
151196

152-
#: c-api/conversion.rst:98
197+
#: c-api/conversion.rst:134
153198
msgid ""
154199
"``Py_DTSF_SIGN`` means to always precede the returned string with a sign "
155200
"character, even if *val* is non-negative."
156201
msgstr ""
157202

158-
#: c-api/conversion.rst:101
203+
#: c-api/conversion.rst:137
159204
msgid ""
160205
"``Py_DTSF_ADD_DOT_0`` means to ensure that the returned string will not look "
161206
"like an integer."
162207
msgstr ""
163208

164-
#: c-api/conversion.rst:104
209+
#: c-api/conversion.rst:140
165210
msgid ""
166211
"``Py_DTSF_ALT`` means to apply \"alternate\" formatting rules. See the "
167212
"documentation for the :c:func:`PyOS_snprintf` ``'#'`` specifier for details."
168213
msgstr ""
169214

170-
#: c-api/conversion.rst:108
215+
#: c-api/conversion.rst:144
171216
msgid ""
172217
"If *ptype* is non-``NULL``, then the value it points to will be set to one "
173218
"of ``Py_DTST_FINITE``, ``Py_DTST_INFINITE``, or ``Py_DTST_NAN``, signifying "
174219
"that *val* is a finite number, an infinite number, or not a number, "
175220
"respectively."
176221
msgstr ""
177222

178-
#: c-api/conversion.rst:112
223+
#: c-api/conversion.rst:148
179224
msgid ""
180225
"The return value is a pointer to *buffer* with the converted string or "
181226
"``NULL`` if the conversion failed. The caller is responsible for freeing the "
182227
"returned string by calling :c:func:`PyMem_Free`."
183228
msgstr ""
184229

185-
#: c-api/conversion.rst:121
230+
#: c-api/conversion.rst:157
186231
msgid ""
187232
"Case insensitive comparison of strings. The function works almost "
188233
"identically to :c:func:`!strcmp` except that it ignores the case."
189234
msgstr ""
190235

191-
#: c-api/conversion.rst:127
236+
#: c-api/conversion.rst:163
192237
msgid ""
193238
"Case insensitive comparison of strings. The function works almost "
194239
"identically to :c:func:`!strncmp` except that it ignores the case."

c-api/memory.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-11-04 18:33+0000\n"
10+
"POT-Creation-Date: 2024-02-01 00:15+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: \n"
1313
"Language-Team: TURKISH <python.docs.tr@gmail.com>\n"
@@ -322,16 +322,16 @@ msgstr ""
322322
#: c-api/memory.rst:269
323323
msgid ""
324324
"Same as :c:func:`PyMem_Malloc`, but allocates ``(n * sizeof(TYPE))`` bytes "
325-
"of memory. Returns a pointer cast to :c:expr:`TYPE*`. The memory will not "
326-
"have been initialized in any way."
325+
"of memory. Returns a pointer cast to ``TYPE*``. The memory will not have "
326+
"been initialized in any way."
327327
msgstr ""
328328

329329
#: c-api/memory.rst:276
330330
msgid ""
331331
"Same as :c:func:`PyMem_Realloc`, but the memory block is resized to ``(n * "
332-
"sizeof(TYPE))`` bytes. Returns a pointer cast to :c:expr:`TYPE*`. On "
333-
"return, *p* will be a pointer to the new memory area, or ``NULL`` in the "
334-
"event of failure."
332+
"sizeof(TYPE))`` bytes. Returns a pointer cast to ``TYPE*``. On return, *p* "
333+
"will be a pointer to the new memory area, or ``NULL`` in the event of "
334+
"failure."
335335
msgstr ""
336336

337337
#: c-api/memory.rst:281

c-api/memoryview.po

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-09-18 19:05+0000\n"
10+
"POT-Creation-Date: 2024-02-01 00:15+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: \n"
1313
"Language-Team: TURKISH <python.docs.tr@gmail.com>\n"
@@ -35,20 +35,28 @@ msgid ""
3535
"the discretion of the exporter."
3636
msgstr ""
3737

38-
#: c-api/memoryview.rst:25
38+
#: c-api/memoryview.rst:26
39+
msgid "Flag to request a readonly buffer."
40+
msgstr ""
41+
42+
#: c-api/memoryview.rst:31
43+
msgid "Flag to request a writable buffer."
44+
msgstr ""
45+
46+
#: c-api/memoryview.rst:36
3947
msgid ""
4048
"Create a memoryview object using *mem* as the underlying buffer. *flags* can "
4149
"be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`."
4250
msgstr ""
4351

44-
#: c-api/memoryview.rst:32
52+
#: c-api/memoryview.rst:43
4553
msgid ""
4654
"Create a memoryview object wrapping the given buffer structure *view*. For "
4755
"simple byte buffers, :c:func:`PyMemoryView_FromMemory` is the preferred "
4856
"function."
4957
msgstr ""
5058

51-
#: c-api/memoryview.rst:38
59+
#: c-api/memoryview.rst:49
5260
msgid ""
5361
"Create a memoryview object to a :term:`contiguous` chunk of memory (in "
5462
"either 'C' or 'F'ortran *order*) from an object that defines the buffer "
@@ -57,21 +65,26 @@ msgid ""
5765
"new bytes object."
5866
msgstr ""
5967

60-
#: c-api/memoryview.rst:47
68+
#: c-api/memoryview.rst:55
69+
msgid ""
70+
"*buffertype* can be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`."
71+
msgstr ""
72+
73+
#: c-api/memoryview.rst:60
6174
msgid ""
6275
"Return true if the object *obj* is a memoryview object. It is not currently "
6376
"allowed to create subclasses of :class:`memoryview`. This function always "
6477
"succeeds."
6578
msgstr ""
6679

67-
#: c-api/memoryview.rst:54
80+
#: c-api/memoryview.rst:67
6881
msgid ""
6982
"Return a pointer to the memoryview's private copy of the exporter's buffer. "
7083
"*mview* **must** be a memoryview instance; this macro doesn't check its "
7184
"type, you must do it yourself or you will risk crashes."
7285
msgstr ""
7386

74-
#: c-api/memoryview.rst:60
87+
#: c-api/memoryview.rst:73
7588
msgid ""
7689
"Return either a pointer to the exporting object that the memoryview is based "
7790
"on or ``NULL`` if the memoryview has been created by one of the functions :c:"

0 commit comments

Comments
 (0)