Converts a value to, hopefully, a more appropriate Python object.
(value)
| 291 | return _splitdict(tk, res, conv=_tclobj_to_py) |
| 292 | |
| 293 | def _convert_stringval(value): |
| 294 | """Converts a value to, hopefully, a more appropriate Python object.""" |
| 295 | value = str(value) |
| 296 | try: |
| 297 | value = int(value) |
| 298 | except (ValueError, TypeError): |
| 299 | pass |
| 300 | |
| 301 | return value |
| 302 | |
| 303 | def _to_number(x): |
| 304 | if isinstance(x, str): |
no test coverage detected
searching dependent graphs…