Mercurial > hgrepos > Python > libs > ConfigMix
view tests/data/conf10.py @ 515:3387a9d5fb12
Performance: compute the length of the constant input strinc only once and compute the new rest earlier and use the computed value also in comparisons
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 19 Dec 2021 14:10:28 +0100 |
| parents | d22985d6806e |
| children |
line wrap: on
line source
# -*- coding: utf-8 -*- key1 = u"in the root namespace" key2 = u"in the root namespace -- too" tree1 = { 'key3': 0x20, 'tree2': { 'key4': u"get this as `tree1.tree2.key4'", 'key5': True, 'key6': u"off", 'key7': [], 'key8': [ u"val1", u"val2", u"{{key1}}" ], 'key9': {} } }
