@@ -19,7 +19,7 @@ msgid ""
19
19
msgstr ""
20
20
"Project-Id-Version : Python 3.7\n "
21
21
"Report-Msgid-Bugs-To : \n "
22
- "POT-Creation-Date : 2019-01-01 10:14+0900 \n "
22
+ "POT-Creation-Date : 2019-07-18 02:57+0000 \n "
23
23
"PO-Revision-Date : 2017-02-16 17:33+0000\n "
24
24
"Last-Translator : tomo, 2018\n "
25
25
"Language-Team : Japanese (https://www.transifex.com/python-doc/teams/5390/ja/)\n "
@@ -656,15 +656,7 @@ msgstr ""
656
656
":c:member:`~Py_buffer.strides` が *NULL* の場合は、配列は標準の n 次元 C 配列として解釈されます。\n"
657
657
"そうでない場合は、利用者は次のように n 次元配列にアクセスしなければなりません:"
658
658
659
- #: ../../c-api/buffer.rst:358
660
- msgid ""
661
- "``ptr = (char *)buf + indices[0] * strides[0] + ... + indices[n-1] * "
662
- "strides[n-1]`` ``item = *((typeof(item) *)ptr);``"
663
- msgstr ""
664
- "``ptr = (char *)buf + indices[0] * strides[0] + ... + indices[n-1] * "
665
- "strides[n-1]`` ``item = *((typeof(item) *)ptr);``"
666
-
667
- #: ../../c-api/buffer.rst:362
659
+ #: ../../c-api/buffer.rst:364
668
660
msgid ""
669
661
"As noted above, :c:member:`~Py_buffer.buf` can point to any location within "
670
662
"the actual memory block. An exporter can check the validity of a buffer with"
@@ -673,11 +665,11 @@ msgstr ""
673
665
"上記のように、 :c:member:`~Py_buffer.buf` "
674
666
"はメモリブロック内のどの場所でも指すことが可能です。エクスポーターはこの関数を使用することによってバッファの妥当性を確認出来ます。"
675
667
676
- #: ../../c-api/buffer.rst:396
668
+ #: ../../c-api/buffer.rst:398
677
669
msgid "PIL-style: shape, strides and suboffsets"
678
670
msgstr "PIL スタイル: shape, strides, suboffsets"
679
671
680
- #: ../../c-api/buffer.rst:398
672
+ #: ../../c-api/buffer.rst:400
681
673
msgid ""
682
674
"In addition to the regular items, PIL-style arrays can contain pointers that"
683
675
" must be followed in order to get to the next element in a dimension. For "
@@ -691,7 +683,7 @@ msgstr ""
691
683
"例えば、通常の3次元 C 配列 ``char v[2][2][3]`` は、2次元配列への 2 つのポインタからなる配列 ``char (*v[2])[2][3]`` と見ることもできます。\n"
692
684
"suboffset 表現では、これらの 2 つのポインタは :c:member:`~Py_buffer.buf` の先頭に埋め込め、メモリのどこにでも配置できる 2 つの ``char x[2][3]`` 配列を指します。"
693
685
694
- #: ../../c-api/buffer.rst:407
686
+ #: ../../c-api/buffer.rst:409
695
687
msgid ""
696
688
"Here is a function that returns a pointer to the element in an N-D array "
697
689
"pointed to by an N-dimensional index when there are both non-NULL strides "
@@ -700,11 +692,11 @@ msgstr ""
700
692
"次の例は、 strides も suboffsets も NULL でない場合の、N 次元インデックスによって指されている N "
701
693
"次元配列内の要素へのポインタを返す関数です。 ::"
702
694
703
- #: ../../c-api/buffer.rst:426
695
+ #: ../../c-api/buffer.rst:428
704
696
msgid "Buffer-related functions"
705
697
msgstr "バッファ関連の関数"
706
698
707
- #: ../../c-api/buffer.rst:430
699
+ #: ../../c-api/buffer.rst:432
708
700
msgid ""
709
701
"Return ``1`` if *obj* supports the buffer interface otherwise ``0``. When "
710
702
"``1`` is returned, it doesn't guarantee that :c:func:`PyObject_GetBuffer` "
@@ -714,7 +706,7 @@ msgstr ""
714
706
"``1`` を返したとしても、 :c:func:`PyObject_GetBuffer` が成功することは保証されません。\n"
715
707
"この関数は常に成功します。"
716
708
717
- #: ../../c-api/buffer.rst:437
709
+ #: ../../c-api/buffer.rst:439
718
710
msgid ""
719
711
"Send a request to *exporter* to fill in *view* as specified by *flags*. If "
720
712
"the exporter cannot provide a buffer of the exact type, it MUST raise "
@@ -724,7 +716,7 @@ msgstr ""
724
716
"*exporter* に *flags* で指定された方法で *view* を埋めるように要求します。\n"
725
717
"もし exporter が指定されたとおりにバッファを提供できない場合、 :c:data:`PyExc_BufferError` を送出し、 :c:member:`view->obj` を *NULL* に設定した上で、 ``-1`` を返さなければなりません。"
726
718
727
- #: ../../c-api/buffer.rst:442
719
+ #: ../../c-api/buffer.rst:444
728
720
msgid ""
729
721
"On success, fill in *view*, set :c:member:`view->obj` to a new reference to "
730
722
"*exporter* and return 0. In the case of chained buffer providers that "
@@ -737,7 +729,7 @@ msgstr ""
737
729
":c:member:`view->obj` は *exporter* の代わりにこのオブジェクトを参照します (:ref:`バッファオブジェクト構造体 "
738
730
"<buffer-structs>` を参照してください)。"
739
731
740
- #: ../../c-api/buffer.rst:447
732
+ #: ../../c-api/buffer.rst:449
741
733
msgid ""
742
734
"Successful calls to :c:func:`PyObject_GetBuffer` must be paired with calls "
743
735
"to :c:func:`PyBuffer_Release`, similar to :c:func:`malloc` and "
@@ -747,7 +739,7 @@ msgstr ""
747
739
":c:func:`malloc` と :c:func:`free` のように、呼び出しに成功した :c:func:`PyObject_GetBuffer` と対になる :c:func:`PyBuffer_Release` の呼び出しがなけれなればなりません。\n"
748
740
"従って、バッファの利用が済んだら :c:func:`PyBuffer_Release` が厳密に1回だけ呼び出されなければなりません。"
749
741
750
- #: ../../c-api/buffer.rst:455
742
+ #: ../../c-api/buffer.rst:457
751
743
msgid ""
752
744
"Release the buffer *view* and decrement the reference count for "
753
745
":c:member:`view->obj`. This function MUST be called when the buffer is no "
@@ -756,21 +748,21 @@ msgstr ""
756
748
"バッファ *view* を解放し、 :c:member:`view->obj` の参照カウントを1つ減らします。\n"
757
749
"この関数はバッファが使われることがなくなったときに呼び出さなければならず、そうしないと参照のリークが起こり得ます。"
758
750
759
- #: ../../c-api/buffer.rst:459
751
+ #: ../../c-api/buffer.rst:461
760
752
msgid ""
761
753
"It is an error to call this function on a buffer that was not obtained via "
762
754
":c:func:`PyObject_GetBuffer`."
763
755
msgstr ":c:func:`PyObject_GetBuffer` を通して取得していないバッファに対してこの関数を呼び出すのは間違いです。"
764
756
765
- #: ../../c-api/buffer.rst:465
757
+ #: ../../c-api/buffer.rst:467
766
758
msgid ""
767
759
"Return the implied :c:data:`~Py_buffer.itemsize` from "
768
760
":c:data:`~Py_buffer.format`. This function is not yet implemented."
769
761
msgstr ""
770
762
":c:data:`~Py_buffer.itemsize` の値を :c:data:`~PyBuffer.format` から計算して返します。\n"
771
763
"この関数はまだ実装されていません。"
772
764
773
- #: ../../c-api/buffer.rst:471
765
+ #: ../../c-api/buffer.rst:473
774
766
msgid ""
775
767
"Return ``1`` if the memory defined by the *view* is C-style (*order* is "
776
768
"``'C'``) or Fortran-style (*order* is ``'F'``) :term:`contiguous` or either "
@@ -781,7 +773,7 @@ msgstr ""
781
773
"それ以外の場合は ``0`` を返します。\n"
782
774
"この関数は常に成功します。"
783
775
784
- #: ../../c-api/buffer.rst:478
776
+ #: ../../c-api/buffer.rst:480
785
777
msgid ""
786
778
"Copy *len* bytes from *src* to its contiguous representation in *buf*. "
787
779
"*order* can be ``'C'`` or ``'F'`` (for C-style or Fortran-style ordering). "
@@ -791,11 +783,11 @@ msgstr ""
791
783
"*order* は ``'C'`` または ``'F'`` (C スタイルまたは Fortran スタイルの順序) が指定できます。\n"
792
784
"成功したら ``0`` が返り、エラーなら ``-1`` が返ります。"
793
785
794
- #: ../../c-api/buffer.rst:482
786
+ #: ../../c-api/buffer.rst:484
795
787
msgid "This function fails if *len* != *src->len*."
796
788
msgstr "*len* != *src->len* の場合、この関数は失敗します。"
797
789
798
- #: ../../c-api/buffer.rst:487
790
+ #: ../../c-api/buffer.rst:489
799
791
msgid ""
800
792
"Fill the *strides* array with byte-strides of a :term:`contiguous` (C-style "
801
793
"if *order* is ``'C'`` or Fortran-style if *order* is ``'F'``) array of the "
@@ -805,7 +797,7 @@ msgstr ""
805
797
"(:term:`contiguous`) (*order* が ``'C'`` なら C-style 、 ``'F'`` なら Fortran-"
806
798
"style の) 多次元配列として埋める。"
807
799
808
- #: ../../c-api/buffer.rst:494
800
+ #: ../../c-api/buffer.rst:496
809
801
msgid ""
810
802
"Handle buffer requests for an exporter that wants to expose *buf* of size "
811
803
"*len* with writability set according to *readonly*. *buf* is interpreted as "
@@ -814,7 +806,7 @@ msgstr ""
814
806
"サイズが *len* の *buf* を *readonly* に従った書き込み可/不可の設定で公開するバッファリクエストを処理します。\n"
815
807
"*buf* は符号無しバイトの列として解釈されます。"
816
808
817
- #: ../../c-api/buffer.rst:498
809
+ #: ../../c-api/buffer.rst:500
818
810
msgid ""
819
811
"The *flags* argument indicates the request type. This function always fills "
820
812
"in *view* as specified by flags, unless *buf* has been designated as read-"
@@ -823,7 +815,7 @@ msgstr ""
823
815
"*flags* 引数はリクエストのタイプを示します。\n"
824
816
"この関数は、 *buf* が読み出し専用と指定されていて、 *flags* に :c:macro:`PyBUF_WRITABLE` が設定されていない限り、常にフラグに指定された通りに *view* を埋めます。"
825
817
826
- #: ../../c-api/buffer.rst:502
818
+ #: ../../c-api/buffer.rst:504
827
819
msgid ""
828
820
"On success, set :c:member:`view->obj` to a new reference to *exporter* and "
829
821
"return 0. Otherwise, raise :c:data:`PyExc_BufferError`, set "
@@ -832,7 +824,7 @@ msgstr ""
832
824
"成功したときは、 :c:member:`view->obj` に *exporter* への新しい参照を設定し、 0 を返します。\n"
833
825
"失敗したときは、 :c:data:`PyExc_BufferError` を送出し、 :c:member:`view->obj` に *NULL* を設定し、 ``-1`` を返します;"
834
826
835
- #: ../../c-api/buffer.rst:506
827
+ #: ../../c-api/buffer.rst:508
836
828
msgid ""
837
829
"If this function is used as part of a :ref:`getbufferproc <buffer-structs>`,"
838
830
" *exporter* MUST be set to the exporting object and *flags* must be passed "
0 commit comments