You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If expand_generated is false, the returned CodeInfo instances will correspond to fallback implementations. An error is thrown if no fallback
implementation exists. If expand_generated is true, these CodeInfo instances will correspond to the method bodies yielded by expanding the
generators.
For the @generated function f, no fallback implementation exists, so having the error is to be expected as by the documentation. (Although the error message isn't particularly helpful.)
However, over in #25055 it would be helpful to have a way of retrieving the lowered generator.
Found by @martinholters here (I figured I should make an actual issue for it).
Previously, you could pass
false
tocode_lowered
'sexpand_generated
argument to get theCodeInfo
for a function's unexpanded generator. Now, however:This appears to have been broken by 80a2c2f#diff-ca03aefbdf6018c4da887b6ec35e0027L740.
There was a test that checked to make sure this functionality didn't regress, but it looks like that test got deleted as part of #23168: 80a2c2f#diff-2ea596942a7d251702840ffcaab1e763L773
The text was updated successfully, but these errors were encountered: