Hacker News new | ask | show | jobs
by otheracc 1727 days ago
> f'{GIT_DIR}/objects'

Never seen a writing style like that. How is it called? I want to read some documentation and history.

1 comments

Sting interpolation, aka f-string, pep 498. Uses the .format mini-language plus expressions. Python 3.6+
^string of course.
Thanks a lot, I'll check it out!