Anonymous avatar Anonymous committed 51de483

translated array into Japanese

Comments (0)

Files changed (2)

PyMOTW/array/index.rst

-====================================
-array -- Sequence of fixed-type data
-====================================
+..
+    ====================================
+    array -- Sequence of fixed-type data
+    ====================================
+
+array -- データ型固定のシーケンス
+=================================
 
 .. module:: array
-    :synopsis: Manage sequences of fixed-type numerical data efficiently.
+    :synopsis: データ型を数値に固定したシーケンスを効率良く管理する
 
-:Purpose: Manage sequences of fixed-type numerical data efficiently.
-:Python Version: 1.4 and later
+..
+    :Purpose: Manage sequences of fixed-type numerical data efficiently.
+    :Python Version: 1.4 and later
 
-The :mod:`array` module defines a sequence data structure that looks
-very much like a ``list`` except that all of the members have to be of
-the same type.  The types supported are listed in the `standard
-library documentation <http://docs.python.org/library/array.html>`_.
-They are all numeric or other fixed-size primitive types such as
-bytes.
+:目的: データ型を数値に固定したシーケンスを効率良く管理する
+:Python バージョン: 1.4 以上
 
-array Initialization
-====================
+..
+    The :mod:`array` module defines a sequence data structure that looks
+    very much like a ``list`` except that all of the members have to be of
+    the same type.  The types supported are listed in the `standard
+    library documentation <http://docs.python.org/library/array.html>`_.
+    They are all numeric or other fixed-size primitive types such as
+    bytes.
 
-An :class:`array` is instantiated with an argument describing the type
-of data to be allowed, and possibly an initial sequence of data to
-store in the array.
+:mod:`array` モジュールは全ての要素が同じデータ型でなければいけないことを除けば ``list`` そっくりのシーケンスデータ構造を定義します。 `標準ライブラリドキュメント <http://docs.python.org/library/array.html>`_ にサポートされているデータ型が記載されています。サポートされているデータ型は全て数値か、バイト型のような古くからある固定長のデータ型になります。
+
+..
+    array Initialization
+    ====================
+
+アレイの初期化
+==============
+
+..
+    An :class:`array` is instantiated with an argument describing the type
+    of data to be allowed, and possibly an initial sequence of data to
+    store in the array.
+
+:class:`array` は許容されたデータ型を表す引数と、おそらくはアレイに格納する初期データシーケンスと一緒にインスタンス化されます。
 
 .. include:: array_string.py
     :literal:
     :start-after: #end_pymotw_header
 
-In this example, the array is configured to hold a sequence of bytes
-and is initialized with a simple string.
+..
+    In this example, the array is configured to hold a sequence of bytes
+    and is initialized with a simple string.
+
+この例のアレイはバイト列を持つように設定されて単純な文字列で初期化されます。
 
 .. {{{cog
 .. cog.out(run_script(cog.inFile, 'array_string.py'))
 .. }}}
 .. {{{end}}}
 
+..
+    Manipulating Arrays
+    ===================
 
-Manipulating Arrays
-===================
+アレイを巧みに扱う
+==================
 
-An :class:`array` can be extended and otherwise manipulated in the
-same ways as other Python sequences.
+..
+    An :class:`array` can be extended and otherwise manipulated in the
+    same ways as other Python sequences.
+
+:class:`array` は伸長できて、さらに他の Python シーケンスと同様に巧みに扱えます。
 
 .. include:: array_sequence.py
     :literal:
 .. }}}
 .. {{{end}}}
 
+..
+    Arrays and Files
+    ================
 
-Arrays and Files
+アレイとファイル
 ================
 
-The contents of an array can be written to and read from files using
-built-in methods coded efficiently for that purpose.
+..
+    The contents of an array can be written to and read from files using
+    built-in methods coded efficiently for that purpose.
+
+アレイのコンテンツは効率的にコーディングされたビルトインメソッドを使用して、アレイへの書き込みとファイルからの読み込みを行うことができます。
 
 .. include:: array_file.py
     :literal:
     :start-after: #end_pymotw_header
 
-This example illustrates reading the data "raw", directly from the
-binary file, versus reading it into a new array and converting the
-bytes to the appropriate types.
+..
+    This example illustrates reading the data "raw", directly from the
+    binary file, versus reading it into a new array and converting the
+    bytes to the appropriate types.
+
+このサンプルは、直接バイナリファイルから "raw" データを読み込むのと、新たなアレイに格納してバイト型から適切な型へ変換するのを対比して説明しています。
 
 .. {{{cog
 .. cog.out(run_script(cog.inFile, 'array_file.py'))
 .. }}}
 .. {{{end}}}
 
+..
+    Alternate Byte Ordering
+    =======================
 
-Alternate Byte Ordering
-=======================
+バイトオーダの代替
+==================
 
-If the data in the array is not in the native byte order, or needs to
-be swapped before being written to a file intended for a system with a
-different byte order, it is easy to convert the entire array without
-iterating over the elements from Python.
+..
+    If the data in the array is not in the native byte order, or needs to
+    be swapped before being written to a file intended for a system with a
+    different byte order, it is easy to convert the entire array without
+    iterating over the elements from Python.
+
+アレイ内のデータがネイティブのバイトオーダではない、又は違うバイトオーダを持つシステムで使用するファイルへ書き込まれる前にスワップ処理を行う必要がある場合、Python からその要素のスワップ処理を繰り返し適用せずにアレイ全体を簡単に変換できます。
 
 .. include:: array_byteswap.py
     :literal:
 .. }}}
 .. {{{end}}}
 
+..
+    `array <http://docs.python.org/library/array.html>`_
+        The standard library documentation for this module.
+    :mod:`struct`
+        The struct module.
+    `Numerical Python <http://www.scipy.org>`_
+        NumPy is a Python library for working with large datasets efficiently.
+    :ref:`article-data-structures`
 
 .. seealso::
 
     `array <http://docs.python.org/library/array.html>`_
-        The standard library documentation for this module.
+        本モジュールの標準ライブラリドキュメント
 
     :mod:`struct`
-        The struct module.
+        struct モジュール
 
     `Numerical Python <http://www.scipy.org>`_
-        NumPy is a Python library for working with large datasets efficiently.
+        NumPy は巨大なデータセットを効率的に扱うための Python ライブラリ
 
     :ref:`article-data-structures`

PyMOTW/tempfile/index.rst

     :Python Version: Since 1.4 with major security revisions in 2.3
 
 :目的: 一時的なファイルシステムリソースを作成する
-:Python バージョン: 1.4 以、2.3 で主要なセキュリティ修正が施された
+:Python バージョン: 1.4 以、2.3 で主要なセキュリティ修正が施された
 
 ..
     Many programs need to create files to write intermediate
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.