Show More
@@ -416,11 +416,11 b' class ResultNS(object):' | |||
|
416 | 416 | |
|
417 | 417 | >>> ns = ResultNS({'a':17,'foo':range(3)}) |
|
418 | 418 | >>> print ns |
|
419 |
|
|
|
419 | NS{'a': 17, 'foo': [0, 1, 2]} | |
|
420 | 420 | >>> ns.a |
|
421 |
|
|
|
421 | 17 | |
|
422 | 422 | >>> ns['foo'] |
|
423 |
|
|
|
423 | [0, 1, 2] | |
|
424 | 424 | """ |
|
425 | 425 | def __init__(self, dikt): |
|
426 | 426 | for k,v in dikt.iteritems(): |
General Comments 0
You need to be logged in to leave comments.
Login now