Python with braces

I have tried using Python for more serious work, but has been thrown off by its forced whitespace indentation. In Emacs I want to press TAB and get to the correct indentation level – no matter the code, so I have several times tried looking for a way to add braces to Python.

I would prefer if my preference for braces did not affect people who do not like braces, so I would like a conversion between the two systems. It could be an Emacs package, that fixed the braces after loading/before saving, so the saved file always contained whitespace, but the loaded file would be with braces.

I have now found a few projects that try to implement braces.

Pybraces

https://github.com/thatch/pybraces – tested 2017-06-29

Good

  • Nothing

Bad

  • demo0.py fails.

Python-with-braces

http://python-with-braces.appspot.com/ – tested 2017-06-29

Good

  • Nothing

Bad

  • failed to compile.

Bython

https://github.com/mathialo/bython – tested 2017-06-29

Good

  • Simple programs work.
  • Shebang works.
  • Compiling to no-braces (-c).

Bad

  • Mixing with indented code fails.
  • No way of converting no-braces => braces.
  • No man page.

 

 

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s