Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Difference () and []
#2
something() applies to objects having a __call__() method and it executes this method, while something[] applies to objects having a __getitem__() method and it executes this method.
Reply


Messages In This Thread
Difference () and [] - by macfanpl - Sep-24-2020, 10:57 AM
RE: Difference () and [] - by Gribouillis - Sep-24-2020, 11:05 AM
RE: Difference () and [] - by ndc85430 - Sep-24-2020, 11:33 AM
RE: Difference () and [] - by jefsummers - Sep-24-2020, 11:51 AM

Forum Jump:

User Panel Messages

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