Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

RecursionError when calling fastcore.basics.concat([["abc", "xyz"], ["foo", "bar"]]) #383

Closed
Ark-kun opened this issue Dec 19, 2021 · 0 comments · Fixed by #410
Closed

Comments

@Ark-kun
Copy link

Ark-kun commented Dec 19, 2021

fastcore.basics.concat([["abc", "xyz"], ["foo", "bar"]])
----> 2 fastcore.basics.concat([["abc", "xyz"], ["foo", "bar"]])

/opt/conda/lib/python3.7/site-packages/fastcore/basics.py in concat(colls)
    431 def concat(colls)->list:
    432     "Concatenate all collections and items as a list"
--> 433     return list(flatten(colls))
    434 
    435 # Cell

/opt/conda/lib/python3.7/site-packages/fastcore/basics.py in flatten(o)
    425     "Concatenate all collections and items as a generator"
    426     for item in o:
--> 427         try: yield from flatten(item)
    428         except TypeError: yield item
    429 

... last 1 frames repeated, from the frame below ...

/opt/conda/lib/python3.7/site-packages/fastcore/basics.py in flatten(o)
    425     "Concatenate all collections and items as a generator"
    426     for item in o:
--> 427         try: yield from flatten(item)
    428         except TypeError: yield item
    429 

RecursionError: maximum recursion depth exceeded
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant