[Python-ideas] Idea: Deferred Default Arguments?
Steven D'Aprano
steve at pearwood.info
Fri Jul 20 14:02:06 EDT 2018
On Fri, Jul 20, 2018 at 05:54:44PM +0200, Peter O'Connor wrote:
> On Fri, Jul 20, 2018 at 5:41 PM, Steven D'Aprano <steve at pearwood.info>
> wrote:
> >
> >
> > What makes you think that a built-in deferred feature won't have exactly
> > the same issues? Do you have an implementation that doesn't need to do
> > intraspection?
>
>
> I don't know about these low level things, but I assume it'd be implemented
> in C and wouldn't have the same cost as entering a new function in Python.
> I imagine it just being a small modification of the mechanism that Python
> already uses to assign values to arguments when a function is called. Is
> that not the case?
I don't know. That's why I'm asking why you think it wouldn't.
--
Steve
More information about the Python-ideas
mailing list