per page, with , order by , clip by
Results of 1 - 10 of about 18 for want to (0.014 sec.)
want (18), to (309)
The Python Profilers 20533
The Python Profilers Source code: Lib/profile.py and Lib/pstats.py Introduction to the profilers cProfile and profile provide deterministic profiling of Python programs. A profile is a set of statistics that describes how often and for how ... long various parts of the program executed. These statistics can be formatted into reports via the pstats module. The Python standard library provides two different implementations of the same profiling in ... t Rosen and Ted Czotter. profile , a pure Python module whose interface is imitated by cProfile , but which adds significant overhead to profiled programs. If you're trying to extend the profiler in some way, the task might be easier with this modu ... so the C code would seem faster than any Python one. Instant User's Manual This section is provided for users that "don't want to read the manual." It provides a very brief overview, and allows a user to rapidly perform profiling on an existing appl ...
https://man.mtool.work/python/3.14/library/profile.html
6. Android で Python を使う 20347
6. Android で Python を使う Android における Pythonは、デスクトッププラットフォームにおける Python とは異なります。 デスクトッププラットフォームでは、 Python は一般的にコンピューターのどのユーザーでも使えるシステムリソースとしてインストール ... されます: BeeWare プロジェクトの Briefcase Kivy プロジェクトの Buildozer Chaquopy Flet pyqtdeploy Termux If you're sure you want to do all of this manually, read on. You can use the testbed app as a guide; each step below contains a link to the releva ... id 向けリリースをダウンロードすることです。 以下で説明する prefix ディレクトリは、パッケージの最上位にあります。 Or if you want to build it yourself, follow the instructions in Android/README.md . The prefix directory will be created under cross-buil ... d/ HOST . Add code to your build.gradle file to copy the following items into your project. All except your own Python code can be copied from p ...
https://man.mtool.work/python/3.14/using/android.html
1. Extending Python with C or C++ 18019
1. Extending Python with C or C++ It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can't be done directly in Python: they can implement new built-in objec ... t types, and they can call C library functions and system calls. To support extensions, the Python API (Application Programmers Interface) defines a set of functions, macros and variables th ... at provide access to most aspects of the Python run-time system. The Python API is incorporated in a C source file by including the header "Pyt ... A Simple Example Let's create an extension module called spam (the favorite food of Monty Python fans...) and let's say we want to create a Python interface to the C library function system() [ 1 ] . This function takes a null-terminated character st ...
https://man.mtool.work/python/3.14/extending/extending.html
浮動小数点オブジェクト 17627
浮動小数点オブジェクト type PyFloatObject この PyObject のサブタイプは Python の浮動小数点オブジェクトを表します。 PyTypeObject PyFloat_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python の浮動小数点型を表します。 Pyt ... hon レベルの float と同じオブジェクトです。 int PyFloat_Check ( PyObject * p ) 引数が PyFloatObject か PyFloatObject のサブタイプであるときに真を返します。この関数は常に成功します。 int PyFloat_CheckExact ( PyObject * ... p ) 引数が PyFloatObject であるが PyFloatObject のサブタイプでないときに真を返します。この関数は常に成功します。 PyObject * PyFloat_FromString ... n version 3.11. パック関数 The pack routines write 2, 4 or 8 bytes, starting at p . le is an int argument, non-zero if you want the bytes string in little-endian format (exponent last, at p+1 , p+3 , or p+6 and p+7 ), zero if you want big-endian form ...
https://man.mtool.work/python/3.14/c-api/float.html
Logging クックブック 16288
Logging クックブック Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に有用であるとされていた、logging に関連するいくつものレシピを含んでいます。チュートリアルやリファレンス情報へのリンクについては その他のリソース ... ) a = 1 + 1 self . logger . info ( 'done doing something' ) def some_function (): module_logger . info ( 'received a call to "some_function"' ) 出力はこのようになります: 2005-03-23 23:47:11,663 - spam_application - INFO - creating an instance of a ... O - calling auxiliary_module.some_function() 2005-03-23 23:47:11,672 - spam_application.auxiliary - INFO - received a call to 'some_function' 2005-03-23 23:47:11,673 - spam_application - INFO - done with auxiliary_module.some_function() 複数のスレッ ... }, "root" : { "level" : "DEBUG" , "handlers" : [ "stderr" , "stdout" , "file" ] } } This configuration does almost what we want, except that sys.stdout would show messages of severity ERROR and only events of this severity and higher will be tracked ...
https://man.mtool.work/python/3.14/howto/logging-cookbook.html
email: 使用例 14996
email : 使用例 ここでは email パッケージを使って電子メールメッセージを読む・書く・送信するいくつかの例を紹介します。より複雑な MIME メッセージについても扱います。 まず、単純なテキストメッセージを作成して送信する方法を見てみましょう (テキスト ... ルアドレス # you == 受信者のメールアドレス msg [ 'Subject' ] = f 'The contents of { textfile } ' msg [ 'From' ] = me msg [ 'To' ] = you # 自分の SMTP サーバー経由でメッセージを送信します。 s = smtplib . SMTP ( 'localhost' ) s . send_message ( msg ) ... ありません) は、次のようにします: headers = Parser ( policy = default ) . parsestr ( 'From: Foo Bar <user@example.com> \n ' 'To: <someone_else@example.com> \n ' 'Subject: Test message \n ' ' \n ' 'Body would go here \n ' ) # これで、辞書としてヘッダー ... ill not see this in a MIME-aware mail reader. \n ' # Open the files in binary mode. You can also omit the subtype # if you want MIMEImage to guess it. for file in pngfiles : with open ( file , 'rb' ) as fp : img_data = fp . read () msg . add_attachme ...
https://man.mtool.work/python/3.14/library/email.examples.html
doctest --- 対話型の Python の例をテストする 14963
doctest --- 対話型の Python の例をテストする ソースコード: Lib/doctest.py doctest モジュールは Python の対話セッションに見えるテキストを探し、そのセッションを実行して記載どおりに動作するか検証します。 主な使い方は次のとおりです。 モジュール ... キュメント」にもなります。 以下に完全かつ短い実行例を示します: """ これは "example" モジュールです。 example モジュールは factorial() という関数を一つ提供します。 例えば、 >>> factorial(5) 120 """ def factorial ( n ): """0 以上の整数 n の階乗を返しま ... す。 >>> [factorial(n) for n in range(6)] [1, 1, 2, 6, 24, 120] >>> factorial(30) 265252859812191058636308480000000 >>> factorial(-1) Trac ... 文字列からテスト実行例を取り出したのでない場合には None になります。 Example オブジェクト class doctest. Example ( source , want , exc_msg = None , lineno = 0 , indent = 0 , options = None ) ひとつの Python 文と、それに対する期待する出力からなる、単一 ...
https://man.mtool.work/python/3.14/library/doctest.html
5. macOS で Python を使う 14042
5. macOS で Python を使う このドキュメントでは、Mac コンピュータで Python を使い始める際に知っておくべき、macOS 固有の挙動を概説します。 macOS を実行する Mac 上の Python は、ほかの Unix 派生プラットフォーム上の Python と非常によく似ています ... than those in security status), the release team produces a Python for macOS installer package for each new release. A list of available installers is available here . We recommend using the most recent supported Python version where possible. Cur ... . The downloaded file is a standard macOS installer package file ( .pkg ). File integrity information (checksum, size, sigstore signature, etc) for each file is included on the release download page. Installer packages and their contents are signed ... 3.14t="/Library/Frameworks/PythonT.framework/Versions/3.14/bin/python3.14t" 5.5.2. コマンドラインからのインストール If you want to use automation to install the python.org installer package (rather than by using the familiar macOS Installer GUI app), ...
https://man.mtool.work/python/3.14/using/mac.html
argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー 13588
argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー Added in version 3.2. ソースコード: Lib/argparse.py 注釈 argparse は基本的なコマンドラインアプリケーションの実装に推奨される標準ライブラリのモジュールですが、動作を厳密 ... rser = argparse . ArgumentParser ( prog = 'ProgramName' , description = 'What the program does' , epilog = 'Text at the bottom of help' ) ArgumentParser.add_argument() メソッドは各引数の仕様をパーサーに付属させます。このメソッドは位置引数、値を受け ... 引数 parser . add_argument ( '-c' , '--count' ) # 値を取るオプション parser . add_argument ( '-v' , '--verbose' , action = 'store_true' ) # オン/オフフラグ ArgumentParser.parse_args() メソッドはパーサーを実行し、抽出したデータを argparse.Namespace オ ... ... Please do not mess up this text! ... -------------------------------- ... I have indented it ... exactly the way ... I want it ... ''' )) >>> parser . print_help () usage: PROG [-h] Please do not mess up this text! ------------------------------- ...
https://man.mtool.work/python/3.14/library/argparse.html
email.generator: MIME 文書の生成 12712
email.generator : MIME 文書の生成 ソースコード: Lib/email/generator.py メッセージオブジェクトの構造で表された電子メールメッセージから、フラットな (直列化された) 表現を生成することは、よく行う処理の一つです。 smtplib.SMTP.sendmail() で送信し ... と生成が互いに逆の操作になるよう設計されています。 つまり、直列化されたバイトストリームを BytesParser で解析し、 BytesGenerator で再生成すると、入力と同じ出力が得られるはずです [ 1 ] 。 (一方、プログラムで構築した EmailMessage にジェネレーターを使う ... と、デフォルト値が補われる際に EmailMessage オブジェクトが変更されることがあります。) Generator クラスを使うと、メッセージをバイナリではなくテキストの直列化表現にフラット化できます。 ただし、Unicode はバイナリデータを ... think of this as Generator serializing to an I/O stream that is not "8 bit clean". In other words, most applications will want to be using BytesGenerator , and not Generator . class email.generator. Generator ( outfp , mangle_from_ = None , maxheade ...
https://man.mtool.work/python/3.14/library/email.generator.html
PREV 1 2 NEXT