@@ -14,7 +14,7 @@ msgid ""
1414msgstr ""
1515"Project-Id-Version : Python 3.13\n "
1616"Report-Msgid-Bugs-To : \n "
17- "POT-Creation-Date : 2024-06-20 06:40 +0000\n "
17+ "POT-Creation-Date : 2024-07-05 14:16 +0000\n "
1818"PO-Revision-Date : 2021-06-28 00:49+0000\n "
1919"Last-Translator : tomo, 2024\n "
2020"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -504,70 +504,70 @@ msgstr ""
504504msgid ""
505505"Passing zero to *n_bytes* will return the size of a buffer that would be "
506506"large enough to hold the value. This may be larger than technically "
507- "necessary, but not unreasonably so."
507+ "necessary, but not unreasonably so. If *n_bytes=0*, *buffer* may be ``NULL``. "
508508msgstr ""
509509
510- #: ../../c-api/long.rst:412
510+ #: ../../c-api/long.rst:413
511511msgid ""
512512"Passing *n_bytes=0* to this function is not an accurate way to determine the "
513- "bit length of a value."
513+ "bit length of the value."
514514msgstr ""
515515
516- #: ../../c-api/long.rst:415
517- msgid "If *n_bytes=0*, *buffer* may be ``NULL``."
518- msgstr ""
519-
520- #: ../../c-api/long.rst:417
516+ #: ../../c-api/long.rst:416
521517msgid ""
522518"To get at the entire Python value of an unknown size, the function can be "
523519"called twice: first to determine the buffer size, then to fill it::"
524520msgstr ""
525521
526- #: ../../c-api/long.rst:448
522+ #: ../../c-api/long.rst:447
527523msgid ""
528524"*flags* is either ``-1`` (``Py_ASNATIVEBYTES_DEFAULTS``) to select defaults "
529525"that behave most like a C cast, or a combintation of the other flags in the "
530526"table below. Note that ``-1`` cannot be combined with other flags."
531527msgstr ""
532528
533- #: ../../c-api/long.rst:453
529+ #: ../../c-api/long.rst:452
534530msgid ""
535531"Currently, ``-1`` corresponds to ``Py_ASNATIVEBYTES_NATIVE_ENDIAN | "
536532"Py_ASNATIVEBYTES_UNSIGNED_BUFFER``."
537533msgstr ""
538534
539- #: ../../c-api/long.rst:457
535+ #: ../../c-api/long.rst:456
540536msgid "Flag"
541537msgstr "Flag"
542538
543- #: ../../c-api/long.rst:457
539+ #: ../../c-api/long.rst:456
544540msgid "Value"
545541msgstr "値"
546542
547- #: ../../c-api/long.rst:459
543+ #: ../../c-api/long.rst:458
548544msgid "``-1``"
549545msgstr ""
550546
551- #: ../../c-api/long.rst:460
547+ #: ../../c-api/long.rst:459
552548msgid "``0``"
553549msgstr "``0``"
554550
555- #: ../../c-api/long.rst:461
551+ #: ../../c-api/long.rst:460
556552msgid "``1``"
557553msgstr "``1``"
558554
559- #: ../../c-api/long.rst:462
555+ #: ../../c-api/long.rst:461
560556msgid "``3``"
561557msgstr "``3``"
562558
563- #: ../../c-api/long.rst:463
559+ #: ../../c-api/long.rst:462
564560msgid "``4``"
565561msgstr "``4``"
566562
567- #: ../../c-api/long.rst:464
563+ #: ../../c-api/long.rst:463
568564msgid "``8``"
569565msgstr "``8``"
570566
567+ #: ../../c-api/long.rst:464
568+ msgid "``16``"
569+ msgstr ""
570+
571571#: ../../c-api/long.rst:467
572572msgid ""
573573"Specifying ``Py_ASNATIVEBYTES_NATIVE_ENDIAN`` will override any other endian "
@@ -599,43 +599,53 @@ msgid ""
599599"of whether ``Py_ASNATIVEBYTES_UNSIGNED_BUFFER`` was specified."
600600msgstr ""
601601
602- #: ../../c-api/long.rst:488
602+ #: ../../c-api/long.rst:486
603+ msgid ""
604+ "If ``Py_ASNATIVEBYTES_ALLOW_INDEX`` is specified and a non-integer value is "
605+ "passed, its :meth:`~object.__index__` method will be called first. This may "
606+ "result in Python code executing and other threads being allowed to run, "
607+ "which could cause changes to other objects or values in use. When *flags* is "
608+ "``-1``, this option is not set, and non-integer values will raise :exc:"
609+ "`TypeError`."
610+ msgstr ""
611+
612+ #: ../../c-api/long.rst:495
603613msgid ""
604614"With the default *flags* (``-1``, or *UNSIGNED_BUFFER* without "
605615"*REJECT_NEGATIVE*), multiple Python integers can map to a single value "
606616"without overflow. For example, both ``255`` and ``-1`` fit a single-byte "
607617"buffer and set all its bits. This matches typical C cast behavior."
608618msgstr ""
609619
610- #: ../../c-api/long.rst:499
620+ #: ../../c-api/long.rst:506
611621msgid "Return 1 if *op* is compact, 0 otherwise."
612622msgstr ""
613623
614- #: ../../c-api/long.rst:501
624+ #: ../../c-api/long.rst:508
615625msgid ""
616626"This function makes it possible for performance-critical code to implement a "
617627"“fast path” for small integers. For compact values use :c:func:"
618628"`PyUnstable_Long_CompactValue`; for others fall back to a :c:func:"
619629"`PyLong_As* <PyLong_AsSize_t>` function or :c:func:`PyLong_AsNativeBytes`."
620630msgstr ""
621631
622- #: ../../c-api/long.rst:507
632+ #: ../../c-api/long.rst:514
623633msgid "The speedup is expected to be negligible for most users."
624634msgstr ""
625635
626- #: ../../c-api/long.rst:509
636+ #: ../../c-api/long.rst:516
627637msgid ""
628638"Exactly what values are considered compact is an implementation detail and "
629639"is subject to change."
630640msgstr ""
631641
632- #: ../../c-api/long.rst:514
642+ #: ../../c-api/long.rst:521
633643msgid ""
634644"If *op* is compact, as determined by :c:func:`PyUnstable_Long_IsCompact`, "
635645"return its value."
636646msgstr ""
637647
638- #: ../../c-api/long.rst:517
648+ #: ../../c-api/long.rst:524
639649msgid "Otherwise, the return value is undefined."
640650msgstr ""
641651
0 commit comments