[Python-ideas] func attribute & default arg
Georg Brandl
g.brandl at gmx.net
Thu May 14 23:04:24 CEST 2009
spir schrieb:
> Hello,
>
> I think there is some confusion on the topic of static variables in relation
> to default arguments and function attributes. Or, maybe, my point of view is
> different from the one of the majority on python-ideas. (a rather long post)
>
> To sum up, I think the core of the issue is not about static/dymamic
> evaluation, or compile time/run time; rather it lies in the fact that python
> internally does not separate a default *value* from the corresponding local
> *variable*.
Please try to think in terms of *names* and *objects*, that makes much more
sense with Python's namespaces.
Georg
More information about the Python-ideas
mailing list