Sep-24-2020, 11:05 AM
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.
Difference () and []
|
|
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
|