Skip to content

Commit 73f1937

Browse files
authored
Merge pull request #1308 from vim-jp/hh-update-eval
Update eval.{txt,jax}
2 parents c2a843e + 8dbeba7 commit 73f1937

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

doc/eval.jax

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2353,6 +2353,26 @@ v:progpath Vim を起動したときのコマンド (パスを含む)。|--remot
23532353
しれないが、".exe" は v:progpath には追加されない。
23542354
読出し専用。
23552355

2356+
*v:python3_version* *python3-version-variable*
2357+
v:python3_version
2358+
Vim がビルドされた Python 3 のバージョン。Python が動的にロー
2359+
ドされる場合 (|python-dynamic|)、このバージョンは Python ライ
2360+
ブラリのマイナーバージョンと完全に一致しなければならない (例え
2361+
ば 3.10.2 と 3.10.3 はマイナーバージョンが "10" なので互換性が
2362+
あるが、3.9.4 と 3.10.3 は互換性がない)。|python-stable-abi|
2363+
が使われた場合、代わりにこれは使える Python の最小バージョンに
2364+
なる。(例えば、v:python3_version が 3.9 を示す場合、3.9 でも
2365+
3.10 でもそれ以上でも使える)。
2366+
2367+
この数値は Python ABI バージョン管理規則に従って 16 進数でエン
2368+
コードされる。16 進数で人間が読める完全なバージョンを得るには:
2369+
>
2370+
echo printf("%08X", v:python3_version)
2371+
< 次のようにすることで、マイナーバージョンのみを取得することがで
2372+
きる: >
2373+
echo and(v:python3_version>>16,0xff)
2374+
< 読み取り専用。
2375+
23562376
*v:register* *register-variable*
23572377
v:register 現在のノーマルモードコマンドに適用されるレジスタの名前 (そのコ
23582378
マンドが実際にレジスタを使うかどうかには依らない)。または、現

en/eval.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2424,6 +2424,25 @@ v:progpath Contains the command with which Vim was invoked, in a form
24242424
".exe" is not added to v:progpath.
24252425
Read-only.
24262426

2427+
*v:python3_version* *python3-version-variable*
2428+
v:python3_version
2429+
Version of Python 3 that Vim was built against. When
2430+
Python is loaded dynamically (|python-dynamic|), this version
2431+
should exactly match the Python library up to the minor
2432+
version (e.g. 3.10.2 and 3.10.3 are compatible as the minor
2433+
version is "10", whereas 3.9.4 and 3.10.3 are not compatible).
2434+
When |python-stable-abi| is used, this will be the minimum Python
2435+
version that you can use instead. (e.g. if v:python3_version
2436+
indicates 3.9, you can use 3.9, 3.10, or anything above).
2437+
2438+
This number is encoded as a hex number following Python ABI
2439+
versioning conventions. Do the following to have a
2440+
human-readable full version in hex: >
2441+
echo printf("%08X", v:python3_version)
2442+
< You can obtain only the minor version by doing: >
2443+
echo and(v:python3_version>>16,0xff)
2444+
< Read-only.
2445+
24272446
*v:register* *register-variable*
24282447
v:register The name of the register in effect for the current normal mode
24292448
command (regardless of whether that command actually used a

0 commit comments

Comments
 (0)