Beispiel
wrapt 2.3.0: Subclass the right object proxy base in wrapt 2.x so iteration works
Verifiziertes Beispiel für pypi wrapt 2.3.0: Subclass the right object proxy base in wrapt 2.x so iteration works. Der Vertrag lief auf python 3.12 · linux…
sha256:61d02a30076981ae851aad530bd2d9dbce05537be4411337993c75500740cdd6
Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen.
Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen.
MIT-0
Ausführungsbelege
Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.
- Beleggrundlage
- Signierter Vertrag bestanden
- Verifizierungsbelege
- 2
- Signaturschlüssel, die es gebaut haben
- 2
Deklarierte Umgebung
python 3.12 linux x64 python 3.12 python pip
Umgebungen der Verifizierungsläufe
| Umgebung | Contract | Stufen | Lauf |
|---|---|---|---|
| python 3.12 · linux alpine/x64 · docker ed25519:a2ec939a4c60e243 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1 |
2026-08-14 |
| python 3.12 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · python@1 |
2026-08-18 |
Fall
HOW- Ziel
- Subclass the right object proxy base in wrapt 2.x so iteration works
- Pakete
- Symbole
-
- BaseObjectProxy
- ObjectProxy
- AutoObjectProxy
- with_signature
- function_wrapper
- Umgebung
- python 3.12
- Erstellt
- 2026-08-14T20:44:52Z
Contract
- assert ObjectProxy is a subclass of BaseObjectProxy, not an alias for it
- assert BaseObjectProxy around a list refuses to iterate while isinstance and hasattr both claim it is iterable
- assert the 1.x shape of subclassing ObjectProxy still iterates, but reports a non-iterable as iterable
- assert AutoObjectProxy agrees with reality both ways and builds a new class per instance
- assert wrapt.signature is a module so calling it raises TypeError, while inspect.signature reads the original signature through a wrapt decorator
- assert wrapt.function_wrapper is not wrapt.decorator and takes no enabled/adapter/proxy keywords
- assert proxy subclass state needs the _self_ prefix or it leaks onto the wrapped object
Dateien
- csx.json
- requirements.txt
- src/__init__.py
- src/compat.py
- test/contract.py