Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dict and __dict__
#2
Because your object has no attribute dict when every object in python has attribute __dict__ which maps all objects attribute to it's value.

More detaild in doc: https://docs.python.org/3/library/stdtyp...t.__dict__
Reply


Messages In This Thread
dict and __dict__ - by cls0724 - Apr-05-2020, 06:24 AM
RE: dict and __dict__ - by Mateusz - Apr-05-2020, 07:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  __dict__ in math library akbarza 6 993 Sep-28-2023, 08:23 AM
Last Post: buran
  Sort a dict in dict cherry_cherry 4 80,133 Apr-08-2020, 12:25 PM
Last Post: perfringo
  what is the __dict__ object? aaron1989041 6 4,825 Mar-29-2018, 05:18 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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