Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Immutable Book Class
#3
(Nov-27-2017, 06:37 PM)buran Wrote: why not use tuple, instead of list, if you want it immutable? Note that I don't think logs should be immutable - user may want to edit an old log

I wasn't thinking, I should have thought of tuple!

That being said, how would go about modelling the logs while keeping it thread safe? The data changes, as we both pointed out.
Reply


Messages In This Thread
Immutable Book Class - by QueenSvetlana - Nov-27-2017, 06:23 PM
RE: Immutable Book Class - by buran - Nov-27-2017, 06:37 PM
RE: Immutable Book Class - by QueenSvetlana - Nov-27-2017, 06:44 PM
RE: Immutable Book Class - by buran - Nov-27-2017, 06:50 PM
RE: Immutable Book Class - by QueenSvetlana - Nov-27-2017, 06:53 PM
RE: Immutable Book Class - by nilamo - Nov-27-2017, 07:19 PM
RE: Immutable Book Class - by QueenSvetlana - Nov-27-2017, 07:24 PM
RE: Immutable Book Class - by buran - Nov-27-2017, 07:04 PM
RE: Immutable Book Class - by QueenSvetlana - Nov-27-2017, 07:07 PM
RE: Immutable Book Class - by buran - Nov-27-2017, 07:16 PM
RE: Immutable Book Class - by buran - Nov-27-2017, 07:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  a contact book - a class made to store data apollo 2 2,717 Jun-12-2019, 04:33 PM
Last Post: apollo
  Correct way to implement immutable class QueenSveta 3 8,723 Jun-20-2018, 07:34 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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