5 Things You're Doing Wrong When Programming in Python
Video Statistics and Information
Channel: Jack of Some
Views: 384,724
Rating: 4.9373565 out of 5
Keywords: python coding wrong, python coding mistakes, python programming mistake, 10 programming mistakes, stop making these mistakes in python, python programming mistakes, python programming wrong, 5 python mistakes, python mistakes, python tutorial, python, programming
Id: fMRzuwlqfzs
Channel Id: undefined
Length: 12min 2sec (722 seconds)
Published: Wed Feb 05 2020
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
Could you please list out the 5 mistakes? I don't want to watch a 12 minute video if I already know what those 5 mistakes are. Or if I know 4 of the 5, I'd like to skip to the one I don't know.
Thanks.
Mostly good stuff, but highly disagree with number 3. Sending your caught exception to a variable is a good method, because then you can log/process it however you want.
In the last solution, youβre type checking as
if isintance(var, type(None))
Why not just take advantage of the fact None is a singleton and simply do
if var is None
?surprisingly this is actually useful content. I need to use more sets in my coding.
Had no idea about the mutable default args, scary stuff.
Great video. Just subscribed to your channel!
Thanks
Well Iβm not on the level yet to understand that but i will definitely save that for later.
Ok