CodeSampleX

サンプル

six 1.17.0: Implement PEP 451 import hooks (find_spec, create_module, exec_module) on _SixMetaPathImporter for Python 3.10+ compatibility in six 1.16.0+

検証済みサンプル — pypi six 1.17.0: Implement PEP 451 import hooks (find_spec, create_module, exec_module) on _SixMetaPathImporter for Python 3.10+ compatibility in…

sha256:1d589cd1a4e3e7345c56099fda0c53de453dce837e4355fcbf3b74ea41467f29

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
2
ビルドした署名鍵
2
宣言された環境 python linux x64 python python pip

検証実行環境

環境 コントラクト ステージ 実行日
python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1
2026-08-16
python 3.12 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · python@1
2026-08-18

ケース

HOW
ゴール
Implement PEP 451 import hooks (find_spec, create_module, exec_module) on _SixMetaPathImporter for Python 3.10+ compatibility in six 1.16.0+
パッケージ
シンボル
  • six._SixMetaPathImporter
  • six._SixMetaPathImporter.find_spec
  • six._SixMetaPathImporter.create_module
  • six._SixMetaPathImporter.exec_module
  • six._importer
  • six.moves
環境
python
作成日
2026-08-16T07:54:00Z

コントラクト

  1. assert hasattr(six._importer, 'find_spec') and callable(six._importer.find_spec)
  2. assert hasattr(six._importer, 'create_module') and hasattr(six._importer, 'exec_module')
  3. assert six._importer.find_spec('six.moves', None).name == 'six.moves'
  4. assert six._importer.find_spec('six.moves', None).loader is six._importer
  5. assert six._importer.find_spec('six.moves', None).submodule_search_locations == []
  6. assert six._importer.find_spec('six.moves.urllib', None).submodule_search_locations == []
  7. assert six._importer.find_spec('six.moves.cPickle', None).submodule_search_locations is None
  8. assert six._importer.find_spec('six.moves.nonexistent_submodule_xyz', None) is None
  9. assert six._importer.create_module(six._importer.find_spec('six.moves', None)) is six.moves

ファイル

  • NOTES.md
  • csx.json
  • requirements.lock
  • requirements.txt
  • test/contract.py

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

csx-seed