Results of 1 - 10 of about 25 for Location (0.010 sec.)
- What's New In Python 3.2 13184
- What's New In Python 3.2 著者 : Raymond Hettinger この記事では Python 3.1 と比較した Python 3.2 の新機能を説明します。 Python 3.2 は 2011 年 2 月 20 日にリリースされました。 主な変更点をいくつか取り上げ、例を示します。 すべての詳細については
...ict ( dict ): ... def __missing__ ( self , key ): ... return '< {} >' . format ( key ) ... >>> 'Hello {name} , welcome to {location} ' . format_map ( PlaceholderDict ()) 'Hello <name>, welcome to <location>' (Suggested by Raymond Hettinger and implemente...スとスライス記法のサポートはインプレースな編集に適しています: >>> REC_LEN , LOC_START , LOC_LEN = 34 , 7 , 11 >>> def change_location ( buffer , record_number , location ): ... start = record_number * REC_LEN + LOC_START ... buffer [ start : start + LOC_LE...N ] = location >>> import io >>> byte_stream = io . BytesIO ( ... b 'G3805 storeroom Main chassis ' ... b 'X7899 shipping Reserve cog ' .... - https://man.mtool.work/python/3.14/whatsnew/3.2.html
- DTrace と SystemTap で CPython を測定する 12370
- DTrace と SystemTap で CPython を測定する author : David Malcolm author : Łukasz Langa Dtrace と SystemTap はモニタリングツールで、コンピュータシステムのプロセスが何をしているかを調べる方法を提供します。 どちらもドメイン固有言語 (domain-spe
...: Owner Data size Description stapsdt 0x00000031 NT_STAPSDT (SystemTap probe descriptors) Provider: python Name: gc__start Location: 0x00000000004371c3, Base: 0x0000000000630ce2, Semaphore: 0x00000000008d6bf6 Arguments: -4@%ebx stapsdt 0x00000030 NT_STAP...SDT (SystemTap probe descriptors) Provider: python Name: gc__done Location: 0x00000000004374e1, Base: 0x0000000000630ce2, Semaphore: 0x00000000008d6bf8 Arguments: -8@%rax stapsdt 0x00000045 NT_STAP...SDT (SystemTap probe descriptors) Provider: python Name: function__entry Location: 0x000000000053db6c, Base: 0x0000000000630ce2, Semaphore: 0x00000000008d6be8 Arguments: 8@%rbp 8@%r12 -4@%eax stapsdt 0x00... - https://man.mtool.work/python/3.14/howto/instrumentation.html
- urllib パッケージを使ってインターネット上のリソースを取得するには 11142
- urllib パッケージを使ってインターネット上のリソースを取得するには Author : Michael Foord はじめに Related Articles 同じように Python でインターネットリソースを取得するのに以下の記事が役に立ちます: Basic 認証 Basic 認証 についてのチュートリア
....parse import urllib.request url = 'http://www.someserver.com/cgi-bin/register.cgi' values = { 'name' : 'Michael Foord' , 'location' : 'Northampton' , 'language' : 'Python' } data = urllib . parse . urlencode ( values ) data = data . encode ( 'ascii' ) #...行います: >>> import urllib.request >>> import urllib.parse >>> data = {} >>> data [ 'name' ] = 'Somebody Here' >>> data [ 'location' ] = 'Northampton' >>> data [ 'language' ] = 'Python' >>> url_values = urllib . parse . urlencode ( data ) >>> print ( url..._values ) # The order may differ from below. name=Somebody+Here&language=Python&location=Northampton >>> url = 'http://www.example.com/example.cgi' >>> full_url = url + '?' + url_values >>> data = urllib . reque... - https://man.mtool.work/python/3.14/howto/urllib2.html
- importlib --- import の実装 9531
- importlib --- import の実装 Added in version 3.1. ソースコード: Lib/importlib/__init__.py はじめに importlib パッケージには 3 つの目的があります。 1 つ目は import 文 (ひいては __import__() 関数) の実装を Python のソースコードで提供することで
...定する必要があります。 名前空間パッケージなど、該当する場所がない例外的な場合には None に設定してください。 submodule_search_locations パッケージのサブモジュールを検索する場所を列挙した、文字列の シーケンス です ( module.__path__ を参照)。 空の場合もありま...モジュールでは空文字列)。 module.__package__ を参照してください。 モジュール自体がパッケージであれば、 name と同じです。 has_location スペックの origin がロード可能な場所を指す場合は True 、それ以外は False です。 この値は origin の解釈方法と、モジュールの...利用可能な ローダー API を使い、スペックに不足している情報を補います。 Added in version 3.4. importlib.util. spec_from_file_location ( name , location , * , loader = None , submodule_search_locations = None ) ファイルへのパスにもとづいて ModuleSpec インス... - https://man.mtool.work/python/3.14/library/importlib.html
- sys.monitoring --- 実行イベントモニタリング 9531
- sys.monitoring --- 実行イベントモニタリング Added in version 3.12. 注釈 sys.monitoring は sys モジュール内の名前空間で、独立したモジュールではありません。 import sys.monitoring は ModuleNotFoundError で失敗します。 代わりに import sys を実行
...効にします。 ローカルイベント Local events are associated with normal execution of the program and happen at clearly defined locations. All local events can be disabled. The local events are: PY_START PY_RESUME PY_RETURN PY_YIELD CALL LINE INSTRUCTION JUMP...取れるのは、対応する CALL を監視している場合だけです。 その他のイベント Other events are not necessarily tied to a specific location in the program and cannot be individually disabled via DISABLE . 監視できるその他のイベントは次のとおりです: PY_THROW PY_U...。 If DISABLE is returned by a callback for a global event , ValueError will be raised by the interpreter in a non-specific location (that is, no traceback will be provided). sys.monitoring. restart_events ( ) → None すべてのツールについて、 sys.monitorin... - https://man.mtool.work/python/3.14/library/sys.monitoring.html
- tkinter --- Tcl/Tk の Python インターフェース 9116
- tkinter --- Tcl/Tk の Python インターフェース ソースコード: Lib/tkinter/__init__.py tkinter パッケージ ("Tk インターフェース") は、 Tcl/Tk GUI ツールキットに対する標準の Python インターフェースです。 Tk と tkinter は macOS を含むほとんどの
...grid_columnconfigure() と同じですが、列ではなく行に適用されます。 rowconfigure() は grid_rowconfigure() の別名です。 grid_location ( x , y ) このコンテナーからの相対位置 ( x , y ) をピクセル単位で指定し、その位置を含むグリッドのセルの (column, row) を返...re() と同じです。 グリッドの行のオプションを取得または設定します。 rowconfigure() は grid_rowconfigure() の別名です。 grid_location ( x , y ) Misc.grid_location() と同じです。 x , y のピクセルを含むセルの (column, row) を返します。 location() は grid_loc... - https://man.mtool.work/python/3.14/library/tkinter.html
- デスクリプタ ガイド 8302
- デスクリプタ ガイド Author : Raymond Hettinger Contact : <python at rcn dot com> デスクリプタ を使うと、オブジェクトの属性の検索、保存、削除をカスタマイズできます。 本ガイドは4つの大項目から構成されています。 最初の「入門」では基本の紹介をし
...te' Traceback (most recent call last): ... AttributeError : property 'dept' of 'Immutable' object has no setter >>> mark . location = 'Mars' Traceback (most recent call last): ... AttributeError : 'Immutable' object has no attribute 'location' 3. Saves m... - https://man.mtool.work/python/3.14/howto/descriptor.html
- shelve --- Python オブジェクトの永続化 8302
- shelve --- Python オブジェクトの永続化 ソースコード: Lib/shelve.py "シェルフ (shelf, 棚)" は辞書に似た永続性を持つオブジェクトです。 "dbm" データベースとの違いは、シェルフの値 (キーではありません!) は実質上どんな Python オブジェクトにも ---
...iteback = False , keyencoding = 'utf-8' ) A subclass of Shelf which exposes first() , next() , previous() , last() and set_location() methods. These are available in the third-party bsddb module from pybsddb but not in other database modules. The dict ob... - https://man.mtool.work/python/3.14/library/shelve.html
- 12. 仮想環境とパッケージ 8302
- 12. 仮想環境とパッケージ 12.1. はじめに Python アプリケーションは、標準ライブラリに含まれないパッケージやモジュールをよく使います。特定のバグの修正が必要だったり、古いバージョンのライブラリのインターフェイスに依存していたりするため、ライブラ
...Humans. Home-page: http://python-requests.org Author: Kenneth Reitz Author-email: me@kennethreitz.com License: Apache 2.0 Location: /Users/akuchling/envs/tutorial-env/lib/python3.4/site-packages Requires: python -m pip list は仮想環境にインストールされて... - https://man.mtool.work/python/3.14/tutorial/venv.html
- 4. Windows で Python を使う 8302
- 4. Windows で Python を使う このドキュメントは、 Python を Microsoft Windows で使うときに知っておくべき、 Windows 固有の動作についての概要を伝えることを目的としています。 多くの Unix システムやサービスと異なり、Windows にはシステムでサポート
...イムのインストールをサポートしていません。 マシン単位のインストールを模倣するには、管理者として py install --target=<shared location> を実行し、 PATH 、レジストリ、スタートメニューにシステム全体への変更を自分で追加できます。 MSIX がインストールされていても...、次の WinGet コマンドで、必要なファイルを Store からダウンロードディレクトリにダウンロードします (出力先を変更するには -d <location> を追加してください)。 このコマンドは YAML ファイルも生成しますが、ダウンロードした MSIX は起動するか、以下のコマンドを使っ...開すれば、読み込み可能な Python インタープリタを提供できます。 As with the application use, packages can be installed to any location as there is an opportunity to specify search paths before initializing the interpreter. Otherwise, there are no fundamenta... - https://man.mtool.work/python/3.14/using/windows.html