Hacker News new | past | comments | ask | show | jobs | submit login

> f'{GIT_DIR}/objects'

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




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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: