(self, dct)
| 327 | return ret |
| 328 | |
| 329 | def get_dictionary(self, dct): |
| 330 | ret = self.init_dict() |
| 331 | |
| 332 | i = 0 |
| 333 | for key, val in dct.items(): |
| 334 | i += 1 |
| 335 | # we need to add the id because otherwise we cannot find the real object to get its contents later on. |
| 336 | key = "%s (%s)" % (self.key_to_str(key), id(key)) |
| 337 | ret[key] = val |
| 338 | if i >= pydevd_constants.PYDEVD_CONTAINER_RANDOM_ACCESS_MAX_ITEMS: |
| 339 | ret[TOO_LARGE_ATTR] = TOO_LARGE_MSG % (pydevd_constants.PYDEVD_CONTAINER_RANDOM_ACCESS_MAX_ITEMS,) |
| 340 | break |
| 341 | |
| 342 | # in case if the class extends built-in type and has some additional fields |
| 343 | additional_fields = defaultResolver.get_dictionary(dct) |
| 344 | ret.update(additional_fields) |
| 345 | ret[GENERATED_LEN_ATTR_NAME] = len(dct) |
| 346 | return ret |
| 347 | |
| 348 | |
| 349 | def _apply_evaluate_name(parent_name, evaluate_name): |
nothing calls this directly
no test coverage detected