per page, with , order by , clip by
Results of 1 - 10 of about 32 for versions (0.006 sec.)
C API Stability 14756
C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修 ... API , a subset of Python's C API. Extensions that only use the Limited API can be compiled once and be loaded on multiple versions of Python. Contents of the Limited API are listed below . Py_LIMITED_API Define this macro before including Python.h to op ... rectly, hardcode a minimum minor version (e.g. 0x030A0000 for Python 3.10) for stability when compiling with future Python versions. You can also define Py_LIMITED_API to 3 . This works the same as 0x03020000 (Python 3.2, the version that introduced Limi ... able ABI To enable this, Python provides a Stable ABI : a set of symbols that will remain ABI-compatible across Python 3.x versions. 注釈 The Stable ABI prevents ABI issues, like linker errors due to missing symbols or data corruption due to changes in s ...
https://man.mtool.work/python/3.14/c-api/stable.html
5. macOS で Python を使う 12581
5. macOS で Python を使う このドキュメントでは、Mac コンピュータで Python を使い始める際に知っておくべき、macOS 固有の挙動を概説します。 macOS を実行する Mac 上の Python は、ほかの Unix 派生プラットフォーム上の Python と非常によく似ています ... ve Distributions を参照してください。 5.1. python.org の macOS 用 Python を使う 5.1.1. インストール手順 For current Python versions (other than those in security status), the release team produces a Python for macOS installer package for each new release ... nary build of Python which runs natively on all Macs (Apple Silicon and Intel) that are supported by a wide range of macOS versions, currently typically from at least macOS 10.15 Catalina on. The downloaded file is a standard macOS installer package file ... 境変数に PythonT フレームワークの bin ディレクトリを明示的に追加できます: export PATH="/Library/Frameworks/PythonT.framework/Versions/3.14/bin":"$PATH" 従来のフレームワークのインストールでも、対象が Python.framework である以外は、デフォルトで同様の処理を行 ...
https://man.mtool.work/python/3.14/using/mac.html
アノテーションのベストプラクティス 9649
アノテーションのベストプラクティス author : Larry Hastings 概要 このドキュメントは、アノテーションの辞書を扱う上でのベストプラクティスをまとめるものです。Python オブジェクトに付与された __annotations__ を Python コードからアクセスする際には ... __ 辞書を書き換えるのは避けるべきです。 __annotations__ 属性を削除するのは避けるべきです。 __annotations__ の注意点 In all versions of Python 3, function objects lazy-create an annotations dict if no annotations are defined on that object. You can delete ... Reading cls.__dict__.get('__annotations__', None) may therefore return None even when the class has annotations. On these versions, always use annotationlib.get_annotations() (or inspect.get_annotations() ) rather than accessing __dict__ directly. Only ...
https://man.mtool.work/python/3.14/howto/annotations.html
C API 拡張のフリースレッド対応 8924
C API 拡張のフリースレッド対応 CPython 3.13 から、 global interpreter lock (GIL) を無効にして実行する free threading という構成がサポートされています。 このドキュメントでは、C API を使う拡張をフリースレッドに対応させる方法を説明します。 C か ... zation (i.e., PyModuleDef_Init() ) should add a Py_mod_gil slot in the module definition. If your extension supports older versions of CPython, you should guard the slot with a PY_VERSION_HEX check. static struct PyModuleDef_Slot module_slots [] = { ... ... build. If you currently use the stable ABI, you can continue to build a single wheel for multiple non-free-threaded Python versions. Windows 公式 Windows インストーラの制限により、ソースから拡張をビルドする際は、 Py_GIL_DISABLED=1 を手動で定義する必要があ ...
https://man.mtool.work/python/3.14/howto/free-threading-extensions.html
3. 拡張の型の定義: 雑多なトピック 8554
3. 拡張の型の定義: 雑多なトピック この節ではさまざまな実装可能なタイプメソッドと、それらが何をするものであるかについて、ざっと説明します。 以下は PyTypeObject の定義です。 デバッグビルド でしか使われないいくつかのメンバは省いてあります: typ ... ッシュがこの型で無効な場合は、 * _Py_ATTR_CACHE_UNUSED に設定する (独自の MRO エントリーなどによる)。 * それ以外の場合は MAX_VERSIONS_PER_CLASS (別の場所で定義) 以下。 */ uint16_t tp_versions_used ; } PyTypeObject ; たくさんの メソッドがありますね。でもそん ...
https://man.mtool.work/python/3.14/extending/newtypes.html
syslog --- Unix syslog ライブラリルーチン群 8554
syslog --- Unix syslog ライブラリルーチン群 このモジュールは Unix の syslog ライブラリルーチンへのインターフェースを提供します。 syslog の機能の詳しい説明は、Unix のマニュアルページを参照してください。 利用可能な環境 : Unix, not WASI, not i ... arguments. 引数 priority , message を指定して 監査イベント syslog.syslog を送出します。 バージョン 3.2 で変更: In previous versions, openlog() would not be called automatically if it wasn't called prior to the call to syslog() , deferring to the syslog i ...
https://man.mtool.work/python/3.14/library/syslog.html
4. Windows で Python を使う 8554
4. Windows で Python を使う このドキュメントは、 Python を Microsoft Windows で使うときに知っておくべき、 Windows 固有の動作についての概要を伝えることを目的としています。 多くの Unix システムやサービスと異なり、Windows にはシステムでサポート ... terminal to launch your current latest version of Python. This version may change over time as you add or remove different versions, and the py list command will show which is current. 一般に、プロジェクトごとに 仮想環境 を作成し、ターミナルで <env>\Scri ... tall manager can be installed from the Microsoft Store app or downloaded and installed from python.org/downloads . The two versions are identical. Store からインストールするには、"Install" をクリックするだけです。 完了したら、ターミナルを開いて python と ... left. If no tags are provided with --update , all installs managed by the Python install manager will be updated if newer versions are available. Updates will remove any modifications made to the install, including globally installed packages, but will ...
https://man.mtool.work/python/3.14/using/windows.html
同期プリミティブ 8199
同期プリミティブ C API は基本的な相互排他ロックを提供します。 type PyMutex 相互排他ロックです。 PyMutex は、ロックされていない状態を表すために 0 で初期化する必要があります。 例えば次のようにします。 PyMutex mutex = { 0 }; PyMutex のインスタ ... y be used as in the given macro expansions. Note that the sizes and contents of the structures may change in future Python versions. 注釈 2 個のオブジェクトを同時にロックする操作には、 Py_BEGIN_CRITICAL_SECTION2 を使う必要があります。 複数のオブジェクトを ...
https://man.mtool.work/python/3.14/c-api/synchronization.html
What's New in Python 2.1 8199
What's New in Python 2.1 著者 : A.M. Kuchling はじめに この記事はPython 2.1の新機能について説明します。Python 2.1には Python 2.0ほど多くの変更点はありませんが、楽しい驚きがあります。2.1はPythonの拡張計画(PEP)を使い動かす最初のリリースであ ... ならないのです。 参考 PEP 236 - バック・トゥ・ザ・ __future__ Tim Peter著、Jeremy Hylton主実装 PEP 207: 拡張比較 In earlier versions, Python's support for implementing comparisons on user-defined classes and extension types was quite simple. Classes could ... ">=" , "==" , or "!=" . If called without the optional third argument, cmp() will only return -1, 0, or +1 as in previous versions of Python; otherwise it will call the appropriate method and can return any Python object. C プログラマにとって興味深い関連 ...
https://man.mtool.work/python/3.14/whatsnew/2.1.html
What's New In Python 3.2 8199
What's New In Python 3.2 著者 : Raymond Hettinger この記事では Python 3.1 と比較した Python 3.2 の新機能を説明します。 Python 3.2 は 2011 年 2 月 20 日にリリースされました。 主な変更点をいくつか取り上げ、例を示します。 すべての詳細については ... >> import dis , random >>> dis . show_code ( random . choice ) Name: choice Filename: /Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/random.py Argument count: 2 Kw-only arguments: 0 Number of locals: 3 Stack size: 11 Flags: OPTIMIZED, NE ... ディレクトリのパスを明らかにします。 >>> import site >>> site . getsitepackages () ['/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages', '/Library/Frameworks/Python.framework/Versions/3.2/lib/site-python', '/Library/Python/3. ...
https://man.mtool.work/python/3.14/whatsnew/3.2.html
PREV 1 2 3 4 NEXT