Add thriftpy2.load_str #414
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.35) × (1 − Review Confidence (0.91)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 59 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.94 · 2 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.245
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
3 items
CHANGES.rst is no longer maintained (release notes now live in GitHub Releases), please remove this change.
Could you add an enable_cache param defaulting to False? The cache is keyed by module_name only and shared with load(), so loading a different string under the same name silently returns the old module.
aisk
hippi345
Adds
thriftpy2.load_str(source, module_name). It wrapsparse_fpwithio.StringIO, registers the module insys.modulesthe same wayload_fpdoes, and is exported next toloadandload_fp. Also addstest_load_strand a CHANGES entry.The new test passes. Locally, the parser and loader tests give 62 passed and 2 errors. Both errors are in sub-thread tests that need a
reraisefixture, and they also fail on master.Closes #290