Wait, you CAN use braces with Python?!

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

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 2 ай бұрын
Low Level Syntax, High Level Performance, LoL
@davidmurphy563
@davidmurphy563 2 ай бұрын
They should have called the package pyheresy. ;)
@marcosgomes3140
@marcosgomes3140 Ай бұрын
JS aiming to looks like Python. Byton aiming to looks like JS
@drdca8263
@drdca8263 21 күн бұрын
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 21 күн бұрын
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.
@dipeshsamrawat7957
@dipeshsamrawat7957 2 ай бұрын
Very good. 💯
@chandrasekars8904
@chandrasekars8904 Ай бұрын
This is really an excellent channel on Python like "techie talkee"
@eksortso
@eksortso 2 ай бұрын
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 2 ай бұрын
Very cool~ Just curious, what's the use case for this package? XD
@Carberra
@Carberra 2 ай бұрын
That is a very good question 😅
@twentytwentyeight
@twentytwentyeight 2 ай бұрын
Fun lol
@ntran04299
@ntran04299 2 ай бұрын
what’s your VSCode theme?
@Carberra
@Carberra 2 ай бұрын
Info in the description (: (as it happens as well, that's next week's video!)
@beaverbuoy3011
@beaverbuoy3011 2 ай бұрын
Very cool
@ButchCassidyAndSundanceKid
@ButchCassidyAndSundanceKid 2 ай бұрын
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 2 ай бұрын
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 2 ай бұрын
@@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 2 ай бұрын
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 2 ай бұрын
@@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.
@airatvaliullin8420
@airatvaliullin8420 2 ай бұрын
instead of just replacing `{` and `}` they should've analysed the script to ignore the braces inside docstrings/comments/string literals
@Carberra
@Carberra 2 ай бұрын
Yeeaahh, they probably could've detected blocks and lined things up a little better as well.
@bakasenpaidesu
@bakasenpaidesu Ай бұрын
JS??? 😂😂😂
@CrYpt001
@CrYpt001 2 ай бұрын
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
Best programming language for science in 2024
36:07
Jonathon Riddell
Рет қаралды 1,9 М.
1 класс vs 11 класс (неаккуратность)
01:00
Make me the happiest man on earth... 🎁🥹
00:34
A4
Рет қаралды 8 МЛН
Como ela fez isso? 😲
00:12
Los Wagners
Рет қаралды 33 МЛН
HYBRID callables in Python?! - Jankfest
17:18
Carberra
Рет қаралды 1,5 М.
Automate your job with Python
6:07
John Watson Rooney
Рет қаралды 342 М.
How To Use FTP In Python
4:02
Taylor's Software Solutions
Рет қаралды 64
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 359 М.
python is removing the GIL! (PEP 703) (advanced) anthony explains #550
24:04
The Truth About Learning Python in 2024
9:38
Internet Made Coder
Рет қаралды 114 М.
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 92 М.
Using Redis/Redict/Valkey in Python (2024 tutorial)
15:58
Carberra
Рет қаралды 1,5 М.
Pointers in Python Are A Real Thing
8:51
NeuralNine
Рет қаралды 20 М.
I tried a FREE Copilot alternative
15:12
Carberra
Рет қаралды 1,9 М.