Wait, you CAN use braces with Python?!

  Рет қаралды 3,004

Carberra

Carberra

Күн бұрын

Or "curly brackets" for those this side of the Atlantic.
The Bython project:
pypi.org/project/Bython/
-
If you enjoy my content, consider supporting me on Patreon or becoming a member!
• Patreon: / carberra
• Membership: / @carberra
Follow me elsewhere for even more Carberra!
• Discord: / discord
• Instagram: / carberratutorials
I get a lot of people asking, so here's my setup!
• Visual Studio Code: • My Visual Studio Code ...
• Terminal: • Make your terminal loo...
-
If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.
#python #coding #howto

Пікірлер: 24
@LHM1226
@LHM1226 Ай бұрын
Low Level Syntax, High Level Performance, LoL
@davidmurphy563
@davidmurphy563 Ай бұрын
They should have called the package pyheresy. ;)
@marcosgomes3140
@marcosgomes3140 Ай бұрын
JS aiming to looks like Python. Byton aiming to looks like JS
@drdca8263
@drdca8263 14 күн бұрын
Another issue that comes to mind is, what if you want to import a library written in bython into another library written in bython? I suppose you would have to xpile the library first, but it would be nice for that to happen automatically.
@Carberra
@Carberra 14 күн бұрын
Hm yeah, that's a good point. Unless there's something in the crosspiler to detect these things. Didn't even think to try that.
@chandrasekars8904
@chandrasekars8904 Ай бұрын
This is really an excellent channel on Python like "techie talkee"
@eksortso
@eksortso Ай бұрын
This would have made a great April Fools Day video. It's a package that's received as much attention and care as it deserves.
@Lanc840930
@Lanc840930 Ай бұрын
Very cool~ Just curious, what's the use case for this package? XD
@Carberra
@Carberra Ай бұрын
That is a very good question 😅
@twentytwentyeight
@twentytwentyeight Ай бұрын
Fun lol
@ButchCassidyAndSundanceKid
@ButchCassidyAndSundanceKid Ай бұрын
I certainly wouldn't use this package. You're literally changing the language syntax and structure that is not meant to be, especially the package hasn't been updated for a number of years. I will steer clean of that. If people want to use parenthesis, they can use a different language altogether, C#, Java, Rust, take your pick.
@Carberra
@Carberra Ай бұрын
I'm pretty sure there are languages out there that function quite similarly to Bython, basically "Python-with-braces-and-a-few-other-changes".
@ButchCassidyAndSundanceKid
@ButchCassidyAndSundanceKid Ай бұрын
@@Carberra I don't buy it. Call me stubborn, I'm dead against changing the language syntax. If these people want to change, they should really change the way we write increment and decrement. I'd love to write x += 1 or x++ instead of x = x + 1 in Python (I mean we're all grown up developers, not kindergarten anymore, the syntax has to be terse and concise), because that's a bloody pain in the proverbial.
@Carberra
@Carberra Ай бұрын
I mean like entirely different languages, ones designed to be Pythonic while also using braces and such. But yeah, deffo agree with you on the point on not messing with existing languages. You can do x += 1 in Python, no? Can't do x++ though yeah, which is big sad.
@ButchCassidyAndSundanceKid
@ButchCassidyAndSundanceKid Ай бұрын
@@Carberra And there's another thing I've a gripe about python, they've singledispatch, but not multidispatch (yes, but I've to pip a 3rd party package), it should really be included in the core as well. I also like "wrapt" package, the way they handle decorators, it's clean and you don't have to write so many nested functions which can easily get lost.
@ntran04299
@ntran04299 Ай бұрын
what’s your VSCode theme?
@Carberra
@Carberra Ай бұрын
Info in the description (: (as it happens as well, that's next week's video!)
@dipeshsamrawat7957
@dipeshsamrawat7957 Ай бұрын
Very good. 💯
@beaverbuoy3011
@beaverbuoy3011 Ай бұрын
Very cool
@bakasenpaidesu
@bakasenpaidesu Ай бұрын
JS??? 😂😂😂
@airatvaliullin8420
@airatvaliullin8420 Ай бұрын
instead of just replacing `{` and `}` they should've analysed the script to ignore the braces inside docstrings/comments/string literals
@Carberra
@Carberra Ай бұрын
Yeeaahh, they probably could've detected blocks and lined things up a little better as well.
@CrYpt001
@CrYpt001 Ай бұрын
Meh , I would like python's syntax in other languages not the other way around
@karius85
@karius85 Ай бұрын
-
Create an API in 20 MINUTES with FastAPI (2024 tutorial)
21:17
SIMPLIFY your code with decorators (+ typing)
13:57
Carberra
Рет қаралды 2,8 М.
MOM TURNED THE NOODLES PINK😱
00:31
JULI_PROETO
Рет қаралды 8 МЛН
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 2,9 МЛН
Enable Automated Tasks On HyperOS Device | Techtitive
1:05
Best programming language for science in 2024
36:07
Jonathon Riddell
Рет қаралды 1,7 М.
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 356 М.
Multithreading is possible in Python 3.12 ( with speed test )
9:18
Mastering Python
Рет қаралды 1,1 М.
Automate your job with Python
6:07
John Watson Rooney
Рет қаралды 323 М.
python is removing the GIL! (PEP 703) (advanced) anthony explains #550
24:04
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 89 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 246 М.
Using Redis/Redict/Valkey in Python (2024 tutorial)
15:58
Carberra
Рет қаралды 1,5 М.