scrapinghub / shublang

Pluggable DSL that uses pipes to perform a series of linear transformations to extract data
BSD 3-Clause "New" or "Revised" License
15 stars 8 forks source link

convert the result of evaluate to list from generator or map #31

Closed peonone closed 4 years ago

peonone commented 4 years ago

It converts the result of evaluate to a list if it's a generator or map Example before the fix

>>> shublang.evaluate('int', ['3'])
<map at 0x1086fd7b8>

after the fix

>>> shublang.evaluate('int', ['3'])
[3]