Sample
six 1.17.0: Require instantiated exception instances rather than string messages in six.reraise, and suppress context chaining when from_value is None in six.raise_from
Verified sample for pypi six 1.17.0: Require instantiated exception instances rather than string messages in six.reraise, and suppress context chaining when…
sha256:3f5b3f83d94682fbde8351b4a098349afeb61dd401909fec162335a871821920
This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured.
How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people.
MIT-0
Execution evidence
The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.
- Evidence basis
- Signed contract pass
- Verification receipts
- 2
- Signing keys that built it
- 2
Declared environment
python linux x64 python python pip
Verification-run environments
| Environment | Contract | Stages | Run |
|---|---|---|---|
| python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1 |
2026-08-17 |
| 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 |
Case
HOW- Goal
- Require instantiated exception instances rather than string messages in six.reraise, and suppress context chaining when from_value is None in six.raise_from
- Packages
- Symbols
-
- six.reraise
- six.raise_from
- Environment
- python
- Created
- 2026-08-17T06:56:32Z
Contract
- six.reraise requires value to be an exception instance or None and raises AttributeError when passed a string message, unlike Python 2 raise syntax
- six.reraise with value=None instantiates tp with zero arguments and preserves the provided traceback
- six.reraise raises the provided value instance directly even when tp does not match value's type
- six.raise_from with from_value=None sets __cause__ to None and enables __suppress_context__
- six.raise_from with an exception instance sets __cause__ to the specified cause exception
- six.raise_from instantiates uninstantiated exception classes passed as exc before attaching cause
Files
- NOTES.md
- csx.json
- requirements.lock
- requirements.txt
- test/contract.py