@@ -12,7 +12,7 @@ msgid ""
12
12
msgstr ""
13
13
"Project-Id-Version : Python 3.13\n "
14
14
"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 "
16
16
"PO-Revision-Date : 2021-06-28 00:50+0000\n "
17
17
"Last-Translator : 石井明久, 2024\n "
18
18
"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -474,20 +474,22 @@ msgid ""
474
474
"If negative, the absolute value specifies how much space instances of the "
475
475
"class need *in addition* to the superclass. Use :c:func:"
476
476
"`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."
478
480
msgstr ""
479
481
480
- #: ../../c-api/type.rst:418
482
+ #: ../../c-api/type.rst:421
481
483
msgid "Previously, this field could not be negative."
482
484
msgstr ""
483
485
484
- #: ../../c-api/type.rst:422
486
+ #: ../../c-api/type.rst:425
485
487
msgid ""
486
488
"Size of one element of a variable-size type, in bytes. Used to set :c:member:"
487
489
"`PyTypeObject.tp_itemsize`. See ``tp_itemsize`` documentation for caveats."
488
490
msgstr ""
489
491
490
- #: ../../c-api/type.rst:426
492
+ #: ../../c-api/type.rst:429
491
493
msgid ""
492
494
"If zero, :c:member:`~PyTypeObject.tp_itemsize` is inherited. Extending "
493
495
"arbitrary variable-sized classes is dangerous, since some types use a fixed "
@@ -496,150 +498,150 @@ msgid ""
496
498
"only possible in the following situations:"
497
499
msgstr ""
498
500
499
- #: ../../c-api/type.rst:433
501
+ #: ../../c-api/type.rst:436
500
502
msgid ""
501
503
"The base is not variable-sized (its :c:member:`~PyTypeObject.tp_itemsize`)."
502
504
msgstr ""
503
505
504
- #: ../../c-api/type.rst:435
506
+ #: ../../c-api/type.rst:438
505
507
msgid ""
506
508
"The requested :c:member:`PyType_Spec.basicsize` is positive, suggesting that "
507
509
"the memory layout of the base class is known."
508
510
msgstr ""
509
511
510
- #: ../../c-api/type.rst:437
512
+ #: ../../c-api/type.rst:440
511
513
msgid ""
512
514
"The requested :c:member:`PyType_Spec.basicsize` is zero, suggesting that the "
513
515
"subclass does not access the instance's memory directly."
514
516
msgstr ""
515
517
516
- #: ../../c-api/type.rst:440
518
+ #: ../../c-api/type.rst:443
517
519
msgid "With the :c:macro:`Py_TPFLAGS_ITEMS_AT_END` flag."
518
520
msgstr ""
519
521
520
- #: ../../c-api/type.rst:444
522
+ #: ../../c-api/type.rst:447
521
523
msgid "Type flags, used to set :c:member:`PyTypeObject.tp_flags`."
522
524
msgstr ""
523
525
524
- #: ../../c-api/type.rst:446
526
+ #: ../../c-api/type.rst:449
525
527
msgid ""
526
528
"If the ``Py_TPFLAGS_HEAPTYPE`` flag is not set, :c:func:"
527
529
"`PyType_FromSpecWithBases` sets it automatically."
528
530
msgstr ""
529
531
530
- #: ../../c-api/type.rst:451
532
+ #: ../../c-api/type.rst:454
531
533
msgid ""
532
534
"Array of :c:type:`PyType_Slot` structures. Terminated by the special slot "
533
535
"value ``{0, NULL}``."
534
536
msgstr ""
535
537
536
- #: ../../c-api/type.rst:454
538
+ #: ../../c-api/type.rst:457
537
539
msgid "Each slot ID should be specified at most once."
538
540
msgstr ""
539
541
540
- #: ../../c-api/type.rst:464
542
+ #: ../../c-api/type.rst:467
541
543
msgid ""
542
544
"Structure defining optional functionality of a type, containing a slot ID "
543
545
"and a value pointer."
544
546
msgstr ""
545
547
546
- #: ../../c-api/type.rst:469
548
+ #: ../../c-api/type.rst:472
547
549
msgid "A slot ID."
548
550
msgstr ""
549
551
550
- #: ../../c-api/type.rst:471
552
+ #: ../../c-api/type.rst:474
551
553
msgid ""
552
554
"Slot IDs are named like the field names of the structures :c:type:"
553
555
"`PyTypeObject`, :c:type:`PyNumberMethods`, :c:type:`PySequenceMethods`, :c:"
554
556
"type:`PyMappingMethods` and :c:type:`PyAsyncMethods` with an added ``Py_`` "
555
557
"prefix. For example, use:"
556
558
msgstr ""
557
559
558
- #: ../../c-api/type.rst:477
560
+ #: ../../c-api/type.rst:480
559
561
msgid "``Py_tp_dealloc`` to set :c:member:`PyTypeObject.tp_dealloc`"
560
562
msgstr ""
561
563
562
- #: ../../c-api/type.rst:478
564
+ #: ../../c-api/type.rst:481
563
565
msgid "``Py_nb_add`` to set :c:member:`PyNumberMethods.nb_add`"
564
566
msgstr ""
565
567
566
- #: ../../c-api/type.rst:479
568
+ #: ../../c-api/type.rst:482
567
569
msgid "``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`"
568
570
msgstr ""
569
571
570
- #: ../../c-api/type.rst:481
572
+ #: ../../c-api/type.rst:484
571
573
msgid ""
572
574
"The following “offset” fields cannot be set using :c:type:`PyType_Slot`:"
573
575
msgstr ""
574
576
575
- #: ../../c-api/type.rst:483
577
+ #: ../../c-api/type.rst:486
576
578
msgid ""
577
579
":c:member:`~PyTypeObject.tp_weaklistoffset` (use :c:macro:"
578
580
"`Py_TPFLAGS_MANAGED_WEAKREF` instead if possible)"
579
581
msgstr ""
580
582
581
- #: ../../c-api/type.rst:485
583
+ #: ../../c-api/type.rst:488
582
584
msgid ""
583
585
":c:member:`~PyTypeObject.tp_dictoffset` (use :c:macro:"
584
586
"`Py_TPFLAGS_MANAGED_DICT` instead if possible)"
585
587
msgstr ""
586
588
587
- #: ../../c-api/type.rst:487
589
+ #: ../../c-api/type.rst:490
588
590
msgid ""
589
591
":c:member:`~PyTypeObject.tp_vectorcall_offset` (use "
590
592
"``\" __vectorcalloffset__\" `` in :ref:`PyMemberDef <pymemberdef-offsets>`)"
591
593
msgstr ""
592
594
593
- #: ../../c-api/type.rst:491
595
+ #: ../../c-api/type.rst:494
594
596
msgid ""
595
597
"If it is not possible to switch to a ``MANAGED`` flag (for example, for "
596
598
"vectorcall or to support Python older than 3.12), specify the offset in :c:"
597
599
"member:`Py_tp_members <PyTypeObject.tp_members>`. See :ref:`PyMemberDef "
598
600
"documentation <pymemberdef-offsets>` for details."
599
601
msgstr ""
600
602
601
- #: ../../c-api/type.rst:497
603
+ #: ../../c-api/type.rst:500
602
604
msgid "The following fields cannot be set at all when creating a heap type:"
603
605
msgstr ""
604
606
605
- #: ../../c-api/type.rst:499
607
+ #: ../../c-api/type.rst:502
606
608
msgid ""
607
609
":c:member:`~PyTypeObject.tp_vectorcall` (use :c:member:`~PyTypeObject."
608
610
"tp_new` and/or :c:member:`~PyTypeObject.tp_init`)"
609
611
msgstr ""
610
612
611
- #: ../../c-api/type.rst:503
613
+ #: ../../c-api/type.rst:506
612
614
msgid ""
613
615
"Internal fields: :c:member:`~PyTypeObject.tp_dict`, :c:member:`~PyTypeObject."
614
616
"tp_mro`, :c:member:`~PyTypeObject.tp_cache`, :c:member:`~PyTypeObject."
615
617
"tp_subclasses`, and :c:member:`~PyTypeObject.tp_weaklist`."
616
618
msgstr ""
617
619
618
- #: ../../c-api/type.rst:510
620
+ #: ../../c-api/type.rst:513
619
621
msgid ""
620
622
"Setting :c:data:`Py_tp_bases` or :c:data:`Py_tp_base` may be problematic on "
621
623
"some platforms. To avoid issues, use the *bases* argument of :c:func:"
622
624
"`PyType_FromSpecWithBases` instead."
623
625
msgstr ""
624
626
625
- #: ../../c-api/type.rst:515
627
+ #: ../../c-api/type.rst:518
626
628
msgid "Slots in :c:type:`PyBufferProcs` may be set in the unlimited API."
627
629
msgstr ""
628
630
629
- #: ../../c-api/type.rst:518
631
+ #: ../../c-api/type.rst:521
630
632
msgid ""
631
633
":c:member:`~PyBufferProcs.bf_getbuffer` and :c:member:`~PyBufferProcs."
632
634
"bf_releasebuffer` are now available under the :ref:`limited API <limited-c-"
633
635
"api>`."
634
636
msgstr ""
635
637
636
- #: ../../c-api/type.rst:525
638
+ #: ../../c-api/type.rst:528
637
639
msgid ""
638
640
"The desired value of the slot. In most cases, this is a pointer to a "
639
641
"function."
640
642
msgstr ""
641
643
642
- #: ../../c-api/type.rst:528
644
+ #: ../../c-api/type.rst:531
643
645
msgid "Slots other than ``Py_tp_doc`` may not be ``NULL``."
644
646
msgstr ""
645
647
0 commit comments