[Python-ideas] Decorator to avoid a mistake
Stephen J. Turnbull
turnbull.stephen.fw at u.tsukuba.ac.jp
Sat Nov 26 09:24:53 EST 2016
Steven D'Aprano writes:
> Sometimes I think Python-as-a-teaching-language and Python-as-a-
> production-language are strongly opposed.
I haven't found that to be the case. Linters are quite effective, as
long as you discipline the students to use them. I don't think this
check is in the linters I use, and if not I'd like to see it added,
though.
> I wonder whether there might be a case to be made for a
> --with-training-wheels option?
You could make it, but I can't imagine any argument that doesn't
immediately fall prey to
> But that's better placed in the IDE, not the core language.
Maybe my imagination is just poor, but I think the burden of proof is
on those who would add --with-training-wheels to the implementation.
(N.B. This is an implementation issue, not something that would be in
the language spec! :-)
More information about the Python-ideas
mailing list