Apparently this works in Python 3.8+:

```
>>> a = 'bar'
>>> print(f'foo {a=}')
foo a='bar'
```

todo: learn more about string formatting additions in recent Python versions.

Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko