Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 41 - 50 of about 111 for self (0.084 sec.)
8.4. collections.abc --- コレクションの抽象基底クラス — Python 3.6.5 ドキュメン... 6246
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... he set elements to be hashable. ''' def __init__ ( self , iterable ): self . elements = lst = [] for value ... not in lst : lst . append ( value ) def __iter__ ( self ): return iter ( self . elements ) def __contains_ ... _ ( self , value ): return value in self . elements def __l ... en__ ( self ): return len ( self . elements ) s1 = ListBasedSe ...
https://man.plustar.jp/python/library/collections.abc.html - [similar]
What's New in Python 2.3 — Python 3.6.5 ドキュメント 6221
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... 得ることは可能です。たとえば整数のリストを返すのは、 self.count を 0 にして、 next() メソッドが self.count を ... 図したものです: class FakeSeq : ... def calc_item ( self , i ): ... def __getitem__ ( self , item ): if isi ... ( item , slice ): indices = item . indices ( len ( self )) return FakeSeq ([ self . calc_item ( i ) for i ... in range ( * indices )]) else : return self . calc_item ( i ) ところでこの例からは、ビルトイン ...
https://man.plustar.jp/python/whatsnew/2.3.html - [similar]
26.8. test --- Python 用回帰テストパッケージ — Python 3.6.5 ドキュメント 6157
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... se setUp() and tearDown() if necessary def setUp ( self ): ... code to execute in preparation for tests .. ... . def tearDown ( self ): ... code to execute to clean up after tests ... ... def test_feature_one ( self ): # Test feature one. ... testing code ... def te ... st_feature_two ( self ): # Test feature two. ... testing code ... ... mo ...
https://man.plustar.jp/python/library/test.html - [similar]
8.9. types --- 動的な型生成と組み込み型に対する名前 — Python 3.6.5 ドキュメント 6157
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ほぼ等価です: class SimpleNamespace : def __init__ ( self , ** kwargs ): self . __dict__ . update ( kwargs ) ... def __repr__ ( self ): keys = sorted ( self . __dict__ ) items = ( " { ... } = {!r} " . format ( k , self . __dict__ [ k ]) for k in keys ) return " {} ( {} ... )" . format ( type ( self ) . __name__ , ", " . join ( items )) def __eq__ ( ...
https://man.plustar.jp/python/library/types.html - [similar]
What's New in Python 2.2 — Python 3.6.5 ドキュメント 6157
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... 化すれば良いです: class C ( object ): def __init__ ( self ): ... ... これは、Python 2.2 では、基底クラスを持 ... 追加します: class LockableFile ( file ): def lock ( self , operation , length = 0 , start = 0 , whence = 0 ... ): import fcntl return fcntl . lockf ( self . fileno (), operation , length , start , whence ) ... el import eiffelmethod class C ( object ): def f ( self , arg1 , arg2 ): # The actual function ... def pre ...
https://man.plustar.jp/python/whatsnew/2.2.html - [similar]
循環参照ガベージコレクションをサポートする — Python 3.6.5 ドキュメント 6069
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... なければなりません: int (*traverseproc) ( PyObject *self , visitproc visit , void *arg ) ¶ コンテナオブジェ ... ラバーサル関数 (traversal function) です。実装では、 self に直接入っている各オブジェクトに対して visit 関数を ... 次のようになります: static int my_traverse ( Noddy * self , visitproc visit , void * arg ) { Py_VISIT ( self ... -> foo ); Py_VISIT ( self -> bar ); return 0 ; } tp_clear ハンドラは inquiry ...
https://man.plustar.jp/python/c-api/gcsupport.html - [similar]
ソケットプログラミング HOWTO — Python 3.6.5 ドキュメント 6069
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » ソケ ... ded for clarity, not efficiency """ def __init__ ( self , sock = None ): if sock is None : self . sock = s ... ( socket . AF_INET , socket . SOCK_STREAM ) else : self . sock = sock def connect ( self , host , port ): ... lf . sock . connect (( host , port )) def mysend ( self , msg ): totalsent = 0 while totalsent < MSGLEN : ... sent = self . sock . send ( msg [ totalsent :]) if sent == 0 : ...
https://man.plustar.jp/python/howto/sockets.html - [similar]
9.5. fractions --- 有理数 — Python 3.6.5 ドキュメント 5980
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... or=1000000 ) ¶ 分母が高々 max_denominator である、 self に最も近い Fraction を見付けて返します。このメソッ ... () Fraction(11, 10) __floor__ ( ) ¶ 最大の int <= self を返します。このメソッドは math.floor() 関数からで ... tion ( 355 , 113 )) 3 __ceil__ ( ) ¶ 最小の int >= self を返します。このメソッドは math.ceil() 関数からでも ... _ ( ) ¶ __round__ ( ndigits ) 第一のバージョンは、 self に最も近い int を偶数丸めで返します。第二のバージョ ...
https://man.plustar.jp/python/library/fractions.html - [similar]
17.2. multiprocessing --- プロセスベースの並列処理 — Python 3.6.5 ドキュメント 5980
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... rs import BaseManager class MathsClass : def add ( self , x , y ): return x + y def mul ( self , x , y ): ... r >>> class Worker ( Process ): ... def __init__ ( self , q ): ... self . q = q ... super ( Worker , self ... ) . __init__ () ... def run ( self ): ... self . q . put ( 'local hello' ) ... >>> qu ... er () [INFO/SyncManager-...] child process calling self.run() [INFO/SyncManager-...] created temp director ...
https://man.plustar.jp/python/library/multiprocessing.html - [similar]
18.5.6. サブプロセス — Python 3.6.5 ドキュメント 5917
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... l ( asyncio . SubprocessProtocol ): def __init__ ( self , exit_future ): self . exit_future = exit_future ... f . output = bytearray () def pipe_data_received ( self , fd , data ): self . output . extend ( data ) def ... process_exited ( self ): self . exit_future . set_result ( True ) @async ...
https://man.plustar.jp/python/library/asyncio-subprocess.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 NEXT