

I like the exception being raised their is no reason I should be passing in None to the function it means I’ve fucked up the value of whatever I’m passing in at some point.
I like the exception being raised their is no reason I should be passing in None to the function it means I’ve fucked up the value of whatever I’m passing in at some point.
But that’s an extra step of logic u must hold in ur head while trying to understand 12 other things.
I do web dev
Theirs ur problem.
But in all seriousness I think if u def some_func(*args, kwarg=[]) Is a more explicit form of def some_func(*args, kwarg=None)
OK so you want something simple that just works and will give you minimal headaches.
I see from ur comments ur running nvidia which is a pain to get drivers working for on some distros but some have a graphical installer to get then going.
I would defiantly recommend mint as its based on one of the most common disros giving u extremely transferable knowlege and very simmillar to windows.
As people have said check protondb u will only really have issues with anti cheat games. Indie games I find often have better Linux support but check protondb.
If u wanna duel boot so u can still use windows then I reccommend a separate drive. Windows on a separate partition but the same drive is unhappy and its known that windows will sometimes purposely blow up Linux cos Microsoft hates you.
If you are going to duelboot then for security u will want windows 11 but its shit so I recommend tiny11 or cristitis’s debloater to uninstall all the crap.
Because I have to do the is this falsy to what I’m actually interested conversion in my head.
Say ur deep inside some complicated piece of logic and u are trying to understand. Now u have a bunch of assumptions in your head. You should be trying to eliminate as many if these assumptions with good code as possible eg u test ur fail case and return/continue that so u don’t need to keep that assumption in ur head.
Say I then come along a if not x then you have to figure out what is x what is the truthiness of its type. If I come across an if len(x) == 0 then I automatically know that x is some collection of objects and I’m testing its emptiness.
I try to avoid having the same variable with different types I find it is often the cause of difficult to debug bugs. I struggle to think of a case where u would be performing a check that could be an empty list or None where both are expected possible values.
Is it? Why introduce an additional conversion from not list means empty list that u have to hold in your head. I want to check length I check length I would argue is easyer to comprehend.
I think the explicitness of checking length is worth the performance cost. If ur writing code for speed ur not using python.
That’s what he prefers to go by
Michael Hunt has entered the chat.
Lemmy maybe
U will be completely fine. U have the same risks that have always existed such as disable biometric auth for u phone etc.
Ahh I see. Someone left u with some fucked tech debt. I can’t help u as I only really use Linux and windows makes shit way harder than it needs to be. From ur tracelog I can see ur using sqlanchemy and it can’t find the driver needed. Find a way to test if the driver and isolate the issue.
Because it isn’t and wasn’t perfect. I think linus had instilled that within the world 2 most important pieces of software. Its just incredible that he invented both.
Is it an SQL database? I’ve had all sorts of issues with getting specific databases to connect to python. If possible I would recommend using pistgresql it just works when using python. I’ve also found using SQL alchemy is very useful for simple queries and still allows you to run raw SQL when needed.
That looks like Joe Rogan’s background lol
It shouldnt require that many brains. U can just clone the repo swap out the audio file and consult with Dr GPT on how to build it.
I can hold onto it for you
I think part of it is the human condition and part of it is that ai is very good at making traditionally niche words more popular in the global conscious.
Ur function args if fucked up should always throw an error that’s the entire point of python type hints