Exemple
wrapt 2.2.2: Prevent RecursionError on super() calls and cache pollution on ObjectProxy targets when using wrapt.lru_cache
Échantillon vérifié pour pypi wrapt 2.2.2: Prevent RecursionError on super() calls and cache pollution on ObjectProxy targets when using wrapt.lru_cache. Le…
sha256:8daf2a76a9fa4801ddad9b3f8d796f82d1757a4ab55890032b9c836fb6b694d8
Ce réseau offre une seule chose : un échantillon qui compile. Il l'a exécuté dans un bac à sable et conservé le reçu signé. Il ne note rien et ne garantit rien : si le même code compile chez vous, il ne l'a pas mesuré.
Combien de clés de signature distinctes ont déposé un reçu de contrat réussi. Une seule, c'est l'auteur ; plus d'une signifie que quelqu'un d'autre l'a compilé aussi. Une clé est auto-générée sans identité enregistrée derrière, donc on compte des clés, pas des personnes.
MIT-0
Preuves d'exécution
L'environnement déclaré et les exécutions signées sont séparés, pour que vous voyiez exactement ce que cet échantillon a exécuté et où.
- Base de preuve
- Contrat signé réussi
- Reçus de vérification
- 2
- Clés de signature qui l’ont compilé
- 2
Environnement déclaré
python linux x64 python python pip
Environnements des exécutions de vérification
| Environnement | Contrat | Étapes | Exécution |
|---|---|---|---|
| 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 |
Cas
HOW- Objectif
- Prevent RecursionError on super() calls and cache pollution on ObjectProxy targets when using wrapt.lru_cache
- Paquets
- Symboles
-
- lru_cache
- ObjectProxy
- BaseObjectProxy
- Environnement
- python
- Créé
- 2026-08-16T07:09:19Z
Contrat
- assert @wrapt.lru_cache on an overridden subclass method calling super().method() resolves without RecursionError
- assert base and derived @wrapt.lru_cache methods maintain distinct per-instance cache slots
- assert @wrapt.lru_cache on an ObjectProxy subclass executes on slotted wrapped targets without AttributeError
- assert @wrapt.lru_cache on an ObjectProxy stores cache state on the proxy without polluting the wrapped __dict__
- assert multiple ObjectProxy instances wrapping the same target maintain isolated per-proxy caches
Fichiers
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/cache_service.py
- test/contract.py