

Thanks! I didn’t know about that community.
Thanks! I didn’t know about that community.
TLDR: 3.11 is twice as fast as 3.10 at doing global name lookups, so an old speedup hack of aliasing a global function locally isn’t needed.
For example, when calling len() in a loop, going l=len, and calling l() in the loop was faster in 3.10. In 3.11, moreso in 3.13, it’s almost a wash.
However, the author says this:
Accessing functions through a module [e.g. math.sin()] or a deep attribute chain can still carry overhead. Creating a local alias or using “from module import name” continues to be effective in those situations.
But when I look at the numbers, I would say 3.13 is pretty close to making it an unnecessary optimization in general. A little subjective on how you interpret the numbers.
Great info, but this was like trying to use a recipe and reading the author’s life story to get there.
No sense crying over spilt milk. Just buy another one! It’s only property.
and is likely to end his career as a hitmaking music executive, fashion entrepreneur, brand ambassador and reality TV star.
About to kick start his career as a politician though.
I’m ootl, what happened to Nova? I have it on my old phone.
I used to have a Dell stick PC that I traveled with to hook up to TV’s in hotels and apartments to stream Netfli, youtube, plex, etc. Worked great for its size and I would hook up a mini wireless mouse and keyboard to control it.
Look up Stick PC or PC on a stick. You can get windows or Linux variants and I imagine you can change the OS if you work at it.
Check out meetup.com for any particular hobbies you’re into.
I was in Buenos Aires and saw a hockey shop and I was like, whaaaat? Then I realized it was selling field hockey equipment. Most places I travel, if you talk about hockey it means field hockey, and you have to say “ice hockey” if that’s what you’re talking about.
And National Day for Truth and Reconciliation is wrong?
Holy shit that’s the stupidest thing I’ve read all day. It has nothing to do with your petty personal demons. Go educate yourself and/or delete your account on Lemmy.ca.
Here’s a start: https://www.canada.ca/en/canadian-heritage/campaigns/national-day-truth-reconciliation.html
There are lots of middle class divorce lawyers
Thank you, I knew what it meant to say, but my auto-translate (in my brain) pictured a disc of fried cheese initially, and I was wondering why it felt wrong. I know just enough French to get myself into trouble.
Unfortunately, by that metaphor, the world is constipated.
Archive from the original post: https://archive.is/DgQoY
I avoid using single use bottles, but when I do, I often crush them after I’m finished to save space, so they don’t blow away and roll around as easily, and to save space in the recycling.
Do they not take crushed bottles where you live?
Yes, that’s why you pay with credit/debit. To avoid the round up.
I changed “will” to “would” to hopefully make it more clear.
We follow normal rounding rules in Canada. 1, 2 round down to 0. 3, 4 round up to 5. 6, 7 round down to 5. 8, 9 round up to 10.
Can you game the system? Yes!
As a business, make sure all your prices (plus tax) come to a price ending in 3, 4, 8, or 9. When consumers buy a single item you’ll get the rounding up (edit: if they pay cash) and make sweet, sweet profit. But if they buy more than one item, you’re SOL on controlling the rounding.
As a consumer, you have way more control. First, pay with cash whenever the price will round down and you can probably “profit” 5 or so dollars a year. (Assuming you pay with cash on or two times a day, saving 1 to 2 cents each time.) Pay with credit or debit each time the price will would round up.
Second, you can get real fancy. You can learn tax rules in depth so you know what items will or won’t be taxed and at what rate (we have federal and provincial taxes but they don’t apply to everything and they don’t follow the same rules on what is taxed.) But, you can use this info to always know what the final bill will be and always buy combinations of items that end in 2 or 7 (or 1 and 6 if you’re lazy) and always pay cash. You can profit like $20 a year or something doing this.
In reality? No one gives a shit until that one rare time you’re paying with cash and it rounds down. It’s your lucky day and you do the Six Flags Man dance. It’s like finding a penny and picking it up.
It’s better to start here: https://notpron.com/notpron/