← Back to events
ActiveAIRelease

viable/strict/1788209416: [dynamo] Migrate DictBuiltinVariable.fromkeys to tp_methods (#195181)

Photo: PyTorch Releases

What happened

Summary Part of the VariableTracker migration tracked in #195165 . Move DictBuiltinVariable.fromkeys from an ad-hoc call_method branch onto the declarative tp_methods table. ListBuiltinVariable is unchanged: its remaining call_method logic is only __new__ , which the issue intentionally leaves out of tp_methods (tp_new slot). Unbound dict method forwarding ( dict.update(d, ...) , etc.) stays in call_method because i…

Summary assembled by rule from the sources below

Why it's spreading

Sources