r/Python • • Sep 09 '15

Pep 498 approved. :(

https://www.python.org/dev/peps/pep-0498/
285 Upvotes

324 comments sorted by

View all comments

Show parent comments

1

u/fishburne Sep 10 '15

But the point is that these errors can creep in.

That can happen with this pep also. What is stopping someone from removing the variable in the external scope because it is hard to find its reference in the closure. With the default argument method, at least the importing of variable from external scope is explicit and nearer to the use.

1

u/oconnor663 Sep 10 '15

Good point.