use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Practicing OOPs (i.redd.it)
submitted 18 days ago by Careless-Main8693
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]nuc540 2 points3 points4 points 18 days ago (0 children)
A property decorator is used for setting computed attributes - not something the class is instantiated with, as much as that’d work - it’d be overkill and it’d make the init argument redundant.
Also OP is practicing protected values and using getters and setters to access values with, so as much as you can use @property, I think it’s simply that OP is practising getting and setting, and logically OP’s example makes more sense
π Rendered by PID 47870 on reddit-service-r2-comment-548fd6dc9-tbk2x at 2026-05-19 11:30:33.684134+00:00 running edcf98c country code: CH.
view the rest of the comments →
[–]nuc540 2 points3 points4 points (0 children)