Skip to content

Explicitly define printable representation#56

Open
AndrewKvalheim wants to merge 1 commit intomailgun:masterfrom
AndrewKvalheim:python3.12-repr
Open

Explicitly define printable representation#56
AndrewKvalheim wants to merge 1 commit intomailgun:masterfrom
AndrewKvalheim:python3.12-repr

Conversation

@AndrewKvalheim
Copy link
Copy Markdown

Offering a lazy solution to #55

In Python 3.12 the implementation of OrderedDict.__repr__ changed such
that ExpiringDict.__repr__ may trigger expiration and raise KeyError. To
avoid this, explicitly implement ExpiringDict.__repr__ using validated
ExpiringDict.items().

Resolves mailgun#55
AndrewKvalheim added a commit to AndrewKvalheim/nixpkgs that referenced this pull request Jul 13, 2024
d-xo pushed a commit to d-xo/nixpkgs that referenced this pull request Jul 15, 2024
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