@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.13\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2025-03-14 14:17 +0000\n "
15+ "POT-Creation-Date : 2025-03-21 14:18 +0000\n "
1616"PO-Revision-Date : 2021-06-28 00:50+0000\n "
1717"Last-Translator : 石井明久, 2024\n "
1818"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -474,20 +474,22 @@ msgid ""
474474"If negative, the absolute value specifies how much space instances of the "
475475"class need *in addition* to the superclass. Use :c:func:"
476476"`PyObject_GetTypeData` to get a pointer to subclass-specific memory reserved "
477- "this way."
477+ "this way. For negative :c:member:`!basicsize`, Python will insert padding "
478+ "when needed to meet :c:member:`~PyTypeObject.tp_basicsize`'s alignment "
479+ "requirements."
478480msgstr ""
479481
480- #: ../../c-api/type.rst:418
482+ #: ../../c-api/type.rst:421
481483msgid "Previously, this field could not be negative."
482484msgstr ""
483485
484- #: ../../c-api/type.rst:422
486+ #: ../../c-api/type.rst:425
485487msgid ""
486488"Size of one element of a variable-size type, in bytes. Used to set :c:member:"
487489"`PyTypeObject.tp_itemsize`. See ``tp_itemsize`` documentation for caveats."
488490msgstr ""
489491
490- #: ../../c-api/type.rst:426
492+ #: ../../c-api/type.rst:429
491493msgid ""
492494"If zero, :c:member:`~PyTypeObject.tp_itemsize` is inherited. Extending "
493495"arbitrary variable-sized classes is dangerous, since some types use a fixed "
@@ -496,150 +498,150 @@ msgid ""
496498"only possible in the following situations:"
497499msgstr ""
498500
499- #: ../../c-api/type.rst:433
501+ #: ../../c-api/type.rst:436
500502msgid ""
501503"The base is not variable-sized (its :c:member:`~PyTypeObject.tp_itemsize`)."
502504msgstr ""
503505
504- #: ../../c-api/type.rst:435
506+ #: ../../c-api/type.rst:438
505507msgid ""
506508"The requested :c:member:`PyType_Spec.basicsize` is positive, suggesting that "
507509"the memory layout of the base class is known."
508510msgstr ""
509511
510- #: ../../c-api/type.rst:437
512+ #: ../../c-api/type.rst:440
511513msgid ""
512514"The requested :c:member:`PyType_Spec.basicsize` is zero, suggesting that the "
513515"subclass does not access the instance's memory directly."
514516msgstr ""
515517
516- #: ../../c-api/type.rst:440
518+ #: ../../c-api/type.rst:443
517519msgid "With the :c:macro:`Py_TPFLAGS_ITEMS_AT_END` flag."
518520msgstr ""
519521
520- #: ../../c-api/type.rst:444
522+ #: ../../c-api/type.rst:447
521523msgid "Type flags, used to set :c:member:`PyTypeObject.tp_flags`."
522524msgstr ""
523525
524- #: ../../c-api/type.rst:446
526+ #: ../../c-api/type.rst:449
525527msgid ""
526528"If the ``Py_TPFLAGS_HEAPTYPE`` flag is not set, :c:func:"
527529"`PyType_FromSpecWithBases` sets it automatically."
528530msgstr ""
529531
530- #: ../../c-api/type.rst:451
532+ #: ../../c-api/type.rst:454
531533msgid ""
532534"Array of :c:type:`PyType_Slot` structures. Terminated by the special slot "
533535"value ``{0, NULL}``."
534536msgstr ""
535537
536- #: ../../c-api/type.rst:454
538+ #: ../../c-api/type.rst:457
537539msgid "Each slot ID should be specified at most once."
538540msgstr ""
539541
540- #: ../../c-api/type.rst:464
542+ #: ../../c-api/type.rst:467
541543msgid ""
542544"Structure defining optional functionality of a type, containing a slot ID "
543545"and a value pointer."
544546msgstr ""
545547
546- #: ../../c-api/type.rst:469
548+ #: ../../c-api/type.rst:472
547549msgid "A slot ID."
548550msgstr ""
549551
550- #: ../../c-api/type.rst:471
552+ #: ../../c-api/type.rst:474
551553msgid ""
552554"Slot IDs are named like the field names of the structures :c:type:"
553555"`PyTypeObject`, :c:type:`PyNumberMethods`, :c:type:`PySequenceMethods`, :c:"
554556"type:`PyMappingMethods` and :c:type:`PyAsyncMethods` with an added ``Py_`` "
555557"prefix. For example, use:"
556558msgstr ""
557559
558- #: ../../c-api/type.rst:477
560+ #: ../../c-api/type.rst:480
559561msgid "``Py_tp_dealloc`` to set :c:member:`PyTypeObject.tp_dealloc`"
560562msgstr ""
561563
562- #: ../../c-api/type.rst:478
564+ #: ../../c-api/type.rst:481
563565msgid "``Py_nb_add`` to set :c:member:`PyNumberMethods.nb_add`"
564566msgstr ""
565567
566- #: ../../c-api/type.rst:479
568+ #: ../../c-api/type.rst:482
567569msgid "``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`"
568570msgstr ""
569571
570- #: ../../c-api/type.rst:481
572+ #: ../../c-api/type.rst:484
571573msgid ""
572574"The following “offset” fields cannot be set using :c:type:`PyType_Slot`:"
573575msgstr ""
574576
575- #: ../../c-api/type.rst:483
577+ #: ../../c-api/type.rst:486
576578msgid ""
577579":c:member:`~PyTypeObject.tp_weaklistoffset` (use :c:macro:"
578580"`Py_TPFLAGS_MANAGED_WEAKREF` instead if possible)"
579581msgstr ""
580582
581- #: ../../c-api/type.rst:485
583+ #: ../../c-api/type.rst:488
582584msgid ""
583585":c:member:`~PyTypeObject.tp_dictoffset` (use :c:macro:"
584586"`Py_TPFLAGS_MANAGED_DICT` instead if possible)"
585587msgstr ""
586588
587- #: ../../c-api/type.rst:487
589+ #: ../../c-api/type.rst:490
588590msgid ""
589591":c:member:`~PyTypeObject.tp_vectorcall_offset` (use "
590592"``\" __vectorcalloffset__\" `` in :ref:`PyMemberDef <pymemberdef-offsets>`)"
591593msgstr ""
592594
593- #: ../../c-api/type.rst:491
595+ #: ../../c-api/type.rst:494
594596msgid ""
595597"If it is not possible to switch to a ``MANAGED`` flag (for example, for "
596598"vectorcall or to support Python older than 3.12), specify the offset in :c:"
597599"member:`Py_tp_members <PyTypeObject.tp_members>`. See :ref:`PyMemberDef "
598600"documentation <pymemberdef-offsets>` for details."
599601msgstr ""
600602
601- #: ../../c-api/type.rst:497
603+ #: ../../c-api/type.rst:500
602604msgid "The following fields cannot be set at all when creating a heap type:"
603605msgstr ""
604606
605- #: ../../c-api/type.rst:499
607+ #: ../../c-api/type.rst:502
606608msgid ""
607609":c:member:`~PyTypeObject.tp_vectorcall` (use :c:member:`~PyTypeObject."
608610"tp_new` and/or :c:member:`~PyTypeObject.tp_init`)"
609611msgstr ""
610612
611- #: ../../c-api/type.rst:503
613+ #: ../../c-api/type.rst:506
612614msgid ""
613615"Internal fields: :c:member:`~PyTypeObject.tp_dict`, :c:member:`~PyTypeObject."
614616"tp_mro`, :c:member:`~PyTypeObject.tp_cache`, :c:member:`~PyTypeObject."
615617"tp_subclasses`, and :c:member:`~PyTypeObject.tp_weaklist`."
616618msgstr ""
617619
618- #: ../../c-api/type.rst:510
620+ #: ../../c-api/type.rst:513
619621msgid ""
620622"Setting :c:data:`Py_tp_bases` or :c:data:`Py_tp_base` may be problematic on "
621623"some platforms. To avoid issues, use the *bases* argument of :c:func:"
622624"`PyType_FromSpecWithBases` instead."
623625msgstr ""
624626
625- #: ../../c-api/type.rst:515
627+ #: ../../c-api/type.rst:518
626628msgid "Slots in :c:type:`PyBufferProcs` may be set in the unlimited API."
627629msgstr ""
628630
629- #: ../../c-api/type.rst:518
631+ #: ../../c-api/type.rst:521
630632msgid ""
631633":c:member:`~PyBufferProcs.bf_getbuffer` and :c:member:`~PyBufferProcs."
632634"bf_releasebuffer` are now available under the :ref:`limited API <limited-c-"
633635"api>`."
634636msgstr ""
635637
636- #: ../../c-api/type.rst:525
638+ #: ../../c-api/type.rst:528
637639msgid ""
638640"The desired value of the slot. In most cases, this is a pointer to a "
639641"function."
640642msgstr ""
641643
642- #: ../../c-api/type.rst:528
644+ #: ../../c-api/type.rst:531
643645msgid "Slots other than ``Py_tp_doc`` may not be ``NULL``."
644646msgstr ""
645647
0 commit comments