Releases: mutating/printo
Releases · mutating/printo
0.0.27
0.0.26
A minor but important update that changes the external API. The core function describe_data_object is renamed to describe_call.
0.0.25
Minor update:
- If the terminal does not support
Unicode, the characterλ(which denotes a lambda function) will now be displayed as the string<lambda>. - Fixed another issue where an error that occurred while attempting to read an object's metadata could slip through.
- Refactored the core code and tests without affecting functionality.
- Fixed a minor error in the documentation.
0.0.24
A small but useful update. It mainly focuses on clarifying various edge cases for features added previously.
- The command
python3 -c "from printo import superrepr; print(superrepr(lambda value, extra: False))"now always correctly outputs either theλsymbol or the full lambda function code. - Character limits do not affect the
Ellipsis, as otherwise this would only add extra dots. - For strings, limits first cause the string to be truncated, and only then is the string sent to the
repr()function, where quotes and escape characters are added to it. The length of the ellipsis and quotes is not taken into account when truncating the string. - The rules for applying limits are now the same for regular and byte strings.
- The display of objects has changed slightly in cases where an exception was raised during representation.
- Limited support for ternary expressions was added to the
@repreddecorator.
0.0.23
A set of small but important changes:
- Fixed some typing issues when using the
@repreddecorator. - The internal code implementation was simplified slightly.
- Callback signature validation was strengthened.
- More tests were added.
- The
superreprfunction is now officially part of the library’s external API. - The behavior of the
superreprfunction is now more comprehensive. It now correctly handles objects of regular, class, and static methods, as well as functools.partial objects.
0.0.22
A minor upgrade, just added some type annotations.
0.0.21
A minor upgrade, just added some type annotations.
0.0.20
A little update.
- Now using the
@repreddecorator you can set some parameters as positional ones.
0.0.19
The functionality of the package has not changed, just added 1 test.
0.0.18
A small but important update:
- You can now pass dictionaries containing filters and lists of ignored parameters to the
@repreddecorator. - You can now also configure the
@repreddecorator to use the class's__qualname__attribute instead of__name__. - The test suite slightly improved.