These are chat archives for evhub/coconut

7th
Jun 2017
Evan Hubinger
@evhub
Jun 07 2017 05:33
@pchampin That's definitely a bug. It looks like the problem is with TCO raising an error when it shouldn't. As a temporary fix, if you pass --no-tco, it should fix the issue, though I'll put out a more permanent fix in coconut-develop later tonight, which you should be able to get via pip install coconut-develop.
Pierre-Antoine Champin
@pchampin
Jun 07 2017 05:46
@evhub thanks. Do you want me to submit it as an issue on github?
Evan Hubinger
@evhub
Jun 07 2017 05:52
@pchampin Yeah, that'd be great! The fix seems to be working, and should be available for install via pip install coconut-develop right now. The version with the fix is coconut-develop-1.2.3.post0.dev4.
Pierre-Antoine Champin
@pchampin
Jun 07 2017 05:59
Issue added #264
@evhub but the fix is not working for me... I get a Segfault :-/
(at runtime... compilation returns normally)
Evan Hubinger
@evhub
Jun 07 2017 06:04
@pchampin Laughably, while the other error was a bug, the segfault is a known Python issue. Coconut provides the @recursive_iterator decorator to fix it. See: http://coconut.readthedocs.io/en/master/FAQ.html#help-i-tried-to-write-a-recursive-iterator-and-my-python-segfaulted
Pierre-Antoine Champin
@pchampin
Jun 07 2017 06:06
Oh yes, I heard you mention that on Podcast.init !
:)
That being said, decorating my function with @recusrive_iterator suppresses the segfault, but then I get a strange exception... I'll add this to the issue...
Evan Hubinger
@evhub
Jun 07 2017 06:19
Yeah, I did mention that; it's quite the Python bug! Feel free to put the code you're running and exception you're getting here or on the issue and I'll take a look at it.