This isn't about what I want, just noting that the other way around could sound just as intuitive. Anyway, it's awfully slow already, how much can it hurt ;-)
Sure, there are a lot of subjective aesthetics that go into the spec, but in this case, there are objective reasons for not liking this. It's a well-known footgun that causes bugs. And it's almost never what you want, so you end up doing something like this:
def f(xs = None):
# Are these two lines actually faster than the
# interpreter creating defaults at call time?
if xs is None:
xs = []
...
Do you have any reasons at all for defending this decision?
# Are these two lines actually faster than the
# interpreter creating defaults at call time?
You're proposing that the interpreter add a check for every default parameter in every function signature; that it should optionally fire off arbitrary code for each and every one. And when you consider that high-performance Python involves writing C extensions, your proposal would be to move that check out of the compiled code and into the slow interpreted space is, yes, a major performance hit.
> You're proposing that the interpreter add a check for every default parameter in every function signature
No, that's not what I'm proposing. Why would it check anything? Just evaluate the given default expression at call time. If you don't want the overhead of an expression, don't put a default.
You can also do defaults like:
LIST_OF_X = []
def foo(xs = LIST_OF_X):
...
...if you want the other behavior. This does add a variable lookup (oh no!).
Sure, anyone can do anything. It would be up to you (and hopefully a lawyer) to then sue them and let judge/jury decide. Or, convince authorities that some criminal law was violated and they should investigate.
Both of which are hard and/or expensive. So most rely on public shame. Out them on social media and foment outrage.
Spam is a minimal effort endeavor. A lead generator for scams. Only 0.1% or 0.01% response rate is good. They only want the unsophisticated, naive recipients. Expending effort to tweak rules is not worth the effort. (Although if they can get AI to do it, then that's back to near zero effort)
I don't think, and in general believe people label, not things like construction work or care givers as BS jobs.
BS jobs are the ones that only exist to support hordes of people having jobs; middle managers, service industry (all the downtown office worker coffee/lunch/bar/cleaners/maint). And most retail.
Cleaners are a BS job? They're an unpleasant one, perhaps. But that's not a BS job. (For one thing, they often are the ones that restock the toilet paper in the office bathrooms. Think about the implications of that job no longer being done.
If we're going to have offices at all, that's not a BS job.)
I wanted to wear a body camera in the form on Mediated Reality glasses but the public shamed/cancelled the early adaptors and manufacturers so much so that the product/concept was withdrawn from market place.
I can't remember how long, but I started when you had to make a stack of 3.5 floppies to install... More than 30years ago.
Long before that, I was using 4DOS to create best "shell" possible on Microsoft. ~14 yr old.