Python 3.6.5 ドキュメント 検索
Results of 21 - 30 of about 111 for self (0.072 sec.)
- 29.7. abc --- 抽象基底クラス — Python 3.6.5 ドキュメント 7690
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
義の例を見てください: class Foo : def __getitem__ ( self , index ): ... def __len__ ( self ): ... def get_i...
terator ( self ): return iter ( self ) class MyIterable ( ABC ):...
@abstractmethod def __iter__ ( self ): while False : yield None def get_iterator ( sel...
f ): return self . __iter__ () @classmethod def __subclasshook__ (...
- https://man.plustar.jp/python/library/abc.html - [similar]
- 10.1. itertools --- 効率的なループ実行のためのイテレータ生成関数 — Python 3.6.5... 7475
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
by('AAAABBBCCD')] --> AAAA BBB CC D def __init__ ( self , iterable , key = None ): if key is None : key =...
lambda x : x self . keyfunc = key self . it = iter ( iterable ) self...
. tgtkey = self . currkey = self . currvalue = object () def __ite...
r__ ( self ): return self def __next__ ( self ): while self ....
- https://man.plustar.jp/python/library/itertools.html - [similar]
- 25.1. tkinter --- Tcl/Tk の Python インタフェース — Python 3.6.5 ドキュメント 7475
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
ix platforms, as well as on Windows systems. (Tk itself is not part of Python; it is maintained at ActiveS...
k class Application ( tk . Frame ): def __init__ ( self , master = None ): super () . __init__ ( master )...
self . pack () self . create_widgets () def create_widgets ( self ): s...
elf . hi_there = tk . Button ( self ) self . hi_there [ "text" ] = "Hello World \n (cl...
- https://man.plustar.jp/python/library/tkinter.html - [similar]
- 12.6. sqlite3 --- SQLite データベースに対する DB-API 2.0 インタフェース — Pytho... 7298
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
. 例: import sqlite3 class MySum : def __init__ ( self ): self . count = 0 def step ( self , value ): sel...
f . count += value def finalize ( self ): return self . count con = sqlite3 . connect ( "...
e. import sqlite3 class IterChars : def __init__ ( self ): self . count = ord ( 'a' ) def __iter__ ( self...
): return self def __next__ ( self ): if self . count > ord ( 'z'...
- https://man.plustar.jp/python/library/sqlite3.html - [similar]
- 26.5. unittest.mock --- モックオブジェクトライブラリ — Python 3.6.5 ドキュメン... 6993
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
ります。 >>> class Foo : ... @property ... def foo ( self ): ... return 'something' ... @foo . setter ... de...
f foo ( self , value ): ... pass ... >>> with patch ( '__main__...
ばなりません。例: >>> class Class : ... def method ( self ): ... pass ... >>> with patch ( '__main__.Class'...
応します。 >>> class Container : ... def __init__ ( self ): ... self . values = {} ... def __getitem__ ( se...
- https://man.plustar.jp/python/library/unittest.mock.html - [similar]
- 10.2. functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.6.5 ド... 6854
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
l_ordering class Student : def _is_valid_operand ( self , other ): return ( hasattr ( other , "lastname" )...
and hasattr ( other , "firstname" )) def __eq__ ( self , other ): if not self . _is_valid_operand ( other...
): return NotImplemented return (( self . lastname . lower (), self . firstname . lower ()...
er (), other . firstname . lower ())) def __lt__ ( self , other ): if not self . _is_valid_operand ( other...
- https://man.plustar.jp/python/library/functools.html - [similar]
- Argument Clinic How-To — Python 3.6.5 ドキュメント 6816
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Argu
...
とで出てくるもっと強力な機能 ("return converter" や "self converter" など) を使った変換をする必要があることに...
s keyword-only arguments, specify * on a line by itself before the first keyword-only argument, indented t...
al-only in Argument Clinic, add a / on a line by itself after the last parameter, indented the same as the...
PyObject * _pickle_Pickler_dump ( PicklerObject * self , PyObject * obj ) /*[clinic end generated code: o...
- https://man.plustar.jp/python/howto/clinic.html - [similar]
- 11. 標準ライブラリミニツアー --- その 2 — Python 3.6.5 ドキュメント 6613
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア
...
ss AsyncZip ( threading . Thread ): def __init__ ( self , infile , outfile ): threading . Thread . __init_...
_ ( self ) self . infile = infile self . outfile = outfile...
def run ( self ): f = zipfile . ZipFile ( self . outfile , 'w' ,...
zipfile . ZIP_DEFLATED ) f . write ( self . infile ) f . close () print ( 'Finished backgrou...
- https://man.plustar.jp/python/tutorial/stdlib2.html - [similar]
- 12.1. pickle --- Python オブジェクトの直列化 — Python 3.6.5 ドキュメント 6575
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
BPickler ( pickle . Pickler ): def persistent_id ( self , obj ): # Instead of pickling MemoRecord as a reg...
DBUnpickler ( pickle . Unpickler ): def __init__ ( self , file , connection ): super () . __init__ ( file...
) self . connection = connection def persistent_load ( se...
, pid is the tuple returned by DBPickler. cursor = self . connection . cursor () type_tag , key_id = pid i...
- https://man.plustar.jp/python/library/pickle.html - [similar]
- 8.3. collections --- コンテナデータ型 — Python 3.6.5 ドキュメント 6550
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
direct updates to inner scopes' def __setitem__ ( self , key , value ): for mapping in self . maps : if k...
ey in mapping : mapping [ key ] = value return self . maps [ 0 ][ key ] = value def __delitem__ ( self...
, key ): for mapping in self . maps : if key in mapping : del mapping [ key ] r...
: ... __slots__ = () ... @property ... def hypot ( self ): ... return ( self . x ** 2 + self . y ** 2 ) **...
- https://man.plustar.jp/python/library/collections.html - [similar]