Open pylint-bot opened 9 years ago
Original comment by Omer Katz (BitBucket: the_drow):
This is blocking me from replacing the custom AST parser from MacroPy or doing other interesting stuff.
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?):
You mean you need an infer_call_result for Generators?
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?):
If so and if you would like to contribute a patch, please take a stab at it.
Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?):
Except that it shouldn't be infer_call_result, because that's called when you're calling a generator, but some other method for retrieving the values a generator is yielding would be nice and helpful. If you want to discuss this, you can find me on #pylint on freenode on IRC.
Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?)
We can do something similar for Generator nodes, as we do for Functions. Not sure yet what this will solve, except improving the inference engine.