10000 bpo-41876: Overload __repr__ for tkinter Font objects by platonoff-dev · Pull Request #22450 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-41876: Overload __repr__ for tkinter Font objects #22450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Oct 14, 2020
Prev Previous commit
Next Next commit
Use __qualname__ folowing PEP-3155.
Fix missing brackets.
  • Loading branch information
platonoff-dev committed Sep 29, 2020
commit 6bea64fc9229c692c4af692259c2ffa9d2cb0f92
2 changes: 1 addition & 1 deletion Lib/tkinter/font.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __str__(self):
return self.name

def __repr__(self):
return f"{self.__class__.__module__}.{self.__class__.__name__} object '{self.name}'"
return f"<{self.__class__.__module__}.{self.__class__.__qualname__} object '{self.name}'>"

def __eq__(self, other):
if not isinstance(other, Font):
Expand Down
0