The difference can become apparent when subclassing these types. こうした違いは、これらの型をサブクラス化する際に顕在化してきます。 - Python
Normally you never make an instance of the PEAR class directly, you use it by subclassing it.
通常、PEAR クラスのインスタンスを直接生成することはなく、サブクラス化して使用します。 - PEAR
The class which implements the sequence behavior provided by the module is available for subclassing as well: このモジュールのシーケンスの振舞いを実装しているクラスのサブクラスを作ることもできます。 - Python
The following attributes of a TestLoader can be configured either by subclassing or assignment on an instance: 以下の属性は、サブクラス化またはインスタンスの属性値を変更してTestLoaderをカスタマイズする場合に使用します。 - Python
Two exception classes that are not related via subclassing are never equivalent, even if they have the same name. The built-in exceptions listed below can be generated by the interpreter or built-in functions. 以下に列挙した組み込み例外はインタプリタや組み込み関数によって生成されます。 - Python
As an example of subclassing, the random module provides the WichmannHill class which implements an alternative generator in pure Python. サブクラス化の例として、random モジュールは WichmannHill クラスを提供します。 このクラスは Python だけで書かれた代替生成器を実装しています。 - Python
The Page level subclassing is simple, but if you have a complex StateMachine you will end up having multiple subclasses.
ページレベルでサブクラスを作成するほうがシンプルですが、複雑な StateMachine を使用するなら複数のサブクラスを作成することになります。 - PEAR
The most useful way to define a CookiePolicy class is by subclassing from DefaultCookiePolicy and overriding some or all of the methods above. もっとも有用な方法は、DefaultCookiePolicy をサブクラス化したCookiePolicy クラスを定義して、いくつか (あるいはすべて) のメソッドをオーバーライドすることでしょう。 - Python
New commands may directly inherit from Command, while replacements oftenderive from Command indirectly, directly subclassing the command they are replacing. 新しいコマンドはCommandを直接継承し、置換するコマンドでは置換対象のコマンドのサブクラスにすることでCommandを間接的に継承します。 - Python
Several builtin types such as list and dict do not directly support weak references but can add support through subclassing: list やdict など、いくつかの組み込み型は弱参照を直接サポートしませんが、以下のようにサブクラス化を行えばサポートを追加できます: - Python
Subclassing requirements:Subclasses of UserList are expect to offer a constructor which can be called with either no arguments or one argument. サブクラス化の要件: UserListのサブクラスは引数なしか、あるいは一つの引数のどちらかとともに呼び出せるコンストラクタを提供することが期待されます。 - Python
If you are writing code that does not need to work with versions of Python earlier than Python 2.2, please consider subclassing directly from the built-in dict type. Python 2.2より前のバージョンのPythonで動作する必要のないコードを書いているのならば、組み込みdict型から直接サブクラス化することを検討してください。 - Python
If you are writing code that does not need to work with versions of Python earlier than Python 2.2, please consider subclassing directly from the built-in list type. Python 2.2より前のバージョンのPythonで動作する必要のないコードを書いているのならば、組み込みlist型から直接サブクラス化することを検討してください。 - Python
Try to maximize code reuse.On occasion, tests will vary by something as small as what typeof input is used.Minimize code duplication by subclassing a basic test class with a class that specifies the input: コードの再利用を最大限に行うようにしてください。 時として、テストの多様性はどんな型の入力を受け取るかの違いまで小さくなります。 - Python
Two implementations of formatter objects are provided by this module.Most applications may use one of these classes without modification or subclassing. このモジュールでは、formatter オブジェクトに関して二つの実装を提供しています。 ほとんどのアプリケーションではこれらのクラスを変更したりサブクラス化することなく使うことができます。 - Python
If you are writing code that does not need to work with versions of Python earlier than Python 2.2, please consider subclassing directly from the built-in str type instead of using UserString (there is no built-in equivalent to MutableString). Python 2.2より前のバージョンのPythonで動作する必要のないコードを書いているのならば、UserStringを使う代わりに組み込みstr型から直接サブクラス化することを検討してください(組み込みのMutableStringと等価なものはありません)。 - Python
The defaults of this class are designed to make it useful for parsing MIME multipart messages, but by subclassing it and overriding methods it can be easily adapted for more general use. このクラスの標準設定は MIME マルチパートメッセージを解釈する上で便利となるように設計されていますが、サブクラス化を行って幾つかのメソッドを上書きすることで、簡単に汎用目的に対応させることができます。 - Python
While these are technically built-in exceptions, they are documented here, because conceptually they belong to the warnings mechanism.User code can define additional warning categories by subclassing one of the standard warning categories. これらは技術的には組み込み例外ですが、概念的には警告メカニズムに属しているのでここで記述されています。 標準の警告カテゴリをユーザの作成したコード上でサブクラス化することで、さらに別の警告カテゴリを定義することができます。 - 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.