Python Forum
Correct way to implement immutable class
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Correct way to implement immutable class
#1
As of Python 3.6.5, what is the correct way to create an immutable object? Would you simply use a namedtuple? Or inherit from a namedtuple?
Reply


Messages In This Thread
Correct way to implement immutable class - by QueenSveta - Jun-20-2018, 01:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Right way to implement interfaces yossiy123 1 1,346 May-12-2022, 10:31 AM
Last Post: Gribouillis
Question best way to implement algorithm hamidze 3 2,322 Feb-27-2021, 07:10 PM
Last Post: hamidze
  How to implement class register? AlekseyPython 0 2,042 Feb-14-2019, 06:19 AM
Last Post: AlekseyPython
  Immutable Book Class QueenSvetlana 10 6,454 Nov-27-2017, 07:31 PM
Last Post: buran

Forum Jump:

User Panel Messages

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