Skip to content

Commit c41a994

Browse files
Get changes from CPython Doc for 3.11
1 parent ea313b0 commit c41a994

Some content is hidden

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

70 files changed

+8177
-7222
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# test build, we're building with the .rst files that generated our
2222
# .po files.
2323

24-
CPYTHON_CURRENT_COMMIT := d01cf5072be5511595b6d0c35ace6c1b07716f8d
24+
CPYTHON_CURRENT_COMMIT := ba16324b276c7b2b5ecf09479f30fc82c12192ae
2525
LANGUAGE := tr
2626
BRANCH := 3.11
2727

c-api/init.po

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-02-01 22:19+0000\n"
10+
"POT-Creation-Date: 2023-05-01 00:16+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"
@@ -574,10 +574,10 @@ msgid ""
574574
"example, if the program name is ``'/usr/local/bin/python'``, the prefix is "
575575
"``'/usr/local'``. The returned string points into static storage; the caller "
576576
"should not modify its value. This corresponds to the :makevar:`prefix` "
577-
"variable in the top-level :file:`Makefile` and the ``--prefix`` argument to "
578-
"the :program:`configure` script at build time. The value is available to "
579-
"Python code as ``sys.prefix``. It is only useful on Unix. See also the next "
580-
"function."
577+
"variable in the top-level :file:`Makefile` and the :option:`--prefix` "
578+
"argument to the :program:`configure` script at build time. The value is "
579+
"available to Python code as ``sys.prefix``. It is only useful on Unix. See "
580+
"also the next function."
581581
msgstr ""
582582

583583
#: c-api/init.rst:420

c-api/intro.po

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-12-17 01:28+0300\n"
10+
"POT-Creation-Date: 2023-05-01 00:16+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"
@@ -115,11 +115,11 @@ msgstr ""
115115
msgid ""
116116
"The header files are typically installed with Python. On Unix, these are "
117117
"located in the directories :file:`{prefix}/include/pythonversion/` and :file:"
118-
"`{exec_prefix}/include/pythonversion/`, where :envvar:`prefix` and :envvar:"
119-
"`exec_prefix` are defined by the corresponding parameters to Python's :"
120-
"program:`configure` script and *version* is ``'%d.%d' % sys."
121-
"version_info[:2]``. On Windows, the headers are installed in :file:"
122-
"`{prefix}/include`, where :envvar:`prefix` is the installation directory "
118+
"`{exec_prefix}/include/pythonversion/`, where :option:`prefix <--prefix>` "
119+
"and :option:`exec_prefix <--exec-prefix>` are defined by the corresponding "
120+
"parameters to Python's :program:`configure` script and *version* is ``'%d."
121+
"%d' % sys.version_info[:2]``. On Windows, the headers are installed in :"
122+
"file:`{prefix}/include`, where ``prefix`` is the installation directory "
123123
"specified to the installer."
124124
msgstr ""
125125

@@ -129,8 +129,8 @@ msgid ""
129129
"compiler's search path for includes. Do *not* place the parent directories "
130130
"on the search path and then use ``#include <pythonX.Y/Python.h>``; this will "
131131
"break on multi-platform builds since the platform independent headers under :"
132-
"envvar:`prefix` include the platform specific headers from :envvar:"
133-
"`exec_prefix`."
132+
"option:`prefix <--prefix>` include the platform specific headers from :"
133+
"option:`exec_prefix <--exec-prefix>`."
134134
msgstr ""
135135

136136
#: c-api/intro.rst:95

c-api/object.po

+42-29
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-03-01 00:18+0000\n"
10+
"POT-Creation-Date: 2023-05-01 00:16+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"
@@ -191,21 +191,34 @@ msgid ""
191191
"will always return ``1`` for :const:`Py_EQ` and ``0`` for :const:`Py_NE`."
192192
msgstr ""
193193

194-
#: c-api/object.rst:186
194+
#: c-api/object.rst:184
195+
msgid ""
196+
"Format *obj* using *format_spec*. This is equivalent to the Python "
197+
"expression ``format(obj, format_spec)``."
198+
msgstr ""
199+
200+
#: c-api/object.rst:187
201+
msgid ""
202+
"*format_spec* may be ``NULL``. In this case the call is equivalent to "
203+
"``format(obj)``. Returns the formatted string on success, ``NULL`` on "
204+
"failure."
205+
msgstr ""
206+
207+
#: c-api/object.rst:195
195208
msgid ""
196209
"Compute a string representation of object *o*. Returns the string "
197210
"representation on success, ``NULL`` on failure. This is the equivalent of "
198211
"the Python expression ``repr(o)``. Called by the :func:`repr` built-in "
199212
"function."
200213
msgstr ""
201214

202-
#: c-api/object.rst:214
215+
#: c-api/object.rst:223
203216
msgid ""
204217
"This function now includes a debug assertion to help ensure that it does not "
205218
"silently discard an active exception."
206219
msgstr ""
207220

208-
#: c-api/object.rst:198
221+
#: c-api/object.rst:207
209222
msgid ""
210223
"As :c:func:`PyObject_Repr`, compute a string representation of object *o*, "
211224
"but escape the non-ASCII characters in the string returned by :c:func:"
@@ -214,15 +227,15 @@ msgid ""
214227
"Called by the :func:`ascii` built-in function."
215228
msgstr ""
216229

217-
#: c-api/object.rst:209
230+
#: c-api/object.rst:218
218231
msgid ""
219232
"Compute a string representation of object *o*. Returns the string "
220233
"representation on success, ``NULL`` on failure. This is the equivalent of "
221234
"the Python expression ``str(o)``. Called by the :func:`str` built-in "
222235
"function and, therefore, by the :func:`print` function."
223236
msgstr ""
224237

225-
#: c-api/object.rst:223
238+
#: c-api/object.rst:232
226239
msgid ""
227240
"Compute a bytes representation of object *o*. ``NULL`` is returned on "
228241
"failure and a bytes object on success. This is equivalent to the Python "
@@ -231,95 +244,95 @@ msgid ""
231244
"bytes object."
232245
msgstr ""
233246

234-
#: c-api/object.rst:232
247+
#: c-api/object.rst:241
235248
msgid ""
236249
"Return ``1`` if the class *derived* is identical to or derived from the "
237250
"class *cls*, otherwise return ``0``. In case of an error, return ``-1``."
238251
msgstr ""
239252

240-
#: c-api/object.rst:254
253+
#: c-api/object.rst:263
241254
msgid ""
242255
"If *cls* is a tuple, the check will be done against every entry in *cls*. "
243256
"The result will be ``1`` when at least one of the checks returns ``1``, "
244257
"otherwise it will be ``0``."
245258
msgstr ""
246259

247-
#: c-api/object.rst:239
260+
#: c-api/object.rst:248
248261
msgid ""
249262
"If *cls* has a :meth:`~class.__subclasscheck__` method, it will be called to "
250263
"determine the subclass status as described in :pep:`3119`. Otherwise, "
251264
"*derived* is a subclass of *cls* if it is a direct or indirect subclass, i."
252265
"e. contained in ``cls.__mro__``."
253266
msgstr ""
254267

255-
#: c-api/object.rst:244
268+
#: c-api/object.rst:253
256269
msgid ""
257270
"Normally only class objects, i.e. instances of :class:`type` or a derived "
258271
"class, are considered classes. However, objects can override this by having "
259272
"a :attr:`__bases__` attribute (which must be a tuple of base classes)."
260273
msgstr ""
261274

262-
#: c-api/object.rst:251
275+
#: c-api/object.rst:260
263276
msgid ""
264277
"Return ``1`` if *inst* is an instance of the class *cls* or a subclass of "
265278
"*cls*, or ``0`` if not. On error, returns ``-1`` and sets an exception."
266279
msgstr ""
267280

268-
#: c-api/object.rst:258
281+
#: c-api/object.rst:267
269282
msgid ""
270283
"If *cls* has a :meth:`~class.__instancecheck__` method, it will be called to "
271284
"determine the subclass status as described in :pep:`3119`. Otherwise, "
272285
"*inst* is an instance of *cls* if its class is a subclass of *cls*."
273286
msgstr ""
274287

275-
#: c-api/object.rst:262
288+
#: c-api/object.rst:271
276289
msgid ""
277290
"An instance *inst* can override what is considered its class by having a :"
278291
"attr:`__class__` attribute."
279292
msgstr ""
280293

281-
#: c-api/object.rst:265
294+
#: c-api/object.rst:274
282295
msgid ""
283296
"An object *cls* can override if it is considered a class, and what its base "
284297
"classes are, by having a :attr:`__bases__` attribute (which must be a tuple "
285298
"of base classes)."
286299
msgstr ""
287300

288-
#: c-api/object.rst:274
301+
#: c-api/object.rst:283
289302
msgid ""
290303
"Compute and return the hash value of an object *o*. On failure, return "
291304
"``-1``. This is the equivalent of the Python expression ``hash(o)``."
292305
msgstr ""
293306

294-
#: c-api/object.rst:277
307+
#: c-api/object.rst:286
295308
msgid ""
296309
"The return type is now Py_hash_t. This is a signed integer the same size "
297310
"as :c:type:`Py_ssize_t`."
298311
msgstr ""
299312

300-
#: c-api/object.rst:284
313+
#: c-api/object.rst:293
301314
msgid ""
302315
"Set a :exc:`TypeError` indicating that ``type(o)`` is not :term:`hashable` "
303316
"and return ``-1``. This function receives special treatment when stored in a "
304317
"``tp_hash`` slot, allowing a type to explicitly indicate to the interpreter "
305318
"that it is not hashable."
306319
msgstr ""
307320

308-
#: c-api/object.rst:292
321+
#: c-api/object.rst:301
309322
msgid ""
310323
"Returns ``1`` if the object *o* is considered to be true, and ``0`` "
311324
"otherwise. This is equivalent to the Python expression ``not not o``. On "
312325
"failure, return ``-1``."
313326
msgstr ""
314327

315-
#: c-api/object.rst:299
328+
#: c-api/object.rst:308
316329
msgid ""
317330
"Returns ``0`` if the object *o* is considered to be true, and ``1`` "
318331
"otherwise. This is equivalent to the Python expression ``not o``. On "
319332
"failure, return ``-1``."
320333
msgstr ""
321334

322-
#: c-api/object.rst:308
335+
#: c-api/object.rst:317
323336
msgid ""
324337
"When *o* is non-``NULL``, returns a type object corresponding to the object "
325338
"type of object *o*. On failure, raises :exc:`SystemError` and returns "
@@ -330,21 +343,21 @@ msgid ""
330343
"incremented reference count is needed."
331344
msgstr ""
332345

333-
#: c-api/object.rst:319
346+
#: c-api/object.rst:328
334347
msgid ""
335348
"Return non-zero if the object *o* is of type *type* or a subtype of *type*, "
336349
"and ``0`` otherwise. Both parameters must be non-``NULL``."
337350
msgstr ""
338351

339-
#: c-api/object.rst:328
352+
#: c-api/object.rst:337
340353
msgid ""
341354
"Return the length of object *o*. If the object *o* provides either the "
342355
"sequence and mapping protocols, the sequence length is returned. On error, "
343356
"``-1`` is returned. This is the equivalent to the Python expression "
344357
"``len(o)``."
345358
msgstr ""
346359

347-
#: c-api/object.rst:335
360+
#: c-api/object.rst:344
348361
msgid ""
349362
"Return an estimated length for the object *o*. First try to return its "
350363
"actual length, then an estimate using :meth:`~object.__length_hint__`, and "
@@ -353,26 +366,26 @@ msgid ""
353366
"defaultvalue)``."
354367
msgstr ""
355368

356-
#: c-api/object.rst:345
369+
#: c-api/object.rst:354
357370
msgid ""
358371
"Return element of *o* corresponding to the object *key* or ``NULL`` on "
359372
"failure. This is the equivalent of the Python expression ``o[key]``."
360373
msgstr ""
361374

362-
#: c-api/object.rst:351
375+
#: c-api/object.rst:360
363376
msgid ""
364377
"Map the object *key* to the value *v*. Raise an exception and return ``-1`` "
365378
"on failure; return ``0`` on success. This is the equivalent of the Python "
366379
"statement ``o[key] = v``. This function *does not* steal a reference to *v*."
367380
msgstr ""
368381

369-
#: c-api/object.rst:359
382+
#: c-api/object.rst:368
370383
msgid ""
371384
"Remove the mapping for the object *key* from the object *o*. Return ``-1`` "
372385
"on failure. This is equivalent to the Python statement ``del o[key]``."
373386
msgstr ""
374387

375-
#: c-api/object.rst:365
388+
#: c-api/object.rst:374
376389
msgid ""
377390
"This is equivalent to the Python expression ``dir(o)``, returning a "
378391
"(possibly empty) list of strings appropriate for the object argument, or "
@@ -382,15 +395,15 @@ msgid ""
382395
"`PyErr_Occurred` will return false."
383396
msgstr ""
384397

385-
#: c-api/object.rst:374
398+
#: c-api/object.rst:383
386399
msgid ""
387400
"This is equivalent to the Python expression ``iter(o)``. It returns a new "
388401
"iterator for the object argument, or the object itself if the object is "
389402
"already an iterator. Raises :exc:`TypeError` and returns ``NULL`` if the "
390403
"object cannot be iterated."
391404
msgstr ""
392405

393-
#: c-api/object.rst:382
406+
#: c-api/object.rst:391
394407
msgid ""
395408
"This is the equivalent to the Python expression ``aiter(o)``. Takes an :"
396409
"class:`AsyncIterable` object and returns an :class:`AsyncIterator` for it. "

0 commit comments

Comments
 (0)