my thoughts on ruff
3:41
5 ай бұрын
Пікірлер
@Spitfire5592
@Spitfire5592 9 сағат бұрын
I wish there was -warn=trace
@Bregylais
@Bregylais Күн бұрын
Loving your channel. Keep it up!
@Tamilselvan-hw2qf
@Tamilselvan-hw2qf 2 күн бұрын
Thank you its working
@jake115577
@jake115577 2 күн бұрын
If Anthony has paid tutorial courses, I will buy every single one of them even if I go broke.
@glichking6812
@glichking6812 3 күн бұрын
I know nothing about any code or programming but I keep getting this video and still have no idea what's being said or how the solution worked
@replikvltyoutube3727
@replikvltyoutube3727 4 күн бұрын
Seems like the performance is not worth it compared to headache of configuring it in CICD 😅😅
@bernardodc9631
@bernardodc9631 5 күн бұрын
What about PDM?
@SodalisUK
@SodalisUK 5 күн бұрын
I actually had this happen on a real production IT system that I was working towards taking over the management of. I was working for an outsourcing company, and the system was in production and being operated and managed by the application vendor. The reason we hadn't taken it over was because there was zero operational documentation and zero scripted operations. So the vendor was operating it manually based on instructions scribbled on a scrap of paper. These instructions said: 1. "cd /tmp"; 2. "rm -yr *"; 3. "reboot". Unfortunately, one evening having done step one, the operator received a telephone support call and as part of answering that he went root (presumably with "sudo -i" which put him back in the root directory). When he finished the call he executed steps 2 and 3 without exiting root thus doing EXACTLY what this video shows. D'UH!!! To cap it all, it then turned out that the system backups hadn't been working either and hadn't been tested and it took them 2 or 3 weeks to rebuild this production system. DOUBLE D'UH!!!!!! I might add that this was one of two similar screw ups (the other resulting from deletion of the production SQL database) at the end of a disastrous fixed price application development where the system has already been rejected and redeveloped from scratch and where the initial go live was abandoned twice, once because an untested system timezone change caused it to fail, and once because the system has never been tested on a production sized database, and several missing indexes resulted in use response times on a linked production customer call healing system going from 1sec to over 30mins. Put simply a fiasco from start to finish from a MAJOR MAJOR software house.
@saeidzafari6870
@saeidzafari6870 7 күн бұрын
Hi , I wanna shred my picture in my phone but does have an error , permission denied , how can I solve that? Thanks
@Cohnan13
@Cohnan13 7 күн бұрын
Oh, I had missed to understand that leaving the slowest task last made so that we couldn't schedule anything else in the meantime, since there isn't anything else to begin with
@urknidoj422
@urknidoj422 9 күн бұрын
Interesting! Out of curiosity, I tried creating a directory named '-', and found that it cannot be accessed using 'cd -'. Therefore, it can only be accessed using a longer relative or absolute path.😆
@amir.hessam
@amir.hessam 11 күн бұрын
Very well-said Anthony -- have you ever had the chance to talk to David Cramer himself ? I can see his name as one of the investors 😬
@AlexGeorge
@AlexGeorge 11 күн бұрын
The CPython implementation detail about object address reuse mentioned in *explains **#343* makes a prominent appearance in this episode! I can't help but notice it since obtaining that bit of knowledge.
@dmytroparfeniuk2670
@dmytroparfeniuk2670 11 күн бұрын
Oh, nice)
@user-jo4ij9fg1d
@user-jo4ij9fg1d 12 күн бұрын
\o/ ... That's cool!
@447xpro
@447xpro 14 күн бұрын
Thanks!
@ccos218
@ccos218 15 күн бұрын
PDM is the way
@Xavi-s2i
@Xavi-s2i 15 күн бұрын
I thought it was true triple yoru
@maxmax-mn1vg
@maxmax-mn1vg 16 күн бұрын
you did the project very good!!! i really appreciate it , but i have one bugs when working on your project : that it appears Connecting to programmer: . avrdude: butterfly_recv(): programmer is not responding Found programmer: Id = "1023 �"; type = Software Version = 1.0; Hardware Version = 2.3 avrdude: error: buffered memory access not supported. Maybe it isn't a butterfly/AVR109 but a AVR910 device? avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check. avrdude: error: programmer did not respond to command: leave prog mode avrdude: error: programmer did not respond to command: exit bootloader i hope you can help me to take it look, really thanks
@cool-jg2050
@cool-jg2050 17 күн бұрын
I have a question in pycharm I have interpreter 3.10 do I have to check the checkbox code inspections have incompatible with other Python versions then it produces red underlines with like tkinter it says incompatible with Python 2.7 version? Thanks
@cool-jg2050
@cool-jg2050 17 күн бұрын
So there is no way to use braces like in Java
@jared8411
@jared8411 17 күн бұрын
Thanks, I was trying to learn this from a book and I needed to see it in action.
@jakubtybinski9246
@jakubtybinski9246 17 күн бұрын
Pog
@oliversheridan-methven8906
@oliversheridan-methven8906 18 күн бұрын
Something comparing submodules with subtrees would be nice.
@kmacdowe
@kmacdowe 18 күн бұрын
Thanks! What kind of keyboard/mouse set up is that? It looks useful.
@JorgeAnais
@JorgeAnais 18 күн бұрын
I typically watch videos at 2x speed, but this time I'm watching at 0.5x speed.
@anthonywritescode
@anthonywritescode 18 күн бұрын
.5x speed but only 5% of the time?
@slavapasedko3139
@slavapasedko3139 19 күн бұрын
Hi Anthony. Thank you for such great content. It’s really hard to find intermediate/advanced python topics on youtube because most of the content is created for beginners and there’s no point to watch it if you already have at least some production experience. Keep up the great work. I’d like to ask you to record a video about Python memory management, how to write cpu/ram efficient code, tips & tricks, what to avoid and all python memory-cpu-related stuff, memory leaks, profiling, etc. (I watched a video about preloading & gc.freeze() it was really fun and cool stuff you did.)
@anthonywritescode
@anthonywritescode 19 күн бұрын
it's difficult to pinpoint a strategy specifically -- at least when writing pure python you don't really have much control over it other than not globally caching things forever (and not using buggy C libraries!) -- that said here's a few others I've done about memory (explains videos are collected at github.com/anthonywritescode/explains) - using memray to debug a memory leak in krb5: kzbin.info/www/bejne/mKiYcnuaj6Zqm5Y - don't lru_cache a method: kzbin.info/www/bejne/qYfNpaNsqayiZsk - fixing a 9GB memory leak in cargo: kzbin.info/www/bejne/q6mtmXSOmaefmMU
@senseikoudai6186
@senseikoudai6186 19 күн бұрын
Maybe an obvious question, but why were there two None values in the first place?
@slavapasedko3139
@slavapasedko3139 19 күн бұрын
Generator can yield, return and accept value using .send() Hence three typings for each of those possibilities
@anthonywritescode
@anthonywritescode 19 күн бұрын
I cover this in the video linked in the description in more detail as well!
@bashirabdelwahed40
@bashirabdelwahed40 19 күн бұрын
oh finally!!!!!!
@hansdietrich1496
@hansdietrich1496 19 күн бұрын
Yeah, that always caused eye cancer.
@AceofSpades5757
@AceofSpades5757 20 күн бұрын
That's fantastic. It's ugly and most people don't understand the other 2 anyhow
@madhan1926
@madhan1926 20 күн бұрын
Is it possible to achieve git like functionality here? Like creating commit through one api, then using push api to push commits to github.
@anthonywritescode
@anthonywritescode 20 күн бұрын
that is... exactly what this video is?
@sillybuttons925
@sillybuttons925 20 күн бұрын
wow that is great. Always found that annoying.
@Quarky_
@Quarky_ 20 күн бұрын
Is there a difference between importing Generator from collections.abc and typing?
@iamcurrentlypooping
@iamcurrentlypooping 20 күн бұрын
typing.Generator is a deprecated alias to collections.abc.Generator
@Quarky_
@Quarky_ 20 күн бұрын
@@iamcurrentlypooping thanks! I was recently going through the docs, and I don't recall seeing any deprecation warning, that's why I was confused. Looks I just overlooked it :⁠-⁠P
@ArcRCG
@ArcRCG 20 күн бұрын
This is cool, this decorator-context manager equivalence reflects that a decorator what basically is doing is "managing" the "context" of the wrapped function and that a context manager is basically is "decorating" an annonymous IIFE. One really beautiful abstraction.
@bennyyouknow
@bennyyouknow 20 күн бұрын
Love your energy in this one 😊 Indeed a nice QoL improvement 🎉
@kRySt4LGaMeR
@kRySt4LGaMeR 20 күн бұрын
really cool, but it highlights how foreign type hints are to the core language
@bswck
@bswck 20 күн бұрын
So excited about that change. I often violated the rule of maximum specificity in the return type and simply used a higher-in-hierarchy `Iterator[T]`, which is obviously not an equivalent: it was only suitable for cases where I didn't have to access `.send()`, `.throw()` or `.close()`; but that was the majority of cases. Nevertheless, so cool I can just use `Generator[T]` now. There are lots of other use cases, for example `textual.App[T]` with the `T` defaulting to `None`.
@lukajeliciclux3074
@lukajeliciclux3074 20 күн бұрын
YESSSS!!!!! Generator[int,None,None] is just WHY?!
@guscardvs
@guscardvs 20 күн бұрын
This could be true for Coroutine also
@anthonywritescode
@anthonywritescode 20 күн бұрын
indeed! though I'm not sure Coroutine got the same treatment :(
@danielmajer1648
@danielmajer1648 20 күн бұрын
Everytime I write something else than python I wish it was python. Unfortunately mypy is still not standard for most of the folks like typescript
@ColtinC
@ColtinC 20 күн бұрын
This is my second favorite hackathon shirt! Eco Hack shirt finally beat it, but still a favorite. Very happy to see you still making these videos! KZbin has not put them in my feed for awhile.
@DavidDellsperger
@DavidDellsperger 20 күн бұрын
alternative title: Nerd gets excited he doesn't have to type ", None" as often
@anthonywritescode
@anthonywritescode 20 күн бұрын
it's true!
@samuelgunter
@samuelgunter 19 күн бұрын
@@anthonywritescode isn't it True?
@ayhanfuat
@ayhanfuat 20 күн бұрын
It was so fun to watch you get happy about this. 😀
@flamendless
@flamendless 20 күн бұрын
696.... It is nice
@s-h-f
@s-h-f 20 күн бұрын
Didn't understand much as I am still a beginner. But seems like they get rid of ugly (unnecessary) annotations. Thanks for demo.
@bswck
@bswck 20 күн бұрын
annotations are beautiful, not ugly.
@victordvickie
@victordvickie 20 күн бұрын
I never seen a grown man more happy than this, good addition btw lol
@abrahammurciano
@abrahammurciano 20 күн бұрын
Generator[T, None, None] is one of those things that everyone knows about but most don't know why. It would be cool to have a video explaining what the other types are for
@anthonywritescode
@anthonywritescode 20 күн бұрын
I have one! I forgot to link it in the description but it's there now!
@abrahammurciano
@abrahammurciano 20 күн бұрын
This is exactly why I've always annotated my generators as Iterator[T]. Finally I can use Generator!
@bacon4life
@bacon4life 20 күн бұрын
Cool, I have dozens of Generator[T, None, None] in my projects.