Python 3.6.5 ドキュメント 検索
Results of 71 - 80 of about 111 for self (0.167 sec.)
- 36.1. optparse --- コマンドラインオプション解析器 — Python 3.6.5 ドキュメント 5536
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
ion ( file=None ) ¶ 現在のプログラムのバージョン ( self.version ) を file (デフォルト: stdout) へ表示します...
。 print_usage() と同じく、 self.version の中の全ての %prog が現在のプログラム名に置...
き換えられます。 self.version が空文字列だだったり未定義だったときは何も...
file=None ) ¶ 現在のプログラムの使用法メッセージ ( self.usage ) を file (デフォルト: stdout) に表示します。...
- https://man.plustar.jp/python/library/optparse.html - [similar]
- What's New in Python 2.0 — Python 3.6.5 ドキュメント 5536
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
ンスタンスを作ります。 class Number : def __init__ ( self , value ): self . value = value def __iadd__ ( sel...
f , increment ): return Number ( self . value + increment ) n = Number ( 5 ) n += 3 prin...
ルから文字列メソッドへ置き換えるのにほかは第一引数が self に置き換わっただけにみえるのに対しこれはそうではな...
を持つ場合です: instance = SomeClass () instance . myself = instance 上の例の 2 行のコードが実行された後では...
- https://man.plustar.jp/python/whatsnew/2.0.html - [similar]
- 1. C や C++ による Python の拡張 — Python 3.6.5 ドキュメント 5498
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ
...
ります): static PyObject * spam_system ( PyObject * self , PyObject * args ) { const char * command ; int s...
しています。 C 関数は常に二つの引数を持ち、便宜的に self および args と呼ばれます。 self 引数には、モジュー...
できます: static PyObject * spam_system ( PyObject * self , PyObject * args ) { const char * command ; int s...
.h" static PyObject * keywdarg_parrot ( PyObject * self , PyObject * args , PyObject * keywds ) { int volt...
- https://man.plustar.jp/python/extending/extending.html - [similar]
- 21.24. http.cookiejar --- HTTP クライアント用の Cookie 処理 — Python 3.6.5 ドキ... 5498
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
るファイルの名前です。 filename が指定されない場合、 self.filename が使用されます (このデフォルト値は、それが...
存在する場合は、コンストラクタに渡されています)。 self.filename も None の場合は ValueError が発生します。...
. cookiejar . DefaultCookiePolicy ): def set_ok ( self , cookie , request ): if not http . cookiejar . De...
faultCookiePolicy . set_ok ( self , cookie , request ): return False if i_dont_want_...
- https://man.plustar.jp/python/library/http.cookiejar.html - [similar]
- 19.2. json --- JSON エンコーダおよびデコーダ — Python 3.6.5 ドキュメント 5498
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
xEncoder ( json . JSONEncoder ): ... def default ( self , obj ): ... if isinstance ( obj , complex ): ......
ypeError ... return json . JSONEncoder . default ( self , obj ) ... >>> json . dumps ( 2 + 1 j , cls = Com...
ートするために、次のように実装します: def default ( self , o ): try : iterable = iter ( o ) except TypeErro...
he TypeError return json . JSONEncoder . default ( self , o ) encode ( o ) ¶ Python データ構造 o の JSON 文...
- https://man.plustar.jp/python/library/json.html - [similar]
- 19.1.1. email.message: 電子メールメッセージの表現 — Python 3.6.5 ドキュメント 5473
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
licy. __str__ ( ) ¶ Equivalent to as_string(policy=self.policy.clone(utf8=True) . Allows str(msg) to produ...
dy on a multipart/related will return the object itself unless preferencelist has a non-default value. (3)...
_content() method of the content_manager , passing self as the message object, and passing along any other...
_content() method of the content_manager , passing self as the message object, and passing along any other...
- https://man.plustar.jp/python/library/email.message.html - [similar]
- What's New In Python 3.4 — Python 3.6.5 ドキュメント 5473
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
pydoc モジュールはもはや既に束縛済みのメソッドでは self パラメータを表示しません。それよりも、与えられた c...
の変更は SMTPChannel は asynchat.async_chat.__init__(self, conn, map=map) 、SMTPServer は asyncore.dispatche...
r.__init__(self, map=map) です。グローバルなソケットマップを汚さな...
mbersTest ( unittest . TestCase ): def test_even ( self ): for i in range ( 6 ): with self . subTest ( i =...
- https://man.plustar.jp/python/whatsnew/3.4.html - [similar]
- Python 3 への拡張モジュール移植 — Python 3.6.5 ドキュメント 5448
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Pyth
...
xample */ static PyObject * say_hello ( PyObject * self , PyObject * args ) { PyObject * name , * result ;...
le */ static PyObject * encode_object ( PyObject * self , PyObject * args ) { char * encoded ; PyObject *...
- https://man.plustar.jp/python/howto/cporting.html - [similar]
- 16.4. argparse --- コマンドラインオプション、引数、サブコマンドのパーサー — Pyt... 5448
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
ooAction ( argparse . Action ): ... def __init__ ( self , option_strings , dest , nargs = None , ** kwargs...
or ( "nargs not allowed" ) ... super ( FooAction , self ) . __init__ ( option_strings , dest , ** kwargs )...
... def __call__ ( self , parser , namespace , values , option_string = No...
alues , option_string )) ... setattr ( namespace , self . dest , values ) ... >>> parser = argparse . Argu...
- https://man.plustar.jp/python/library/argparse.html - [similar]
- What's New in Python 2.1 — Python 3.6.5 ドキュメント 5448
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...
ーされるローカル変数を頻繁に見かけます。: def find ( self , name ): "Return list of any entries equal to 'na...
L = filter ( lambda x , name = name : x == name , self . list_attribute ) return L 過度な関数型スタイルで...
覚えやすいでしょう。) これらの特殊メソッドは method(self, other) の形式になっており、 self が演算子の左辺、...
- https://man.plustar.jp/python/whatsnew/2.1.html - [similar]