mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
As a fallback value PySubstitutionChunkReference resolves into the right operand of "%" operator whenever it cannot find individual expressions for multiple positional formatted fields or a field with a key. I explicitly check and suppress the intention for such cases. In future it's better to introduce some sort of "strict resolve" semantic in the PySubstitutionChunkReference so as do these checks twice.
2 lines
109 B
Python
2 lines
109 B
Python
numbers = {'one': 'eins', 'two': 'zwei', 'three': 'drei'}
|
|
print('%(one)s %(two)s %(three)s' % nu<caret>mbers) |