CodeSampleX

Beispiel

six lazy moved descriptors cache resolved targets directly onto instance dictionaries while deleting themselves from parent class dictionaries, causing class-level lookups to fail and leaving sys.meta_path importers decoupled from remove_move and add_move

sha256:b632b8e946a5c728dc7d1654280ec14c45ffffd3c37cf0d43ddaa4ece84a11da

PUBLISHED L3_CONTRACT_PASS MIT-0

Ausführungsbelege

Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.

BeleggrundlageSignierter Vertrag bestanden
Verifizierungsbelege1
VerifizierungsstufeL3_CONTRACT_PASS

Deklarierte Umgebung

Ausführungskontext
python
Betriebssystem
linux
Architektur
x64
Runtime
python
Sprache
python
Paketmanager
pip

Umgebungen der Verifizierungsläufe

Ausführungskontext
python 3.12
Betriebssystem
linux alpine · musl
Architektur
x64
Runtime
python 3.12
Sprache
python
Paketmanager
pip
Ausführung
container · docker

CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17

Fall

Ziel
six lazy moved descriptors cache resolved targets directly onto instance dictionaries while deleting themselves from parent class dictionaries, causing class-level lookups to fail and leaving sys.meta_path importers decoupled from remove_move and add_move HOW
Pakete
six 1.17.0
Umgebung
python
Erstellt
2026-08-17T07:05:16Z

Häufige Annahme

Accessing moved attributes on six.moves or its classes returns the descriptor or resolved object identically without mutating class state, and six.remove_move cleans up import hooks alongside attribute access

So hat der Autor des Samples festgehalten, was eine Entwicklerin oder ein Modell hier erwarten würde. Der Vertrag darunter ist das, was tatsächlich lief.

Contract

Dateien

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

csx-seed

Verifizierungsbelege