Python Forum
"can't set attribute" on class
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"can't set attribute" on class
#3
(Aug-22-2020, 07:53 PM)Gribouillis Wrote: The problem is that you have a read-only @property named data. The best solution is to rename the attribute. You could use _data or datadict for example.
Ah that was it - thanks!
Reply


Messages In This Thread
RE: "can't set attribute" on class - by Gribouillis - Aug-22-2020, 07:53 PM
RE: "can't set attribute" on class - by DreamingInsanity - Aug-22-2020, 07:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Initiating an attribute in a class __init__: question billykid999 8 1,365 May-02-2023, 09:09 PM
Last Post: billykid999
  class, attribute and method Frankduc 9 2,490 Feb-27-2022, 09:07 PM
Last Post: deanhystad
  Python generics: How to infer generic type from class attribute? Thoufak 0 2,833 Apr-25-2021, 09:31 AM
Last Post: Thoufak
  AttributeError class object has no attribute list object scttfnch 5 3,477 Feb-24-2021, 10:03 PM
Last Post: scttfnch
  Class has no attribute <obj-name> arunprasanth 2 4,569 Mar-18-2019, 02:08 PM
Last Post: arunprasanth
  Class object instance. Link instance attribute to class. Can it be done easier. Windspar 7 4,194 Dec-03-2018, 11:16 PM
Last Post: Windspar
  AttributeError: 'NoneType' object has no attribute 'n' in list of class objects jdrp 4 5,769 Jun-19-2018, 02:44 PM
Last Post: jdrp
  Empty attribute class dictionary after saving it in a class object dictionary 3dimensions 6 4,918 May-20-2018, 01:57 PM
Last Post: 3dimensions
  setting base class attribute bb8 1 2,539 Feb-13-2018, 06:37 PM
Last Post: nilamo
  Class attribute not recognized\working J125 1 5,402 Dec-19-2016, 01:05 AM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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