logoalt Hacker News

Izkatatoday at 4:32 AM2 repliesview on HN

Execution time, not parse time. It's a side effect of function declarations being statements that are executed, not the list/dict itself. It would happen with any object.


Replies

mattclarkdotnettoday at 4:51 AM

It's still ridiculous. A hypothetical Python4 would treat function declarations as declarations not executable statements, with no impact on real world code except to remove all the boilerplate checks.

show 2 replies
mattclarkdotnettoday at 4:53 AM

Let's not get started on the cached shared object refs for small integers....

show 1 reply