Skip to content

Commit 938b33e

Browse files
Get changes from CPython Doc for 3.12
1 parent 3a1f460 commit 938b33e

File tree

335 files changed

+67200
-3711
lines changed

Some content is hidden

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

335 files changed

+67200
-3711
lines changed

Makefile

+1-1
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 := 5df322e91a40909e6904bbdbc0c3a6b6a9eead39
22+
CPYTHON_CURRENT_COMMIT := 4eaf4891c12589e3c7bdad5f5b076e4c8392dd06
2323
LANGUAGE := tr
2424
BRANCH := 3.12
2525

c-api/arg.po

+25-1
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: 2024-08-01 00:19+0000\n"
10+
"POT-Creation-Date: 2024-09-01 00:21+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: \n"
1313
"Language-Team: TURKISH <[email protected]>\n"
@@ -602,6 +602,10 @@ msgid ""
602602
"*converter* function in turn is called as follows::"
603603
msgstr ""
604604

605+
#: c-api/arg.rst:316
606+
msgid "status = converter(object, address);"
607+
msgstr ""
608+
605609
#: c-api/arg.rst:318
606610
msgid ""
607611
"where *object* is the Python object to be converted and *address* is the :c:"
@@ -818,12 +822,32 @@ msgid ""
818822
"the :mod:`!_weakref` helper module for weak references::"
819823
msgstr ""
820824

825+
#: c-api/arg.rst:477
826+
msgid ""
827+
"static PyObject *\n"
828+
"weakref_ref(PyObject *self, PyObject *args)\n"
829+
"{\n"
830+
" PyObject *object;\n"
831+
" PyObject *callback = NULL;\n"
832+
" PyObject *result = NULL;\n"
833+
"\n"
834+
" if (PyArg_UnpackTuple(args, \"ref\", 1, 2, &object, &callback)) {\n"
835+
" result = PyWeakref_NewRef(object, callback);\n"
836+
" }\n"
837+
" return result;\n"
838+
"}"
839+
msgstr ""
840+
821841
#: c-api/arg.rst:490
822842
msgid ""
823843
"The call to :c:func:`PyArg_UnpackTuple` in this example is entirely "
824844
"equivalent to this call to :c:func:`PyArg_ParseTuple`::"
825845
msgstr ""
826846

847+
#: c-api/arg.rst:493
848+
msgid "PyArg_ParseTuple(args, \"O|O:ref\", &object, &callback)"
849+
msgstr ""
850+
827851
#: c-api/arg.rst:498
828852
msgid "Building values"
829853
msgstr ""

c-api/buffer.po

+53-1
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: 2024-06-01 00:16+0000\n"
10+
"POT-Creation-Date: 2024-09-01 00:21+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: \n"
1313
"Language-Team: TURKISH <[email protected]>\n"
@@ -512,13 +512,49 @@ msgid ""
512512
"dimensional array as follows:"
513513
msgstr ""
514514

515+
#: c-api/buffer.rst:368
516+
msgid ""
517+
"ptr = (char *)buf + indices[0] * strides[0] + ... + indices[n-1] * "
518+
"strides[n-1];\n"
519+
"item = *((typeof(item) *)ptr);"
520+
msgstr ""
521+
515522
#: c-api/buffer.rst:374
516523
msgid ""
517524
"As noted above, :c:member:`~Py_buffer.buf` can point to any location within "
518525
"the actual memory block. An exporter can check the validity of a buffer with "
519526
"this function:"
520527
msgstr ""
521528

529+
#: c-api/buffer.rst:378
530+
msgid ""
531+
"def verify_structure(memlen, itemsize, ndim, shape, strides, offset):\n"
532+
" \"\"\"Verify that the parameters represent a valid array within\n"
533+
" the bounds of the allocated memory:\n"
534+
" char *mem: start of the physical memory block\n"
535+
" memlen: length of the physical memory block\n"
536+
" offset: (char *)buf - mem\n"
537+
" \"\"\"\n"
538+
" if offset % itemsize:\n"
539+
" return False\n"
540+
" if offset < 0 or offset+itemsize > memlen:\n"
541+
" return False\n"
542+
" if any(v % itemsize for v in strides):\n"
543+
" return False\n"
544+
"\n"
545+
" if ndim <= 0:\n"
546+
" return ndim == 0 and not shape and not strides\n"
547+
" if 0 in shape:\n"
548+
" return True\n"
549+
"\n"
550+
" imin = sum(strides[j]*(shape[j]-1) for j in range(ndim)\n"
551+
" if strides[j] <= 0)\n"
552+
" imax = sum(strides[j]*(shape[j]-1) for j in range(ndim)\n"
553+
" if strides[j] > 0)\n"
554+
"\n"
555+
" return 0 <= offset+imin and offset+imax+itemsize <= memlen"
556+
msgstr ""
557+
522558
#: c-api/buffer.rst:408
523559
msgid "PIL-style: shape, strides and suboffsets"
524560
msgstr ""
@@ -541,6 +577,22 @@ msgid ""
541577
"strides and suboffsets::"
542578
msgstr ""
543579

580+
#: c-api/buffer.rst:423
581+
msgid ""
582+
"void *get_item_pointer(int ndim, void *buf, Py_ssize_t *strides,\n"
583+
" Py_ssize_t *suboffsets, Py_ssize_t *indices) {\n"
584+
" char *pointer = (char*)buf;\n"
585+
" int i;\n"
586+
" for (i = 0; i < ndim; i++) {\n"
587+
" pointer += strides[i] * indices[i];\n"
588+
" if (suboffsets[i] >=0 ) {\n"
589+
" pointer = *((char**)pointer) + suboffsets[i];\n"
590+
" }\n"
591+
" }\n"
592+
" return (void*)pointer;\n"
593+
"}"
594+
msgstr ""
595+
544596
#: c-api/buffer.rst:438
545597
msgid "Buffer-related functions"
546598
msgstr ""

c-api/bytearray.po

+15-13
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-09-01 00:21+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: \n"
1313
"Language-Team: TURKISH <[email protected]>\n"
@@ -57,44 +57,46 @@ msgid ""
5757
"`buffer protocol <bufferobjects>`."
5858
msgstr ""
5959

60-
#: c-api/bytearray.rst:48
61-
msgid ""
62-
"Create a new bytearray object from *string* and its length, *len*. On "
63-
"failure, ``NULL`` is returned."
60+
#: c-api/bytearray.rst:52 c-api/bytearray.rst:59
61+
msgid "On failure, return ``NULL`` with an exception set."
62+
msgstr ""
63+
64+
#: c-api/bytearray.rst:50
65+
msgid "Create a new bytearray object from *string* and its length, *len*."
6466
msgstr ""
6567

66-
#: c-api/bytearray.rst:54
68+
#: c-api/bytearray.rst:57
6769
msgid ""
6870
"Concat bytearrays *a* and *b* and return a new bytearray with the result."
6971
msgstr ""
7072

71-
#: c-api/bytearray.rst:59
73+
#: c-api/bytearray.rst:64
7274
msgid "Return the size of *bytearray* after checking for a ``NULL`` pointer."
7375
msgstr ""
7476

75-
#: c-api/bytearray.rst:64
77+
#: c-api/bytearray.rst:69
7678
msgid ""
7779
"Return the contents of *bytearray* as a char array after checking for a "
7880
"``NULL`` pointer. The returned array always has an extra null byte appended."
7981
msgstr ""
8082

81-
#: c-api/bytearray.rst:71
83+
#: c-api/bytearray.rst:76
8284
msgid "Resize the internal buffer of *bytearray* to *len*."
8385
msgstr ""
8486

85-
#: c-api/bytearray.rst:74
87+
#: c-api/bytearray.rst:79
8688
msgid "Macros"
8789
msgstr ""
8890

89-
#: c-api/bytearray.rst:76
91+
#: c-api/bytearray.rst:81
9092
msgid "These macros trade safety for speed and they don't check pointers."
9193
msgstr ""
9294

93-
#: c-api/bytearray.rst:80
95+
#: c-api/bytearray.rst:85
9496
msgid "Similar to :c:func:`PyByteArray_AsString`, but without error checking."
9597
msgstr ""
9698

97-
#: c-api/bytearray.rst:85
99+
#: c-api/bytearray.rst:90
98100
msgid "Similar to :c:func:`PyByteArray_Size`, but without error checking."
99101
msgstr ""
100102

c-api/call.po

+10-1
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: 2024-05-01 21:53+0000\n"
10+
"POT-Creation-Date: 2024-09-01 00:21+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: \n"
1313
"Language-Team: TURKISH <[email protected]>\n"
@@ -35,6 +35,11 @@ msgid ""
3535
"callable. The signature of the slot is::"
3636
msgstr ""
3737

38+
#: c-api/call.rst:17
39+
msgid ""
40+
"PyObject *tp_call(PyObject *callable, PyObject *args, PyObject *kwargs);"
41+
msgstr ""
42+
3843
#: c-api/call.rst:19
3944
msgid ""
4045
"A call is made using a tuple for the positional arguments and a dict for the "
@@ -215,6 +220,10 @@ msgid ""
215220
"Currently equivalent to::"
216221
msgstr ""
217222

223+
#: c-api/call.rst:153
224+
msgid "(Py_ssize_t)(nargsf & ~PY_VECTORCALL_ARGUMENTS_OFFSET)"
225+
msgstr ""
226+
218227
#: c-api/call.rst:155
219228
msgid ""
220229
"However, the function ``PyVectorcall_NARGS`` should be used to allow for "

c-api/capsule.po

+5-1
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-09-01 00:21+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: \n"
1313
"Language-Team: TURKISH <[email protected]>\n"
@@ -39,6 +39,10 @@ msgstr ""
3939
msgid "The type of a destructor callback for a capsule. Defined as::"
4040
msgstr ""
4141

42+
#: c-api/capsule.rst:29
43+
msgid "typedef void (*PyCapsule_Destructor)(PyObject *);"
44+
msgstr ""
45+
4246
#: c-api/capsule.rst:31
4347
msgid ""
4448
"See :c:func:`PyCapsule_New` for the semantics of PyCapsule_Destructor "

c-api/complex.po

+9-1
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: 2024-08-01 00:19+0000\n"
10+
"POT-Creation-Date: 2024-09-01 00:21+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: \n"
1313
"Language-Team: TURKISH <[email protected]>\n"
@@ -51,6 +51,14 @@ msgstr ""
5151
msgid "The structure is defined as::"
5252
msgstr ""
5353

54+
#: c-api/complex.rst:35
55+
msgid ""
56+
"typedef struct {\n"
57+
" double real;\n"
58+
" double imag;\n"
59+
"} Py_complex;"
60+
msgstr ""
61+
5462
#: c-api/complex.rst:43
5563
msgid ""
5664
"Return the sum of two complex numbers, using the C :c:type:`Py_complex` "

c-api/contextvars.po

+10-1
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: 2024-04-01 00:17+0000\n"
10+
"POT-Creation-Date: 2024-09-01 00:21+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: \n"
1313
"Language-Team: TURKISH <[email protected]>\n"
@@ -27,6 +27,15 @@ msgid ""
2727
"`PyContext`, :c:type:`PyContextVar`, and :c:type:`PyContextToken`, e.g.::"
2828
msgstr ""
2929

30+
#: c-api/contextvars.rst:20
31+
msgid ""
32+
"// in 3.7.0:\n"
33+
"PyContext *PyContext_New(void);\n"
34+
"\n"
35+
"// in 3.7.1+:\n"
36+
"PyObject *PyContext_New(void);"
37+
msgstr ""
38+
3039
#: c-api/contextvars.rst:26
3140
msgid "See :issue:`34762` for more details."
3241
msgstr ""

c-api/dict.po

+41-1
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 22:33+0300\n"
10+
"POT-Creation-Date: 2024-09-01 00:21+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: \n"
1313
"Language-Team: TURKISH <[email protected]>\n"
@@ -190,13 +190,45 @@ msgstr ""
190190
msgid "For example::"
191191
msgstr ""
192192

193+
#: c-api/dict.rst:181
194+
msgid ""
195+
"PyObject *key, *value;\n"
196+
"Py_ssize_t pos = 0;\n"
197+
"\n"
198+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
199+
" /* do something interesting with the values... */\n"
200+
" ...\n"
201+
"}"
202+
msgstr ""
203+
193204
#: c-api/dict.rst:189
194205
msgid ""
195206
"The dictionary *p* should not be mutated during iteration. It is safe to "
196207
"modify the values of the keys as you iterate over the dictionary, but only "
197208
"so long as the set of keys does not change. For example::"
198209
msgstr ""
199210

211+
#: c-api/dict.rst:193
212+
msgid ""
213+
"PyObject *key, *value;\n"
214+
"Py_ssize_t pos = 0;\n"
215+
"\n"
216+
"while (PyDict_Next(self->dict, &pos, &key, &value)) {\n"
217+
" long i = PyLong_AsLong(value);\n"
218+
" if (i == -1 && PyErr_Occurred()) {\n"
219+
" return -1;\n"
220+
" }\n"
221+
" PyObject *o = PyLong_FromLong(i + 1);\n"
222+
" if (o == NULL)\n"
223+
" return -1;\n"
224+
" if (PyDict_SetItem(self->dict, key, o) < 0) {\n"
225+
" Py_DECREF(o);\n"
226+
" return -1;\n"
227+
" }\n"
228+
" Py_DECREF(o);\n"
229+
"}"
230+
msgstr ""
231+
200232
#: c-api/dict.rst:214
201233
msgid ""
202234
"Iterate over mapping object *b* adding key-value pairs to dictionary *a*. "
@@ -225,6 +257,14 @@ msgid ""
225257
"if an exception was raised. Equivalent Python (except for the return value)::"
226258
msgstr ""
227259

260+
#: c-api/dict.rst:240
261+
msgid ""
262+
"def PyDict_MergeFromSeq2(a, seq2, override):\n"
263+
" for key, value in seq2:\n"
264+
" if override or key not in a:\n"
265+
" a[key] = value"
266+
msgstr ""
267+
228268
#: c-api/dict.rst:247
229269
msgid ""
230270
"Register *callback* as a dictionary watcher. Return a non-negative integer "

0 commit comments

Comments
 (0)