Python Forum
rework of a little python-script - extending getters and setters
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rework of a little python-script - extending getters and setters
#2
This is Python, not Java. You never almost never use getters and setters in Python. If you really need that sort of security you use properties. But a class like the one in your example, you just don't bother.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: rework of a little python-script - extending getters and setters - by ichabod801 - Oct-30-2018, 01:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extending list doesn't work as expected mmhmjanssen 2 286 May-09-2024, 05:39 PM
Last Post: Pedroski55
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,587 Jun-29-2023, 11:57 AM
Last Post: gologica
  Can property getters and setters have additional arguments? pjfarley3 2 3,130 Oct-30-2020, 12:17 AM
Last Post: pjfarley3
  How to kill a bash script running as root from a python script? jc_lafleur 4 6,112 Jun-26-2020, 10:50 PM
Last Post: jc_lafleur
  crontab on RHEL7 not calling python script wrapped in shell script benthomson 1 2,395 May-28-2020, 05:27 PM
Last Post: micseydel
  Package python script which has different libraries as a single executable or script tej7gandhi 1 2,701 May-11-2019, 08:12 PM
Last Post: keames
  Extending my text file word count ranker and calculator Drone4four 8 5,487 Jan-25-2019, 08:25 AM
Last Post: steve_shambles
  How to run python script which has dependent python script in another folder? PrateekG 1 3,229 May-23-2018, 04:50 PM
Last Post: snippsat
  How to call one python script and use its output in another python script lravikumarvsp 3 32,579 May-16-2018, 02:08 AM
Last Post: lravikumarvsp
  Check Python version from inside script? Run Pythons script in v2 compatibility mode? pstein 2 9,926 Jul-07-2017, 08:59 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020