python warnings defaults suck (intermediate) anthony explains #486

preview_player
Показать описание
today I talk about an extremely common mistake with python warnings -- and what I wish the default behaviour was

==========

I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!
Рекомендации по теме
Комментарии
Автор

Lol. Are you trolling the clickbaiters with these new thumbnails? Learned something new as always.

rednafi
Автор

In pandas there's a find_stack_level util function

Would much prefer if something like this was built-in

marco_gorelli
Автор

Great video. I was struggling with the same behavior, my workaround howere was so much more complicated. I set up a warning handler that printed the whole stacktrace. Not so great for a library, this is so much more clean.

ChristianBrugger
Автор

The comment at the end sounded interesting. Does you have any videos on how you would survey a repo like cpython? I'd be interested in how you search for a sort of "improvable default behaviour"

spyrthdrgn
Автор

Thanks... it's working... Good Job...!

bagethian