@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.13\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2025-03-07 14:18+0000\n "
14+ "POT-Creation-Date : 2025-03-21 14:18+0000\n "
1515"PO-Revision-Date : 2021-06-28 00:50+0000\n "
1616"Last-Translator : Alireza Shabani (Revisto) <theRevisto@gmail.com>, 2025\n "
1717"Language-Team : Persian (https://app.transifex.com/python-doc/teams/5390/ "
@@ -455,20 +455,22 @@ msgid ""
455455"If negative, the absolute value specifies how much space instances of the "
456456"class need *in addition* to the superclass. Use :c:func:"
457457"`PyObject_GetTypeData` to get a pointer to subclass-specific memory reserved "
458- "this way."
458+ "this way. For negative :c:member:`!basicsize`, Python will insert padding "
459+ "when needed to meet :c:member:`~PyTypeObject.tp_basicsize`'s alignment "
460+ "requirements."
459461msgstr ""
460462
461- #: ../../c-api/type.rst:418
463+ #: ../../c-api/type.rst:421
462464msgid "Previously, this field could not be negative."
463465msgstr ""
464466
465- #: ../../c-api/type.rst:422
467+ #: ../../c-api/type.rst:425
466468msgid ""
467469"Size of one element of a variable-size type, in bytes. Used to set :c:member:"
468470"`PyTypeObject.tp_itemsize`. See ``tp_itemsize`` documentation for caveats."
469471msgstr ""
470472
471- #: ../../c-api/type.rst:426
473+ #: ../../c-api/type.rst:429
472474msgid ""
473475"If zero, :c:member:`~PyTypeObject.tp_itemsize` is inherited. Extending "
474476"arbitrary variable-sized classes is dangerous, since some types use a fixed "
@@ -477,150 +479,150 @@ msgid ""
477479"only possible in the following situations:"
478480msgstr ""
479481
480- #: ../../c-api/type.rst:433
482+ #: ../../c-api/type.rst:436
481483msgid ""
482484"The base is not variable-sized (its :c:member:`~PyTypeObject.tp_itemsize`)."
483485msgstr ""
484486
485- #: ../../c-api/type.rst:435
487+ #: ../../c-api/type.rst:438
486488msgid ""
487489"The requested :c:member:`PyType_Spec.basicsize` is positive, suggesting that "
488490"the memory layout of the base class is known."
489491msgstr ""
490492
491- #: ../../c-api/type.rst:437
493+ #: ../../c-api/type.rst:440
492494msgid ""
493495"The requested :c:member:`PyType_Spec.basicsize` is zero, suggesting that the "
494496"subclass does not access the instance's memory directly."
495497msgstr ""
496498
497- #: ../../c-api/type.rst:440
499+ #: ../../c-api/type.rst:443
498500msgid "With the :c:macro:`Py_TPFLAGS_ITEMS_AT_END` flag."
499501msgstr ""
500502
501- #: ../../c-api/type.rst:444
503+ #: ../../c-api/type.rst:447
502504msgid "Type flags, used to set :c:member:`PyTypeObject.tp_flags`."
503505msgstr ""
504506
505- #: ../../c-api/type.rst:446
507+ #: ../../c-api/type.rst:449
506508msgid ""
507509"If the ``Py_TPFLAGS_HEAPTYPE`` flag is not set, :c:func:"
508510"`PyType_FromSpecWithBases` sets it automatically."
509511msgstr ""
510512
511- #: ../../c-api/type.rst:451
513+ #: ../../c-api/type.rst:454
512514msgid ""
513515"Array of :c:type:`PyType_Slot` structures. Terminated by the special slot "
514516"value ``{0, NULL}``."
515517msgstr ""
516518
517- #: ../../c-api/type.rst:454
519+ #: ../../c-api/type.rst:457
518520msgid "Each slot ID should be specified at most once."
519521msgstr ""
520522
521- #: ../../c-api/type.rst:464
523+ #: ../../c-api/type.rst:467
522524msgid ""
523525"Structure defining optional functionality of a type, containing a slot ID "
524526"and a value pointer."
525527msgstr ""
526528
527- #: ../../c-api/type.rst:469
529+ #: ../../c-api/type.rst:472
528530msgid "A slot ID."
529531msgstr ""
530532
531- #: ../../c-api/type.rst:471
533+ #: ../../c-api/type.rst:474
532534msgid ""
533535"Slot IDs are named like the field names of the structures :c:type:"
534536"`PyTypeObject`, :c:type:`PyNumberMethods`, :c:type:`PySequenceMethods`, :c:"
535537"type:`PyMappingMethods` and :c:type:`PyAsyncMethods` with an added ``Py_`` "
536538"prefix. For example, use:"
537539msgstr ""
538540
539- #: ../../c-api/type.rst:477
541+ #: ../../c-api/type.rst:480
540542msgid "``Py_tp_dealloc`` to set :c:member:`PyTypeObject.tp_dealloc`"
541543msgstr ""
542544
543- #: ../../c-api/type.rst:478
545+ #: ../../c-api/type.rst:481
544546msgid "``Py_nb_add`` to set :c:member:`PyNumberMethods.nb_add`"
545547msgstr ""
546548
547- #: ../../c-api/type.rst:479
549+ #: ../../c-api/type.rst:482
548550msgid "``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`"
549551msgstr ""
550552
551- #: ../../c-api/type.rst:481
553+ #: ../../c-api/type.rst:484
552554msgid ""
553555"The following “offset” fields cannot be set using :c:type:`PyType_Slot`:"
554556msgstr ""
555557
556- #: ../../c-api/type.rst:483
558+ #: ../../c-api/type.rst:486
557559msgid ""
558560":c:member:`~PyTypeObject.tp_weaklistoffset` (use :c:macro:"
559561"`Py_TPFLAGS_MANAGED_WEAKREF` instead if possible)"
560562msgstr ""
561563
562- #: ../../c-api/type.rst:485
564+ #: ../../c-api/type.rst:488
563565msgid ""
564566":c:member:`~PyTypeObject.tp_dictoffset` (use :c:macro:"
565567"`Py_TPFLAGS_MANAGED_DICT` instead if possible)"
566568msgstr ""
567569
568- #: ../../c-api/type.rst:487
570+ #: ../../c-api/type.rst:490
569571msgid ""
570572":c:member:`~PyTypeObject.tp_vectorcall_offset` (use "
571573"``\" __vectorcalloffset__\" `` in :ref:`PyMemberDef <pymemberdef-offsets>`)"
572574msgstr ""
573575
574- #: ../../c-api/type.rst:491
576+ #: ../../c-api/type.rst:494
575577msgid ""
576578"If it is not possible to switch to a ``MANAGED`` flag (for example, for "
577579"vectorcall or to support Python older than 3.12), specify the offset in :c:"
578580"member:`Py_tp_members <PyTypeObject.tp_members>`. See :ref:`PyMemberDef "
579581"documentation <pymemberdef-offsets>` for details."
580582msgstr ""
581583
582- #: ../../c-api/type.rst:497
584+ #: ../../c-api/type.rst:500
583585msgid "The following fields cannot be set at all when creating a heap type:"
584586msgstr ""
585587
586- #: ../../c-api/type.rst:499
588+ #: ../../c-api/type.rst:502
587589msgid ""
588590":c:member:`~PyTypeObject.tp_vectorcall` (use :c:member:`~PyTypeObject."
589591"tp_new` and/or :c:member:`~PyTypeObject.tp_init`)"
590592msgstr ""
591593
592- #: ../../c-api/type.rst:503
594+ #: ../../c-api/type.rst:506
593595msgid ""
594596"Internal fields: :c:member:`~PyTypeObject.tp_dict`, :c:member:`~PyTypeObject."
595597"tp_mro`, :c:member:`~PyTypeObject.tp_cache`, :c:member:`~PyTypeObject."
596598"tp_subclasses`, and :c:member:`~PyTypeObject.tp_weaklist`."
597599msgstr ""
598600
599- #: ../../c-api/type.rst:510
601+ #: ../../c-api/type.rst:513
600602msgid ""
601603"Setting :c:data:`Py_tp_bases` or :c:data:`Py_tp_base` may be problematic on "
602604"some platforms. To avoid issues, use the *bases* argument of :c:func:"
603605"`PyType_FromSpecWithBases` instead."
604606msgstr ""
605607
606- #: ../../c-api/type.rst:515
608+ #: ../../c-api/type.rst:518
607609msgid "Slots in :c:type:`PyBufferProcs` may be set in the unlimited API."
608610msgstr ""
609611
610- #: ../../c-api/type.rst:518
612+ #: ../../c-api/type.rst:521
611613msgid ""
612614":c:member:`~PyBufferProcs.bf_getbuffer` and :c:member:`~PyBufferProcs."
613615"bf_releasebuffer` are now available under the :ref:`limited API <limited-c-"
614616"api>`."
615617msgstr ""
616618
617- #: ../../c-api/type.rst:525
619+ #: ../../c-api/type.rst:528
618620msgid ""
619621"The desired value of the slot. In most cases, this is a pointer to a "
620622"function."
621623msgstr ""
622624
623- #: ../../c-api/type.rst:528
625+ #: ../../c-api/type.rst:531
624626msgid "Slots other than ``Py_tp_doc`` may not be ``NULL``."
625627msgstr ""
626628
0 commit comments