Skip to content

Releases: mutating/printo

0.0.27

22 Apr 13:32
8a0d65f

Choose a tag to compare

A minor update addressing type-related issues:

  • Fixed false positives in MyPy when using the @repred decorator.
  • Added type tests for almost all basic use cases.

0.0.26

21 Apr 18:27
8f8468a

Choose a tag to compare

A minor but important update that changes the external API. The core function describe_data_object is renamed to describe_call.

0.0.25

21 Apr 18:10
95989de

Choose a tag to compare

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

21 Apr 14:23
29fa6b4

Choose a tag to compare

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 @repred decorator.

0.0.23

20 Apr 14:35
81feac8

Choose a tag to compare

A set of small but important changes:

  • Fixed some typing issues when using the @repred decorator.
  • The internal code implementation was simplified slightly.
  • Callback signature validation was strengthened.
  • More tests were added.
  • The superrepr function is now officially part of the library’s external API.
  • The behavior of the superrepr function is now more comprehensive. It now correctly handles objects of regular, class, and static methods, as well as functools.partial objects.

0.0.22

16 Mar 23:42
a063591

Choose a tag to compare

A minor upgrade, just added some type annotations.

0.0.21

16 Mar 23:35
11268e8

Choose a tag to compare

A minor upgrade, just added some type annotations.

0.0.20

16 Mar 23:12
a880542

Choose a tag to compare

A little update.

  • Now using the @repred decorator you can set some parameters as positional ones.

0.0.19

16 Mar 22:12
79fea6c

Choose a tag to compare

The functionality of the package has not changed, just added 1 test.

0.0.18

16 Mar 22:00
c10b671

Choose a tag to compare

A small but important update:

  • You can now pass dictionaries containing filters and lists of ignored parameters to the @repred decorator.
  • You can now also configure the @repred decorator to use the class's __qualname__ attribute instead of __name__.
  • The test suite slightly improved.