Skip to content

0.0.24 - #24

Merged
pomponchik merged 14 commits into
mainfrom
develop
Apr 21, 2026
Merged

0.0.24#24
pomponchik merged 14 commits into
mainfrom
develop

Conversation

@pomponchik

@pomponchik pomponchik commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator

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.

@pomponchik
pomponchik merged commit 29fa6b4 into main Apr 21, 2026
38 of 72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant