YAMAMOTO Takashi 93a8487137 stringify: allow user classes to annotate type of their attributes
allow user classes to annotate type of their attributes using
_TYPE class attribute.

an example:

    class Foo(StringifyMixin):
        _TYPE = {'ascii': ['attr1', 'attr2']}
        def __init__(self):
            self.attr1 = 'hoge'
            self.attr2 = 'fuga'

currently handles only 'ascii' type, for which just convert from/to
unicode.

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2013-08-26 15:04:46 +09:00
..
2013-07-19 12:21:16 +09:00
2011-12-09 15:56:05 +09:00
2013-07-09 12:12:28 +09:00
2013-08-20 17:52:23 +09:00
2013-08-20 17:52:23 +09:00
2013-08-20 17:52:23 +09:00