Python Forum
__getitem__ is readonly problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
__getitem__ is readonly problem
#2
collections.UserDict allows you to overwrite any "magic" method of dictionary - and add your own ones.
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
__getitem__ is readonly problem - by harun2525 - May-10-2017, 12:11 AM
RE: __getitem__ is readonly problem - by volcano63 - May-10-2017, 07:37 AM
RE: __getitem__ is readonly problem - by harun2525 - May-10-2017, 09:45 AM
RE: __getitem__ is readonly problem - by nilamo - May-10-2017, 02:53 PM
RE: __getitem__ is readonly problem - by volcano63 - May-10-2017, 05:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  __getitem__ Error stahorse 4 4,486 Jun-15-2022, 08:31 AM
Last Post: stahorse

Forum Jump:

User Panel Messages

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