(self, name)
| 206 | _constants[name] = val |
| 207 | |
| 208 | def get(self, name): |
| 209 | try: |
| 210 | v = _constants[name] |
| 211 | except KeyError: |
| 212 | try: |
| 213 | v = _constants_default[name] |
| 214 | except KeyError: |
| 215 | raise NameError(name + ": no such constant") |
| 216 | |
| 217 | return v |
| 218 | |
| 219 | |
| 220 | # the instanciation of the class |
no outgoing calls