-
-
Notifications
You must be signed in to change notification settings - Fork 4
Tag: dunder methods #127
Copy link
Copy link
Closed
python-discord/bot
#1644Labels
area: tagsRelated to the @Python bot's tagsRelated to the @Python bot's tags
Metadata
Metadata
Assignees
Labels
area: tagsRelated to the @Python bot's tagsRelated to the @Python bot's tags
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
This would be a tag explaining why dunder methods are special, why we would sometimes override them, and give some examples using
__init__(constructor),__str__(string representation), and__repr__(dev-friendly representation).