ssg-wsg / Sample-Codes

This repository contains sample codes (Encryption Decryption, Java, Node.js and Python) to guide and support your application development on SSG-WSG Developer Portal.
3 stars 7 forks source link

Remove Getters and Setters #19

Closed asdfghjkxd closed 3 weeks ago

asdfghjkxd commented 1 month ago

The current code base uses explicit setters and getters to set and retrieve attributes within a Python class.

However, this code style is not Pythonic; we should strive to reference the attributes directly.

Let's move to remove getters and setters, and instead use property to help get and set values within a class.

asdfghjkxd commented 3 weeks ago

Closed as #20 is merged.