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