Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 111 for self (0.061 sec.)
2. 拡張の型の定義: チュートリアル — Python 3.6.5 ドキュメント 10972
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... ject ; static void Custom_dealloc ( CustomObject * self ) { Py_XDECREF ( self -> first ); Py_XDECREF ( sel ... f -> last ); Py_TYPE ( self ) -> tp_free (( PyObject * ) self ); } static PyOb ... Object * args , PyObject * kwds ) { CustomObject * self ; self = ( CustomObject * ) type -> tp_alloc ( typ ... e , 0 ); if ( self != NULL ) { self -> first = PyUnicode_FromString ( ...
https://man.plustar.jp/python/extending/newtypes_tutorial.html - [similar]
デスクリプタ HowTo ガイド — Python 3.6.5 ドキュメント 9806
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » デス ... 提供します。 デスクリプタプロトコル ¶ descr.__get__(self, obj, type=None) --> value descr.__set__(self, obj ... , value) --> None descr.__delete__(self, obj) --> None これで全てです。これらのメソッドのい ... n では、このようになります: def __getattribute__ ( self , key ): "Emulate type_getattro() in Objects/typeo ... bject.c" v = object . __getattribute__ ( self , key ) if hasattr ( v , '__get__' ): return v . _ ...
https://man.plustar.jp/python/howto/descriptor.html - [similar]
Logging クックブック — Python 3.6.5 ドキュメント 9604
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Logg ... tion.auxiliary' ) class Auxiliary : def __init__ ( self ): self . logger = logging . getLogger ( 'spam_app ... lication.auxiliary.Auxiliary' ) self . logger . info ( 'creating an instance of Auxilia ... ry' ) def do_something ( self ): self . logger . info ( 'doing something' ) a = ... 1 + 1 self . logger . info ( 'done doing something' ) def som ...
https://man.plustar.jp/python/howto/logging-cookbook.html - [similar]
3. データモデル — Python 3.6.5 ドキュメント 9426
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... 定義関数) を結びつけます。 読み出し専用の特殊属性: __self__ はクラスインスタンスオブジェクトで、 __func__ は ... インスタンスメソッドオブジェクトが生成されたとき、 __self__ 属性はそのインスタンスで、このメソッドオブジェク ... インスタンスメソッドオブジェクトが生成されたとき、 __self__ 属性はクラスそのもので、 __func__ 属性はクラスメ ... が呼び出されます。このとき、クラスインスタンス ( __self__ ) が引数リストの先頭に挿入されます。例えば、 C を ...
https://man.plustar.jp/python/reference/datamodel.html - [similar]
8.1. datetime --- 基本的な日付型および時間型 — Python 3.6.5 ドキュメント 9363
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... れます。 インスタンスメソッド: date. replace ( year=self.year , month=self.month , day=self.day ) ¶ キーワー ... assmethod datetime. combine ( date , time , tzinfo=self.tzinfo ) ¶ Return a new datetime object whose date ... であり、異なる tzinfo 属性を持つ場合、まず最初に ( self.utcoffset() で取得できる) それぞれの UTC オフセット ... the returned time object. datetime. replace ( year=self.year , month=self.month , day=self.day , hour=self ...
https://man.plustar.jp/python/library/datetime.html - [similar]
18.7. asynchat --- 非同期ソケットコマンド/レスポンスハンドラ — Python 3.6.5 ド... 9299
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... _handler ( asynchat . async_chat ): def __init__ ( self , sock , addr , sessions , log ): asynchat . async ... _chat . __init__ ( self , sock = sock ) self . addr = addr self . sessions ... = sessions self . ibuffer = [] self . obuffer = b "" self . set_te ... rminator ( b " \r\n\r\n " ) self . reading_headers = True self . handling = False s ...
https://man.plustar.jp/python/library/asynchat.html - [similar]
26.6. unittest.mock --- 入門 — Python 3.6.5 ドキュメント 9185
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... います: >>> class ProductionClass : ... def method ( self ): ... self . something ( 1 , 2 , 3 ) ... def some ... thing ( self , a , b , c ): ... pass ... >>> real = ProductionC ... ます。 >>> class ProductionClass : ... def closer ( self , something ): ... something . close () ... ですか ... , sentinel . attribute ) ... def test_something ( self ): ... self . assertEqual ( SomeClass . attribute ...
https://man.plustar.jp/python/library/unittest.mock-examples.html - [similar]
18.6. asyncore --- 非同期ソケットハンドラ — Python 3.6.5 ドキュメント 8818
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... なバッファリングを実装します。例: def handle_write ( self ): sent = self . send ( self . buffer ) self . buf ... fer = self . buffer [ sent :] handle_expt ( ) ¶ out of band ( ... TPClient ( asyncore . dispatcher ): def __init__ ( self , host , path ): asyncore . dispatcher . __init__ ... ( self ) self . create_socket () self . connect ( ( host ...
https://man.plustar.jp/python/library/asyncore.html - [similar]
21.21. socketserver --- ネットワークサーバのフレームワーク — Python 3.6.5 ドキ... 8793
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 性を利用することができます; クライアントからの要求は self.request です; クライアントのアドレスは self.client ... との情報にアクセスする場合には、サーバインスタンスを self.server で取得できます。 The type of self.request i ... datagram or stream services. For stream services, self.request is a socket object; for datagram services, ... self.request is a pair of string and socket. finish ( ) ...
https://man.plustar.jp/python/library/socketserver.html - [similar]
9. クラス — Python 3.6.5 ドキュメント 8489
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... s : """A simple example class""" i = 12345 def f ( self ): return 'hello world' MyClass.i と MyClass.f は妥 ... とができます。例えば次のようにします: def __init__ ( self ): self . data = [] クラスが __init__() メソッドを ... す。例えば、 >>> class Complex : ... def __init__ ( self , realpart , imagpart ): ... self . r = realpart . ... .. self . i = imagpart ... >>> x = Complex ( 3.0 , - 4.5 ) ...
https://man.plustar.jp/python/tutorial/classes.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT