view tests/data/conf10.py @ 104:d9f9a06e0c49

Make a better error message for "TypeError" exceptions when looking up variables. Otherwise -- if a key exists but if it's not a dict as expected a TypeError is throws that nobody does understand.
author Franz Glasner <f.glasner@feldmann-mg.com>
date Fri, 23 Mar 2018 17:25:21 +0100
parents 1b4d95f60650
children 816327e178b0
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
    }
}