Results of 1 - 10 of about 15 for category (0.006 sec.)
- warnings --- 警告の制御 14524
- warnings --- 警告の制御 ソースコード: Lib/warnings.py 警告メッセージは一般に、ユーザに警告しておいた方がよいような状況下にプログラムが置かれているが、その状況は (通常は) 例外を送出したりそのプログラムを終了させるほどの正当な理由がないといっ
...力されますが、すべての警告を無視したり、警告を例外にしたりと、その処理を柔軟に変更することができます。 警告の処理は warning category 、警告メッセージのテキスト、警告が発行されたソースの位置に基づいて変化します。 同じソースの位置で特定の警告が繰り返された場...ルタとの照合が行われます; 一致したフィルタ仕様がその警告の処理方法を決定します。フィルタの各エントリは ( action , message , category , module , lineno ) からなるタプルです。ここで: action は以下の文字列のうちの一つです: 値 処理方法 "default" 警告の発生箇所...e start of the warning message must contain (case-insensitively), ignoring any whitespace at the start or end of message . category はクラス ( Warning のサブクラス) です。 警告が一致するには、その警告カテゴリが category のサブクラスでなければなりません。... - https://man.mtool.work/python/3.14/library/warnings.html
- unicodedata --- Unicode データベース 10536
- unicodedata --- Unicode データベース This module provides access to the Unicode Character Database (UCD) which defines character properties for all Unicode characters. The data contained in this database is compiled from the UCD version 16.
...default を返し、 default を指定していなければ ValueError を送出します。 >>> unicodedata . numeric ( '½' ) 0.5 unicodedata. category ( chr ) Returns the general category assigned to the character chr as string. General category names consist of two letter...s. See the General Category Values section of the Unicode Character Database documentation for a list of category codes. For example: >>> unicodedata.... category ( 'A' ) # 'L'etter (文字)、'u'ppercase (大文字) 'Lu' unicodedata. bidirectional ( chr ) Returns the bidirectional class as... - https://man.mtool.work/python/3.14/library/unicodedata.html
- 例外処理 9091
- 例外処理 この章で説明する関数を使うと、 Python の例外の処理や例外の送出ができるようになります。 Python の例外処理の基本をいくらか理解することが大切です。例外は POSIX errno 変数にやや似た機能を果たします: 発生した中で最も新しいエラーの (スレ
...の例外処理を行います (例えば、保持していた参照に対し Py_DECREF() を行い、エラー値を返します)。 int PyErr_WarnEx ( PyObject * category , const char * message , Py_ssize_t stack_level ) 次に属します: Stable ABI . 警告メッセージを発行します。 category 引数は警...ュメンテーションの -W オプションを参照してください。警告コントロールのためのC APIはありません。 int PyErr_Warn ( PyObject * category , const char * message ) Equivalent to PyErr_WarnEx ( category , message , 1 ) . int PyErr_WarnExplicitObject ( PyObject *...category , PyObject * message , PyObject * filename , int lineno , PyObject * module , PyObject * registry ) すべての警告の属性を明... - https://man.mtool.work/python/3.14/c-api/exceptions.html
- locale --- 国際化サービス 9004
- locale --- 国際化サービス ソースコード: Lib/locale.py locale モジュールは POSIX のロケールデータベースと関連機能へのアクセスを提供します。 POSIX のロケール機構を使うと、ソフトウェアが実行される国ごとの事情をすべて知っていなくても、アプリケー
...ています。 exception locale. Error setlocale() に渡されたロケールが認識されない場合例外が送出されます。 locale. setlocale ( category , locale = None ) locale が指定され、 None でない場合、 setlocale() は category のロケール設定を変更します。 利用できるカテ...e , but without encoding and @ -modifier. The language code and encoding can be None . locale が省略されたり None の場合、 category の現在の設定が返されます。 以下はプログラム例です: >>> import locale >>> loc = locale . setlocale ( locale . LC_ALL ) # 現...、言語コードやエンコーディングは None になることがあります。 "C" ロケールは (None, None) で表されます。 locale. getlocale ( category = LC_CTYPE ) 指定されたロケールカテゴリの現在の設定を、言語コードとエンコーディングからなるタプルで返します。 category には... - https://man.mtool.work/python/3.14/library/locale.html
- sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース 8638
- sqlite3 --- SQLite データベース用の DB-API 2.0 インターフェース ソースコード: Lib/sqlite3/ SQLite は、軽量なディスク上のデータベースを提供する C ライブラリです。別のサーバプロセスを用意する必要なく、 SQL クエリー言語の非標準的な一種を使用し
...p ( dst ) dst . close () src . close () Added in version 3.7. 参考 UTF-8 以外のテキストエンコーディングの扱い方 getlimit ( category , / ) 接続(connection)の実行時制限を取得します。 パラメータ : category ( int ) -- 問い合わせを行う実行時制限カテゴリー( SQ...Lite limit category )。 戻り値の型 : int 例外 : ProgrammingError -- category に、 背後の SQLite ライブラリが認識できないカテゴリーを指定した場...トは 1000000000 です): >>> con . getlimit ( sqlite3 . SQLITE_LIMIT_SQL_LENGTH ) 1000000000 Added in version 3.11. setlimit ( category , limit , / ) 接続の実行時制限を設定します。 コンパイル時上限を超えて制限を増やそうとすると、 暗黙のうちにコンパイル時上限... - https://man.mtool.work/python/3.14/library/sqlite3.html
- Superseded Modules 8551
- Superseded Modules この章で説明するモジュールは、ほとんどの用途で他のモジュールに置き換えられており、主に後方互換性を保つために残されています。 この章には、問題の限られた範囲だけを扱い、標準ライブラリの別の場所にもっと広く適用できる解決策が
...new projects. With the removal of various obsolete modules through PEP 594 , there are currently no modules in this latter category. getopt --- C 形式のコマンドラインオプション解析 他のマニュアルの関連ページ Linux JM getopt(1) PHP getopt() Linux JM getop... - https://man.mtool.work/python/3.14/library/superseded.html
- test --- Python の回帰テストパッケージ 8464
- test --- Python の回帰テストパッケージ 注釈 test パッケージは Python 内部での使用のみを目的としています。 このドキュメントは Python のコア開発者向けに用意されています。 ここで説明するコードは Python のリリース間で予告なく変更または削除される
...ュールは警告のテストを支援する機能を提供します。 Added in version 3.10. test.support.warnings_helper. ignore_warnings ( * , category ) category のインスタンスである警告を抑制します。 category は Warning またはそのサブクラスでなければなりません。 warnings....catch_warnings() と warnings.simplefilter('ignore', category=category) を組み合わせるのとおおむね同等です。 例えば次のように使います。 @warning_helper . ignore_warnings ( category = D...を呼び出すのとほぼ同等で、記録した結果を自動的に検証するオプションもあります。 check_warnings は ("message regexp", WarningCategory) の形をした 2要素タプルを位置引数として受け取ります。1つ以上の filters が与えられた場合や、オプションのキーワード引数 quie... - https://man.mtool.work/python/3.14/library/test.html
- Unicode HOWTO 7906
- Unicode HOWTO Release : 1.12 この HOWTO 文書は、文字データの表現のための Unicode 仕様の Python におけるサポートについて論じ、さらに Unicode を使おうというときによく出喰わす多くの問題について説明します。 Unicode 入門 定義 今日のプログラムは広
...chr ( 3972 ) + chr ( 6000 ) + chr ( 13231 ) for i , c in enumerate ( u ): print ( i , ' %04x ' % ord ( c ), unicodedata . category ( c ), end = " " ) print ( unicodedata . name ( c )) # 2 番目の文字の数値を取得する print ( unicodedata . numeric ( u [ 1...nonspacing"、 'So' は "Symbol, other" を意味しています。カテゴリーコードの一覧は Unicode Character Database 文書の General Category Values 節 を参照してください。 文字列の比較 Unicode では、同じ文字の並びを異なるコードポイント列で表せるため、文字列の比較... - https://man.mtool.work/python/3.14/howto/unicode.html
- 1. コマンドラインと環境 7819
- 1. コマンドラインと環境 CPython インタプリタはコマンドラインと環境を読み取って様々な設定を行ないます。 ほかの実装では、コマンドラインの形式が異なる場合があります。 関連情報は 別のPythonの実装 を参照してください。 1.1. コマンドライン Python
...タが適切なアクション名に解決します。 例えば、 -Wi は -Wignore と同じです。 引数の完全形は次のようになります: action:message:category:module:lineno 空のフィールドはすべての値にマッチします。 末尾の空のフィールドは省略できます。 例えば、 -W ignore::Deprecat...にマッチする警告にだけ適用されます。 The message field must match the whole warning message; this match is case-insensitive. category フィールドは警告カテゴリ (例: DeprecationWarning ) とマッチします。 このフィールドにはクラス名を指定する必要があります。 メ... - https://man.mtool.work/python/3.14/using/cmdline.html
- What's New in Python 2.1 7732
- What's New in Python 2.1 著者 : A.M. Kuchling はじめに この記事はPython 2.1の新機能について説明します。Python 2.1には Python 2.0ほど多くの変更点はありませんが、楽しい驚きがあります。2.1はPythonの拡張計画(PEP)を使い動かす最初のリリースであ
...を抑制できます。 import warnings warnings . filterwarnings ( action = 'ignore' , message = '.*regex module is deprecated' , category = DeprecationWarning , module = '__main__' ) これにより、 __main__ モジュールで発生する DeprecationWarning クラスの警告だけ... - https://man.mtool.work/python/3.14/whatsnew/2.1.html