The following is a description of the legacy bsddb interfacecompatible with the old python bsddb module.
以下では、従来のbsddbモジュールと互換性のある、古いインターフェースを解説しています。 - Python
The specific configuration variables available depend heavily on the platform and configuration.The specific variables depend on the build process for the specific version of Python being run; the variables are those found in the Makefile and configuration header that are installed withPython on Unix systems. どの設定情報変数にアクセスできるかは、プラットフォームと設定自体に大きく左右されます。 また、特定の変数は、使っている Python のバージョンに対するビルドプロセスに左右されます; こうした変数は、Unix システムでは、Makefile や Python と一緒にインストールされる設定ヘッダから探し出されます。 - Python
Inside a character range, b represents the backspace character, for compatibility with Python's string literals. 文字の範囲の中では、b は、Python の文字列リテラルと互換性を持たせるために、後退(backspace)文字を表します。 - Python
Starting withPython 2.0, this mechanism (known as related to Makefile.pre.in, and Setup files) is no longer supported. Python 2.0 からはこの機構 (いわゆる Makefile.pre.in および Setup ファイルの関係ファイル)はサポートされなくなりました。 インタプリタ自体のカスタマイズはほとんど使われず、 distutils で拡張モジュールをビルドできるようになったからです。 - Python
The second section is usually HTML, which allows the client softwareto display nicely formatted text with header, in-line images, etc.Here's Python code that prints a simple piece of HTML:
二つ目のセクションは通常、ヘッダやインラインイメージ等の付属したテキストをうまくフォーマットして表示できるようにした HTML です。 以下に単純な HTML を出力する Python コードを示します: - Python
Therefore,you'll find short ``implementation notes'' sprinkled throughout thetext.Every Python implementation comes with a number of built-in and standard modules. 従って、このテキスト全体にわたって短い ``実装に関する注釈 (imprementation notes)'' がちりばめられています。 Python 実装はいずれも、数々の組み込みモジュールと標準モジュールが付属します。 - Python
Changed in version 2.0:Python versions 1.5.2 and 1.6 also required that the constructor be callable with no parameters, and offer a mutable data attribute. バージョン 2.0 で 変更 された仕様:Pythonバージョン1.5.2と1.6では、コンストラクタが引数なしで呼び出し可能であることと変更可能なdata属性を提供するということも要求されます。 - Python
Generic operations on sequence objects were discussed in the previous chapter; this section deals with the specific kinds of sequence objects that are intrinsic to the Python language. Subsections シーケンスオブジェクトに対する一般的な操作については前の章ですでに述べました; この節では、Python 言語にもともと備わっている特定のシーケンスオブジェクトについて扱います。 - Python
This chapter briefly explains how to create a Windows extension module for Python using Microsoft Visual C++, and follows with more detailed background information on how it works. この章では Windows 向けの Python 拡張モジュールを Microsoft Visual C++を使って作成する方法について簡単に述べ、その後に拡張モジュールのビルドがどのように動作するのかについて詳しい背景を述べます。 - Python
function with the difference that the first entry should refer to the script file to be executedrather than the executable hosting the Python interpreter. に渡したパラメタに似ていますが、最初の要素が Python インタプリタの宿主となっている実行形式の名前ではなく、実行されるスクリプト名を参照しなければならない点が違います。 - Python
The first parameter, callable, can beany Python callable object that can be called with no parameters;each call to it should return the next item in the iteration.
最初のパラメタ callable は引数なしで呼び出せる Python の呼び出し可能オブジェクトならなんでもかまいません; callableは、呼び出されるたびに次の反復処理対象オブジェクトを返さなければなりません。 - Python
Note:Beginning withPython 2.2, such cycles are automatically reclaimed when garbage collection is enabled and they become unreachable, but it remains more efficient to avoid creating cycles. 注意:Python 2.2 以降では、ガベージコレクションが有効であればこのような到達不能オブジェクトは自動的に削除されます。 しかし、循環参照を作らないようにしたほうが効率的です。 - Python
These are used for profiling, debugging, and coverage analysis tools.Starting withPython 2.2, the implementation of this facility wassubstantially revised, and an interface from C was added. このサポートは、プロファイルやデバッグ、適用範囲分析 (coverage analysis) ツールなどに使われます。 Python 2.2 になってから、この機能の実装は実質的に作り直され、C から呼び出すためのインタフェースが追加されました。 - Python
The framework is based on the notion that trusted Python code (a supervisor) can create a``padded cell' (or environment) with limited permissions, and run the untrusted code within this cell. このフレームワークは、信頼できる Python コード (スーパバイザ (supervisor)) が、パーミッションに制限のかけられた ``拘束セル (padded cell)''を生成し、このセル中で信頼のおけないコードを実行するという概念に基づいています。 - Python
It may be necessary to configure and compile Pythonwith certain compiler flags to enable this mode. For example, it is enabled by default with recent versions of Irix, but with Solaris 2.6 and 2.7 you need to do something like: 例えば、ラージファイルのサポートは Irix の最近のバージョンでは標準で有効ですが、Solaris 2.6 および 2.7 では、以下のようにする必要があります: - Python
With context set and decimals created, the bulk of the program manipulates the data no differently than with other Pythonnumeric types. コンテキストを設定し、Decimal オブジェクトを生成できたら、ほとんどのプログラムは他の Python 数値型と全く変わらないかのようにDecimal を操作できます。 - Python
There is no requirement that --prefix or --exec-prefix actually point to an alternate Python installation; if the directories listed above do not already exist, they are created at installation time.Incidentally, the real reason the prefix scheme is important is simply that a standard Unix installation uses the prefix scheme, but with --prefix and --exec-prefix supplied by Python itself as sys. --prefix や --exec-prefix が実際に他のインストール済み Python の場所を指している必要はありません;上に挙げたディレクトリがまだ存在しなければ、インストール時に作成されます。 ちなみに、prefix スキームが重要な本当の理由は、単に標準の Unix インストールが prefix スキームを使っているからです。 - Python
Possible uses includeallowing Python scripts to accept typed passwords from the user, orattempting to crack Unix passwords with a dictionary.Notice that the behavior of this module depends on the actual implementation of the
このモジュールは、Python スクリプトがユーザから入力されたパスワードを受理できるようにしたり、Unixパスワードに (脆弱性検査のための) 辞書攻撃を試みるのに使えます。 このモジュールは実行環境の - Python
It is important to only use spaces for indentation in code examples since TeX drops tabs instead of converting them to spaces.Representing an interactive session requires including the prompts and output along with the Python code. TeX はタブをスペースに変換せずに捨てるので、コード例中でのインデントにはスペースだけを使ってください。 対話セッションの表現には、プロンプトや Python コードからの出力を含める必要があります。 - Python
If Python was built with the --with-universal-newlinesoption to configure (the default) this read-only attribute exists, and for files opened in universal newline read mode it keeps track of the types of newlinesencountered while reading the file. Python をビルドするとき、--with-universal-newlines オプションがconfigure に指定された場合(デフォルト)、この読み出し専用の属性が存在します。 一般的な改行に変換する読み出しモードで開かれたファイルにおいて、この属性はファイルの読み出し中に遭遇した改行コードを追跡します。 - Python
The setup script is usually quite simple, although since it's written in Python, there are no arbitrary limits to what you can do with it,though you should be careful about putting arbitrarily expensive operations in your setup script. とはいえ、 setup スクリプト中に何かコストの大きな処理を行うときは十分注意してください。 - Python
There are several cases where Python statements are illegal when used in conjunction with nested scopes that contain freevariables.If a variable is referenced in an enclosing scope, it is illegal to delete the name. 自由変数の入った入れ子スコープ (nested scope) を併用すると、Python の文が不正な文になる場合がいくつかあります。 ある変数がスコープの外側から参照された場合、その名前に対する削除操作は不正になります。 - Python
Python fully supports mixed arithmetic: when a binary arithmetic operator has operands of different numeric types, the operand with the``narrower'' type is widened to that of the other, where plain integer is narrower than long integer is narrower than floating point is narrower than complex.Comparisons between numbers of mixed type use the same rule. Python は型混合の演算を完全にサポートします: ある 2 項演算子が互いに異なる数値型の被演算子を持つ場合、より ``制限された'' 型の被演算子は他方の型に合わせて広げられます。 - Python
If Python is built with universal newline support (the default) the file is opened as a text file, butlines may be terminated by any of 'n', the Unix end-of-lineconvention,'r', the Macintosh convention or 'rn', the Windowsconvention. Python が全改行文字サポートを行っている (標準ではしています) 場合,ファイルがテキストファイルで開かれますが、行末文字として Unix における慣行である 'n' 、Machintosh における慣行である 'r'、Windows における慣行である 'rn' のいずれを使うこともできます。 - Python
Note that even though starting withPython 2.2 you can subclass builtin types, the xmlrpclib module currently does not marshal instances of such subclasses.When passing strings, characters special to XML such as "","", and "" will be automatically escaped. Python 2.2以降では組み込み型のサブクラスを作成する事ができますが、現在のところxmlrpclibではそのようなサブクラスのインスタンスをマーシャルすることはできません。 文字列を渡す場合、""・""・""などのXMLで特殊な意味を持つ文字は自動的にエスケープされます。 - Python
defines constants that are useful for extracting information from a statvfs structure when accessing it as a sequence; this remains useful when writing code that needs to work with versions of Python that don't support accessing the fields as attributes. では、シーケンスとしてアクセスする場合に、statvfs 構造体から情報を引き出す上便利な関数や定数を定義しています; これは属性として各フィールドにアクセスできないバージョンの Python で動作する必要のあるコードを書く際に便利です。 - Python
A subclass that wants to override this variable should probably start with the value from the base class and concatenate additional forbidden functions -- when new dangerousbuilt-in functions are added to Python, they will also be added to this module.) この変数をオーバライドしたいサブクラスは、基本クラスからの値から始めて、追加した許されない関数を連結していかなければなりません - 危険な関数が新しく Python に追加された時は、それらも、このモジュールに追加します。 - Python
The default is to save the file with the PythonIDE as the creator, this means that you can open the file for editing by simply double-clicking on its icon. デフォルトでは、ファイルのPython IDE をクリエータコードにして保存します。 従って、ファイルのアイコンをダブルクリックするとファイルを編集用に開きます。 - Python
This means that the typical surrogates generated by Python IDL compilers are not likely to work, and wrapper objects maybe needed on the client if the DOM objects are accessed via CORBA.While this does require some additional consideration for CORBA DOMclients, the implementers with experience using DOM over CORBA from Python do not consider this a problem. これは、Python IDL コンパイラによって生成された典型的なサロゲーションはまず動作することはなく、DOM オブジェクトがCORBA を解してアクセスされる場合には、クライアント上でラッパオブジェクトが必要であることを意味します。 CORBA DOM クライアントでは他にもいくつか考慮すべきことがある一方で、CORBA を介して DOM を使った経験を持つ実装者はこのことを問題視していません。 - Python
Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for rapid application development, as well as for use as a scripting or glue language to connect existing components together. Python の高レベルな組み込みデータ構造は、動的な型付け機能や動的な結合機能と組み合わせることで、迅速なアプリケーション開発や既存のソフトウェアコンポーネント間をつなぐスクリプト言語、または糊 (glue) 言語として Python を魅力的な存在にしています。 - Python
Also note that optionalcontinuation clauses always begin with a keyword that cannot start a statement, thus there are no ambiguities (the `danglingelse' problem is solved in Python by requiring nestedif statements to be indented). また、オプションの継続節は常にあるキーワードから始まり、このキーワードから複合文を開始することはできないため、曖昧さは存在しないことにも注意してください (Python では、`ぶら下がり(dangling) else' 問題を、ネストされたif 文はインデントさせること解決しています)。 - Python
The untrusted code cannot break out of its cell, and can only interact with sensitive system resourcesthrough interfaces defined and managed by the trusted code. 信頼のおけないコードはこの拘束セルを破ることができず、信頼されたコードで提供され、管理されたインタフェースを介してのみ、傷つきやすいシステムリソースとやりとりすることができます。 ``制限実行'' という用語は、``安全な Python (safe-Python)'' を裏から支えるものです。 - Python
The functions in this chapter will let you execute Python source code given in a file or a buffer, but they will not let you interact in a more detailed way with the interpreter.Several of these functions accept a start symbol from the grammar as a parameter. この章の関数を使うとファイルまたはバッファにあるPythonソースコードを実行できますが、より詳細なやり取りをインタプリタとすることはできないでしょう。 これらの関数のいくつかは引数として文法の開始記号を受け取ります。 - Python
linejunk: A function that accepts a single string argument, and returns true if the string is junk, or false if not. The default is (None), starting withPython 2.3. linejunk: string型の引数ひとつを受け取る関数で、文字列がjunkか否かによってtrueを(違うときにはtrueを)返します。 Python2.3以降、デフォルトでは(None)になります。 - Python
They have been kept here to maintain backwards compatability with programs written for older versions of Python.Python programmers, trainers, students and bookwriters should feel free to bypass these functions without concerns about missing something important. こうした関数は古いバージョンの Python 向け書かれたプログラムとの互換性を維持するだけの目的で残されています。 Python のプログラマ、教官、学生、そして本の著者は、こうした関数を飛ばしてもかまわず、その際に何か重要なことを忘れていると思う必要もありません。 - Python
Website with documentation for the new python Berkeley DB interface that closely mirrors the sleepycat object oriented interface provided in Berkeley DB 3 and 4. 新しいBerkeley DBインターフェースのドキュメントがあります。 新しいインターフェースは、BerkeleyDB 3と4でsleepycatが提供しているオブジェクト指向インターフェースとほぼ同じインターフェースとなっています。 - Python
For details on JPEG or the Independent JPEG Group software refer to the JPEG standard or the documentation provided with the software.A portable interface to JPEG image files is available with the PythonImaging Library (PIL) by Fredrik Lundh. JPEG、あるいはIndependent JPEG Groupソフトウェアの詳細は、標準JPEG、若しくは提供されるソフトウェアのドキュメントを参照してください。 JPEGファイルを扱うポータブルなインタフェースはFredrik LundhによるPython Imaging Library (PIL)があります。 - Python
Authors may use this guide, in conjunction with the template files provided with the distribution, to create or maintain whole documents or sections.If you're interested in contributing to Python's documentation,there's no need to learn LaTeX if you're not so inclined; plaintext contributions are more than welcome as well. ドキュメントの作者は、このガイドと Python 配布物で提供されている雛形ファイルを組み合わせて使い、ドキュメント全体やドキュメントの各セクションを作成したり維持したりできます。 Python のドキュメントを寄贈したいと思っているなら、そのためにLaTeXをわざわざ学ぶ必要はありません; 平文での寄贈も大歓迎です。 - Python
However, transportingcode from one Python version to another as source text will always allow correct parse trees to be created in the target version, with the only restriction being that migrating to an older version of the interpreter will not support more recent language constructs. しかし、Pythonのあるバージョンから別のバージョンへテキストのソースのままコードを移せば、目的のバージョンで正しい解析木を常に作成できます。 ただし、インタープリタの古いバージョンへ移行する際に、最近の言語コンストラクトをサポートしていないことがあるという制限だけがあります。 - Python
Otherwise, the argument may be a plain or long integer or a floating point number, and a floating point number with the same value (within Python's floating point precision) is returned. それ以外の場合、引数は通常整数、長整数、または浮動小数点数をとることができ、同じ値の浮動小数点数が (Python の浮動小数点精度で) 返されます。 - Python
The configuration header is calledpyconfig.h for Python versions starting with 2.2, and config.h for earlier versions of Python.Some additional functions are provided which perform some usefulmanipulations for other parts of the distutils package. 設定ファイルのヘッダは、2.2 以降のバージョンではpyconfig.h 、それ以前のバージョンでは config.h です。 他にも、distutils パッケージの別の部分を操作する上で便利な関数がいくつか提供されています。 - Python
With almost no basic TeX or LaTeX markup in use, however, the markup syntax is about the only evidence of LaTeX in the actual document sources.One side effect of this is that while we've been able to use standard ``engines'' for manipulating the documents, such as LaTeX and LaTeX2HTML, most of the actual transformations have been created specifically for Python. とはいえ、基本的なTeX やLaTeX によるマークアップが使われていなければ、実際のドキュメントソースでLaTeX が使われている証拠となるのはマークアップの構文法くらいです。 この副作用のせいで、例えばLaTeX やLaTeX2HTML のような、ドキュメントを操作するための標準の ``エンジン'' を使えるにも関わらず、実際の変換のほとんどは Python に特化して作られてしまいました。 - Python
Since we do not want to interfere with the current locale setting we thusemulate the behavior in the way described above.To maintain compatibility with other platforms, not only the LANG variable is tested, but a list of variables given as envvars parameter. Python では現在のロケール設定に干渉したくないので、上で述べたような方法でその挙動をエミュレーションしています。 他のプラットフォームとの互換性を維持するために、環境変数 LANGだけでなく、引数 envvars で指定された環境変数のリストも調べられます。 - Python
AppleEvent record descriptors are returned as Pythondictionaries, with 4-character string keys and elements recursivelyunpacked.The optional formodulename argument is used by the stub packages generated by gensuitemodule, and ensures that the OSA classes for object specifiers are looked up in the correct module. AppleEventレコードディスクリプタが、再帰的にアンパックされた、型の4文字キーと要素を持つPython辞書として返されます。 オプションの formodulename 引数は gensuitemodule より作成されるスタブパッケージにより利用され、オブジェクト指定子のための OSA クラスをモジュールの中で見つけられることを保証します。 - Python
returns a result with the sign ofy instead, and may not be exactly computable for float arguments.For example, fmod(-1e-100, 1e100) is -1e-100, but the result of Python's -1e-100 % 1e100 is 1e100-1e-100, which cannot be represented exactly as a float, and rounds to the surprising1e100. は、y と同じ符号の結果を返し、浮動小数点の引数に対して厳密な解を出せないことがあります。 例えば、 fmod(-1e-100, 1e100) は -1e-100 ですが、Python の-1e-100 % 1e100 は 1e100-1e-100 になり、浮動小数点型で厳密に表現できず、ややこしいことに1e100 に丸められます。 - Python
There are no variants with NULLchecking.The C function calling mechanism guarantees that the argument list passed to C functions (args in the examples) is neverNULL -- in fact it guarantees that it is always a tuple. 型を調べるマクロには、NULL チェックを行う変化形はありません。 Python から C 関数を呼び出す機構は、 C 関数に渡される引数リスト(例でいうところの args) が決して NULL にならないよう保証しています -- 実際には、常にタプル型になるよう保証しています。 - Python
Some of them don't convert from Unicode strings to byte strings, but instead use the property of the Pythoncodecs machinery that any bijective function with one argument can be considered as an encoding.For the codecs listed below, the result in the ``encoding'' direction is always a byte string. これらの codec の中にはUnicode 文字列からバイト文字列への変換を行わず、むしろ単一の引数をもつ全写像関数はエンコーディングとみなせるというPython codec の性質を利用したものもあります。 以下に列挙した codec では、``エンコード'' 方向の結果は常にバイト文字列方向です。 - Python
Note that the restricted environments can be nested, with inner cells creating subcells of lesser, but never greater, privilege.An interesting aspect of Python's restricted execution model is that the interfaces presented to untrusted code usually have the same names as those presented to trusted code. 制限された環境は入れ子にすることができ、このとき内側のセルはより縮小されることはあるが決して拡大されることのない特権を持ったサブセルを生成します。 Python の制限実行モデルの興味深い側面は、信頼されないコードに提供されるインタフェースが、信頼されるコードに提供されるそれらと同じ名前を持つということです。 - Python
Copyright 2001-2004 Python Software Foundation.All rights reserved. Copyright 2000 BeOpen.com.All rights reserved. Copyright 1995-2000 Corporation for National Research Initiatives.All rights reserved. Copyright 1991-1995 Stichting Mathematisch Centrum.All rights reserved.