You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I use pytago on window 10 to translate hello.py to main.go. the result of main.go is unexpted, what‘s wrong when I do this?
System: window 10
Python version: 3.10.0
Python source code: hello.py:
# For best results, keep your code inside functions
def main():
print("Hello world!")
if __name__ == '__main__':
main()
comand excuted: pytago -o main.go hello.py
result got: main.go
// # command-line-arguments
// C:\Users\ADMINI~1\AppData\Local\Temp\tmp257ukgv_.go:11:177: syntax error: unexpected <, expecting expression
// C:\Users\ADMINI~1\AppData\Local\Temp\tmp257ukgv_.go:11:192: more than one character in rune literal
// warning: -s is deprecated as it is always enabled
result expected:
package main
import "fmt"
func main() {
fmt.Println("Hello world!")
}
The text was updated successfully, but these errors were encountered:
// # command-line-arguments
// /tmp/tmpz3l0lnvh.go:11:177: syntax error: unexpected <, expected expression
// /tmp/tmpz3l0lnvh.go:11:192: more than one character in rune literal
// warning: -s is deprecated as it is always enabled
Describe the bug
When I use
pytago
onwindow 10
to translatehello.py
tomain.go
. the result ofmain.go
is unexpted, what‘s wrong when I do this?System: window 10
Python version: 3.10.0
Python source code: hello.py:
comand excuted:
pytago -o main.go hello.py
result got: main.go
The text was updated successfully, but these errors were encountered: