py2v icon indicating copy to clipboard operation
py2v copied to clipboard

Something wrong with converting input() in python to os.input() in V

Open Ccode-lang opened this issue 4 years ago • 3 comments

used py code

inp = input(">> ")
print(inp)

and got output v

mut inp := input('>> ')
println(inp)

"input()" in output should be os.input()

Ccode-lang avatar Jun 11 '21 19:06 Ccode-lang

6871261 partially addresses this although the variable is still incorrectly marked as mutable.

div72 avatar Jun 11 '21 23:06 div72

That's ok, all variables in python are mutable anyway. I'm using for a python to c exe at Ccode-lang/py-compiler.

Ccode-lang avatar Jun 12 '21 00:06 Ccode-lang

Can't wait to see the fully functional version of this software!

Ccode-lang avatar Jun 14 '21 15:06 Ccode-lang