Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
baq
10y ago
0 comments
Save
Share
.format(
locals()) is a hack; locals() isn't supported on some python implementations.
0 comments
2 comments · 2 top-level
top
newest
oldest
inclemnet
10y ago
The documentation at
https://docs.python.org/3/library/functions.html#locals
doesn't indicate that locals is not part of the language - where is it documented that using it is a hack and that python implementations need not support it?
wyldfire
10y ago
It is on PyPy and CPython. Which ones don't? And when they don't support it, how do they behave? Return an empty dict or give an error?
j
/
k
navigate · click thread line to collapse