mathialo / bython

Python with braces. Because python is awesome, but whitespace is awful.
MIT License
2.05k stars 49 forks source link

Set initializers should work for bython #45

Closed kjsingh closed 7 months ago

kjsingh commented 7 months ago
import os

def main(){
  c= {1,3}
  print('hello')
  print({'A':1,
        'b':2}
        )
}
main()

Fails with

  File "python_main.py", line 4
    c=:1,3
    ^
IndentationError: expected an indented block
billmdevs commented 7 months ago

Try ending your statements with semicolons.