wtf
bython
wtf | bython | |
---|---|---|
1 | 18 | |
100 | 2,127 | |
1.0% | - | |
10.0 | 0.0 | |
over 2 years ago | about 4 years ago | |
Python | Python | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
wtf
bython
-
Python with Rizz
before judging too hard, this might be a project from a 15yo forking another project that replaces indentation with brackets in python code (https://github.com/mathialo/bython).
bro actually made a meme into reality.
-
Embedding Design Into Code
What should we do with Python? There are no curly braces here, and if you suggest to your colleagues that team should start writing in Bython, they might call 911.
-
Python with Braces
Because bython is basically a glorified regular expression search and replace: https://github.com/mathialo/bython/blob/master/bython/parser...
Rather than a real parser. A real parser knows about the context it is in, and as long as the grammar is unambiguous about some character, it can be reused in as many distinct parser constructions as you like. A pure regex-based approach to a first approximation can not.
Whether or not it absolutely can or can't, without "approximation" and with regard to the exact re library in Python, would be something you'd have to work out through tedious effort. Regexes with backtracking can do a lot more than mathematical regexes, as well as all the other elaborations you could use. But even if Python's re can do it, you will be better off with a real parser.
The "correct" solution, since by design Python and Bython share the same AST, is to take some existing code that can parse and re-emit Python code without changing it, tweak the incoming grammar to use braces instead, then emit the AST back out as Python. Then you wouldn't have this problem, or the problem with comments referenced in the source code (line 109 of the file I linked, just up a bit), or any of the probably other many little issues that would arise on real code if you tried to put this in real use.
- Python with braces. Because Python is awesome, but whitespace is awful
- Bython: Python preprosessor which translates curly brackets into indentation
-
C bad
use bython.
-
Nope, idk.
For those who missing braces: https://github.com/mathialo/bython ;-)
-
Any way to use brackets for indentation for python?
You can try using bpython, but I would recommend just getting used to it.
-
Every programmer ever.
It exists
-
[D] What is some cool python magic(s) that you've learned over the years?
And then of course there's this insanity.
What are some alternatives?
versioningit - Versioning It with your Version In Git
python - Official Python client library for kubernetes