Results of 1 - 10 of about 124 for checking (0.070 sec.)
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 10896
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...c may not have correct __parameters__ after substitution in some cases because they are intended primarily for static type checking. バージョン 3.10 で変更: Generic can now be parameterized over parameter expressions. See ParamSpec and PEP 612 for more d...ing import Any a : Any = None a = [] # OK a = 2 # OK s : str = '' s = a # OK def foo ( item : Any ) -> int : # Passes type checking; 'item' could be any type, # and that type might have a 'bar' method item . bar () ... Any 型の値をより詳細な型に代入する時...または返り値として利用する) ことは型エラーになることを意味します。例えば: def hash_a ( item : object ) -> int : # Fails type checking; an object does not have a 'magic' method. item . magic () ... def hash_b ( item : Any ) -> int : # Passes type checking i... - https://man.mtool.work/python/3.14/library/typing.html
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 10896
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...c may not have correct __parameters__ after substitution in some cases because they are intended primarily for static type checking. バージョン 3.10 で変更: Generic can now be parameterized over parameter expressions. See ParamSpec and PEP 612 for more d...ing import Any a : Any = None a = [] # OK a = 2 # OK s : str = '' s = a # OK def foo ( item : Any ) -> int : # Passes type checking; 'item' could be any type, # and that type might have a 'bar' method item . bar () ... Any 型の値をより詳細な型に代入する時...または返り値として利用する) ことは型エラーになることを意味します。例えば: def hash_a ( item : object ) -> int : # Fails type checking; an object does not have a 'magic' method. item . magic () ... def hash_b ( item : Any ) -> int : # Passes type checking i... - https://man.mtool.work/python/3.14/library/typing.html
- 変更履歴 — Python 3.14.8 ドキュメント 10711
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...ecomes unusable after libbz2 reports an error. gh-149835 : shutil.move() now resolves symlinks via os.path.realpath() when checking whether the destination is inside the source directory, preventing a symlink-based bypass of that guard. gh-149698 : Updat...nd of file in html.parser.HTMLParser with convert_charrefs=False . gh-140734 : multiprocessing : fix off-by-one error when checking the length of a temporary socket file path. Patch by Bénédikt Tran. gh-140874 : Bump the version of pip bundled in ensurep...ry filesystem calls for frozen modules in linecache when the global module cache is not present. gh-140590 : Fix arguments checking for the functools.partial.__setstate__() that may lead to internal state corruption and crash. Patch by Sergey Miryanov. g... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- Curses C API — Python 3.14.8 ドキュメント 10526
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » Curses C API テーマ 自動 ライト ダーク | Curses C API ¶ curses exposes a small C inte
...s. In particular, they can only be used as macro; or macro , but not macro() or macro(); . PyCursesSetupTermCalled ¶ Macro checking if curses.setupterm() has been called. The macro expansion is roughly equivalent to: { typedef int ( * predicate_t )( void...lled = ( predicate_t ) PyCurses_API [ 1 ]; if ( ! was_setupterm_called ()) { return NULL ; } } PyCursesInitialised ¶ Macro checking if curses.initscr() has been called. The macro expansion is roughly equivalent to: { typedef int ( * predicate_t )( void )...d = ( predicate_t ) PyCurses_API [ 2 ]; if ( ! was_initscr_called ()) { return NULL ; } } PyCursesInitialisedColor ¶ Macro checking if curses.start_color() has been called. The macro expansion is roughly equivalent to: { typedef int ( * predicate_t )( vo... - https://man.mtool.work/python/3.14/c-api/curses.html
- タプルオブジェクト (tuple object) — Python 3.14.8 ドキュメント 10342
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » タプルオブジェクト (tuple object) テーマ 自動 ライト ダーク | タプルオブジェクト (tup
...r, return -1 with an exception set. Py_ssize_t PyTuple_GET_SIZE ( PyObject * p ) ¶ Like PyTuple_Size() , but without error checking. PyObject * PyTuple_GetItem ( PyObject * p , Py_ssize_t pos ) ¶ 戻り値: 借用参照。 次に属します: Stable ABI . p の指すタプ...NULL). void PyTuple_SET_ITEM ( PyObject * p , Py_ssize_t pos , PyObject * o ) ¶ Like PyTuple_SetItem() , but does no error checking, and should only be used to fill in brand new tuples. Bounds checking is performed as an assertion if Python is built in d...値: 借用参照。 次に属します: Stable ABI . Return the object at position pos in the struct sequence pointed to by p . Bounds checking is performed as an assertion if Python is built in debug mode or with assertions . PyObject * PyStructSequence_GET_ITEM (... - https://man.mtool.work/python/3.14/c-api/tuple.html
- 弱参照オブジェクト — Python 3.14.8 ドキュメント 9788
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 弱参照オブジェクト テーマ 自動 ライト ダーク | 弱参照オブジェクト ¶ Python は 弱参照
...f ob is not a weakly referenceable object, this will raise TypeError and return NULL . 参考 PyType_SUPPORTS_WEAKREFS() for checking if ob is weakly referenceable. PyObject * PyWeakref_NewProxy ( PyObject * ob , PyObject * callback ) ¶ 戻り値: 新しい参照。...NULL . If ob weakly referenceable object, this will raise TypeError and return NULL . 参考 PyType_SUPPORTS_WEAKREFS() for checking if ob is weakly referenceable. int PyWeakref_GetRef ( PyObject * ref , PyObject * * pobj ) ¶ 次に属します: Stable ABI (バー...Object * PyWeakref_GET_OBJECT ( PyObject * ref ) ¶ 戻り値: 借用参照。 Similar to PyWeakref_GetObject() , but does no error checking. バージョン 3.13 で非推奨、バージョン 3.15 で削除予定: Use PyWeakref_GetRef() instead. int PyWeakref_IsDead ( PyObject * r... - https://man.mtool.work/python/3.14/c-api/weakref.html
- タプルオブジェクト (tuple object) — Python 3.14.8 ドキュメント 9603
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » タプルオブジェクト (tuple object) テーマ 自動 ライト ダーク | タプルオブジェクト (tup
...r, return -1 with an exception set. Py_ssize_t PyTuple_GET_SIZE ( PyObject * p ) ¶ Like PyTuple_Size() , but without error checking. PyObject * PyTuple_GetItem ( PyObject * p , Py_ssize_t pos ) ¶ 戻り値: 借用参照。 次に属します: Stable ABI . p の指すタプ...NULL). void PyTuple_SET_ITEM ( PyObject * p , Py_ssize_t pos , PyObject * o ) ¶ Like PyTuple_SetItem() , but does no error checking, and should only be used to fill in brand new tuples. Bounds checking is performed as an assertion if Python is built in d...値: 借用参照。 次に属します: Stable ABI . Return the object at position pos in the struct sequence pointed to by p . Bounds checking is performed as an assertion if Python is built in debug mode or with assertions . PyObject * PyStructSequence_GET_ITEM (... - https://man.mtool.work/python/3.14/c-api/tuple.html
- Curses C API — Python 3.14.8 ドキュメント 9234
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » Curses C API テーマ 自動 ライト ダーク | Curses C API ¶ curses exposes a small C inte
...s. In particular, they can only be used as macro; or macro , but not macro() or macro(); . PyCursesSetupTermCalled ¶ Macro checking if curses.setupterm() has been called. The macro expansion is roughly equivalent to: { typedef int ( * predicate_t )( void...lled = ( predicate_t ) PyCurses_API [ 1 ]; if ( ! was_setupterm_called ()) { return NULL ; } } PyCursesInitialised ¶ Macro checking if curses.initscr() has been called. The macro expansion is roughly equivalent to: { typedef int ( * predicate_t )( void )...d = ( predicate_t ) PyCurses_API [ 2 ]; if ( ! was_initscr_called ()) { return NULL ; } } PyCursesInitialisedColor ¶ Macro checking if curses.start_color() has been called. The macro expansion is roughly equivalent to: { typedef int ( * predicate_t )( vo... - https://man.mtool.work/python/3.14/c-api/curses.html
- 弱参照オブジェクト — Python 3.14.8 ドキュメント 8483
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » 弱参照オブジェクト テーマ 自動 ライト ダーク | 弱参照オブジェクト ¶ Python は 弱参照
...f ob is not a weakly referenceable object, this will raise TypeError and return NULL . 参考 PyType_SUPPORTS_WEAKREFS() for checking if ob is weakly referenceable. PyObject * PyWeakref_NewProxy ( PyObject * ob , PyObject * callback ) ¶ 戻り値: 新しい参照。...NULL . If ob weakly referenceable object, this will raise TypeError and return NULL . 参考 PyType_SUPPORTS_WEAKREFS() for checking if ob is weakly referenceable. int PyWeakref_GetRef ( PyObject * ref , PyObject * * pobj ) ¶ 次に属します: Stable ABI (バー...Object * PyWeakref_GET_OBJECT ( PyObject * ref ) ¶ 戻り値: 借用参照。 Similar to PyWeakref_GetObject() , but does no error checking. バージョン 3.13 で非推奨、バージョン 3.15 で削除予定: Use PyWeakref_GetRef() instead. int PyWeakref_IsDead ( PyObject * r... - https://man.mtool.work/python/3.14/c-api/weakref.html
- 引数の解釈と値の構築 — Python 3.14.8 ドキュメント 8298
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » ユーティリティ » 引数の解釈と値の構築 テーマ 自動 ライト ダーク | 引数の解釈と値の構築 ¶ These functions are useful when creating
...teger formats, OverflowError is raised if the value is out of range for the C type. For unsigned integer formats, no range checking is done --- the most significant bits are silently truncated when the receiving field is too small to receive the value. b...teger, stored in a C unsigned char . B ( int ) [unsigned char] Convert a Python integer to a tiny integer without overflow checking, stored in a C unsigned char . h ( int ) [short int] Python の整数を、 C の short int 型に変換します。 H ( int ) [unsigned...short int] Convert a Python integer to a C unsigned short int , without overflow checking. i ( int ) [int] Python の整数を、 C の int 型に変換します。 I ( int ) [unsigned int] Convert a Python integer to a C unsi... - https://man.mtool.work/python/3.14/c-api/arg.html