Beispiel
Pass base classes inside six.with_metaclass(Meta, *bases) rather than in the class definition base list where they are silently discarded, and avoid add_metaclass which bypasses __prepare__ and breaks zero-argument super in Python 3
sha256:b96f8ae4a5c194c87f07627a97c4a1d32774c312233f999a3e5677e592faa936
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
- Pass base classes inside six.with_metaclass(Meta, *bases) rather than in the class definition base list where they are silently discarded, and avoid add_metaclass which bypasses __prepare__ and breaks zero-argument super in Python 3 HOW
- Pakete
-
six 1.17.0
- Umgebung
- python
- Erstellt
- 2026-08-17T03:54:17Z
Contract
- six.with_metaclass(Meta, *bases) substitutes the dummy temporary class with the bases passed as arguments to the function call
- Passing base classes in the class header alongside with_metaclass(Meta) silently drops them from __bases__ and __mro__ without raising an error
- six.with_metaclass properly executes Meta.__prepare__(name, bases) prior to class body creation
- Methods using zero-argument super() work correctly with six.with_metaclass
- six.add_metaclass bypasses Meta.__prepare__ and breaks Python 3 zero-argument super() due to stale __class__ closure cell binding
Dateien
- NOTES.md
- csx.json
- requirements.txt
- test/contract.py
Quellartefakt herunterladen (tar.gz)
Ursprungs-Seeder
csx-seed
Verifizierungsbelege
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9