Python Forum
omitting arguments in function/method calls
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
omitting arguments in function/method calls
#11
Instead of fun(a,,c), the pythonian philosophy would be to call fun(a, None, c). Of course, the function needs to be ready for such calls.
Reply


Messages In This Thread
RE: omitting arguments in function/method calls - by Gribouillis - Nov-24-2019, 10:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  optimizing calls to isinstance() Skaperen 0 842 Nov-27-2022, 01:33 AM
Last Post: Skaperen
  extracting a function/class/method from code Skaperen 5 2,154 Mar-30-2022, 12:13 AM
Last Post: Skaperen
  function/method keyword argument alias Skaperen 1 3,051 Dec-01-2019, 03:56 AM
Last Post: Gribouillis
  how operators are implemented as function calls Skaperen 5 3,438 Dec-15-2018, 03:14 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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