Open yifanwu opened 2 years ago
additional testcase for for-loop cases
import lineapy
a = 1
b = 0
for i in range (4): b = b + 1; print('Added 4 times'); d = 3;
c = a + b
c_art = lineapy.save(c, "test multiple lines")
@eunminlee thanks for adding your thoughts! Curious if this syntax is something you use often at work? Curious so we can gather evidence for prioritization.
Thanks!
@yifanwu I never use this syntax. In my opinion, ";" shouldn't be used in python.
@yifanwu I never use this syntax. In my opinion, ";" shouldn't be used in python.
Haha that's good to hear. We'll then continue to de-prioritize the feature support because of how uncommon the syntax is.
Your code:
Issue: the code for
c_art
includes the entire line:a = 1; b = 2; d= 4; print(a); c = a + b
It's probably lower priority to slice within a line, but just flagging that this is a known issue.