Underscore alone is a special variable name and I’m pretty sure anything assigned to it goes straight to garbage collection. Whereas _myvariable
is typically used to indicate a “private” class variable or method (Python doesn’t have private so it’s just a convention).
- 0 Posts
- 18 Comments
You can use anything that doesn’t start with a digit or punctuation as a variable name (underscore beginning also allowed) unless it’s a keyword.
ryedaft@sh.itjust.worksto Privacy@lemmy.ml•snowden on "nothing to hide, nothing to fear"English21·1 month agoSnowden is very zen and I don’t know what Assange but it’s not zen
ryedaft@sh.itjust.worksto Asklemmy@lemmy.ml•Could a vampire policemen enter my house if they had a warrant?English4·1 month agoNo but if you are selling your home they could go for a viewing, kill and eat the realtor, and then drop from your ceiling and devour you when you come home.
ryedaft@sh.itjust.worksto Privacy@lemmy.ml•snowden on "nothing to hide, nothing to fear"English174·1 month agoWeird how Edward Snowden is basically a Boddhisatwa and Julian Assange
ryedaft@sh.itjust.worksto Asklemmy@lemmy.ml•Working full time - how do you do it?English7·2 months agoI should mellow this a bit.
Right now you’re experiencing some degree of culture shock so that’s going to take ~6 months before that is fully settled. “This is weird.” “Yes, that’s something people experience in a variety of contexts”.
But outside of that in the long run you really have to think about what’s important to you and carve out time for that or you will be lonely and miserable. Something with regularity. I play board games with friends once a week. Sometimes I can’t make it and they do it without me. But there’s still way too much of my time that ends up being me staring at Lemmy or the TV, thinking that I really should <some chore>. And you can end up like that whether you are single or in a relationship. School was simpler.
ryedaft@sh.itjust.worksto Asklemmy@lemmy.ml•Working full time - how do you do it?English461·2 months agoThere’s culture shock and then hopefully you settle into the idea that this is your life now.
ryedaft@sh.itjust.worksto Privacy@lemmy.ml•OpenAI Says It’s "Over" If It Can’t Steal All Your Copyrighted WorkEnglish4·3 months agoNo because what he does is already a settled part of the law.
ryedaft@sh.itjust.worksto Privacy@lemmy.ml•[SWE] Swedish government wants a back door in SignalEnglish2·3 months agoYes. The Wikipedia page is also a long list of wtf.
ryedaft@sh.itjust.worksto Privacy@lemmy.ml•[SWE] Swedish government wants a back door in SignalEnglish30·3 months agoBefore any politician asks for a backdoor into an encrypted service they should be required to explain Project Rubicon
ryedaft@sh.itjust.worksto Linux@lemmy.ml•Help me change my windows gaming pc to LinuxEnglish21·4 months agoI think you should be able to do a USB drive boot of the distro you are interested in and check whether you can get all these things working? It’ll run slow though so don’t be scared of performance is less than you were hoping for. It’ll be much better in the install.
ryedaft@sh.itjust.worksto Asklemmy@lemmy.ml•people who know more than one language, are your settings in english or another language?English4·4 months agoMore verbose happens to every translation. Because the original text could choose to communicate things in a way that works with that language but every translation has to include all the information in the original version.
ryedaft@sh.itjust.worksto Linux@lemmy.ml•With all this ghostty talk. Am I out of touch for still using terminator all these years?English1·5 months agoPrefer baratty
Edit: baratty -> bara tiddy
This is a very good joke
ryedaft@sh.itjust.worksto Memes@lemmy.ml•Will you let them distract and divide you again? It's what they do...English74·6 months agocough cishets
Thank God actual cops haven’t watched those TV shows and movies.
Perpetual licenses are dumb though. Software is a living breathing thing. Without developers it starts to die.
ryedaft@sh.itjust.worksto Memes@lemmy.ml•Lemmy turbolibs reporting *calls for violence* 🥱English372·6 months agoDon’t eat the rich 🥺😉
At my old job people were constantly transitioning to organisations that they had professional relationships with i.e. customers or suppliers. See if you can’t switch some of your tasks at work to interface with potential employers.