(x)
| 77 | |
| 78 | |
| 79 | def compare_object_attrs_key(x): |
| 80 | if GENERATED_LEN_ATTR_NAME == x: |
| 81 | as_number = to_number(x) |
| 82 | if as_number is None: |
| 83 | as_number = 99999999 |
| 84 | # len() should appear after other attributes in a list. |
| 85 | return (1, as_number) |
| 86 | else: |
| 87 | return (-1, to_string(x)) |
| 88 | |
| 89 | |
| 90 | def is_string(x): |