pylint-bot / test

0 stars 0 forks source link

Add an infer_call_result method for Generators #94

Open pylint-bot opened 9 years ago

pylint-bot commented 9 years ago

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.


pylint-bot commented 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.

pylint-bot commented 9 years ago

Original comment by Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore?):


You mean you need an infer_call_result for Generators?

pylint-bot commented 9 years ago

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.

pylint-bot commented 9 years ago

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.