CodeWriter doesn't work for 'CFuncDefNode'
See original GitHub issue>>> writer = CodeWriter()
>>> writer.write(TreeFragment("def fn(): \n pass").root)
<Cython.CodeWriter.LinesResult at 0x121704a90>
>>> writer.write(TreeFragment("cdef fn(): \n pass").root)
Compiler crash traceback from this point on:
File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
File "/usr/local/lib/python3.7/site-packages/Cython/CodeWriter.py", line 243, in visit_FuncDefNode
self.startline(u"def %s(" % node.name)
AttributeError: 'CFuncDefNode' object has no attribute 'name'
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Code Writer App Suggestions and Support - Actipro Software
Post about Code Writer app suggestions, bugs, workarounds, and request support in ... "Compiled languages like java and c++ doesn't work while Compiling, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sighingnow good idea. I just pushed #3528.
Thanks a lot! Visitor for some kinds of ast
Node
are still missing, I will continue to push to #3514 to make theCodeWriter
more complete. Will ping you when it ready for review and merging.