Mostly you shouldn't subclass #Python built-in types. But if you do, dict subclasses can define missing: it's called when a key is missing. Instead of hiding a dict in a function as a cache, how about hiding a function in a dict!? A Fibonacci dictionary:
@nedbat These are great! In particular I wish I'd read "Why your mock doesn't work" a while back, instead of using a more head-banging and swearing based approach.
@llimllib Thanks this piece is interesting both for its content and its form(!). It is easily the most elaborately structured and formatted "blog post" I have seen. It's addressing a slightly different problem than mine: he's talking about how to alert people when a post has been substantially updated.
@nedbat Even without the circular import issue, I prefer the “import module; module.attribute” style because it tells me where that attribute/function came from without me having to look it up.
"No authentication is needed for public repos. For private repos, OAuth or
classic tokens need the repo scope, and fine-grained tokens need the
"Actions (read)" repository permission."
@nedbat@SnoopJ IMO you should not add a classifier till beta 1. A classifier states you are testing on a particular version of Python and things can dramatically change and break up till beta 1, at which point it’s stable minus bugs and-or emergency removals. It’s great to test on alphas/main, but I wouldn’t consider it a valid classifier until beta 1.
I was a guest on the TeenCast podcast made by /r/teenagers. Mostly I said, "find your tribe," "don't listen to the haters," and "things will change" a lot, but it was a fun chat. The audio lag is strange in the recording: I swear I was not talking over the hosts like it seems in the recording!! :) https://www.youtube.com/watch?v=QaEQHq2X8aM
At the same time that bad-faith "pollers" are asking about #PyConUS masking, the attendee survey asks about it as well. But that survey only goes to attendees, meaning people put off by the requirement this year will not be asked. How do we get a complete view of the entire population of potential attendees?
@boxed I'm happy to have an honest discussion. Did you see the poll? It asked a question, then he started abusing people who voted one way. "You are blathering", "that is BS", etc. Then he deleted the poll because it wasn't going his way.
@andreasjung It seems like you started this poll in bad faith. You have a clear opinion on the subject. You were not looking for opinions from people, you were trying to start arguments.
I was considering suggesting more poll options to drill into the likely policy opinions and reasoning a bit more in 4 poll options rather than a simple yes/no, but after reading Andreas' replies realized this poll lacks nuance on purpose. ☹️
@treyhunner@nedbat@andreasjung Certainly looks bad faith when the Mastodon poll is deleted (79% yes, 66 votes) but not the one on Twitter (33% yes, 3 votes)
Twitter: Pinned Andreas Jung @_andreas_jung 8h #PyCon#PyConUS@pycon 2025 should/must have a masking mandate (if the situation is comparable to 2024)? @thepsf#Python Yes 33% No 67% 3 votes. 6 days 15 hours left