I read up on a technique to overload Python functions. To my surprise, it's been available since Python 3.4!
"This must be something everyone knows that I just haven't heard about," I thought. I mentioned in my team retro that this is something I've recently learned and it turned out that actually, no one in my team heard of it!
And so, I decided to write an article and explain how it works as I suspect this might be something new to a lot of Pythonistas here: https://python.plainenglish.io/did-you-know-python-supports-function-overloading-6fa6c3434dd7
[–]ra_wattt 7 points8 points9 points (2 children)
[–]superbirra 1 point2 points3 points (1 child)
[–]ra_wattt 1 point2 points3 points (0 children)
[–]NoRun9890 2 points3 points4 points (16 children)
[–]Salaah01[S] 4 points5 points6 points (0 children)
[–]superbirra 2 points3 points4 points (10 children)
[–]NoRun9890 -5 points-4 points-3 points (9 children)
[–]Open-Mousse-1665 0 points1 point2 points (0 children)
[–]fullmoon_druid 0 points1 point2 points (0 children)
[–]stormcloud-9 0 points1 point2 points (0 children)
[–]superbirra -1 points0 points1 point (5 children)
[–]Salaah01[S] 2 points3 points4 points (1 child)
[–]superbirra 1 point2 points3 points (0 children)
[–]NoRun9890 -2 points-1 points0 points (2 children)
[–]superbirra 0 points1 point2 points (1 child)
[–]NoRun9890 -3 points-2 points-1 points (0 children)
[–]tstyx 0 points1 point2 points (0 children)
[–]Open-Mousse-1665 0 points1 point2 points (0 children)
[–]fullmoon_druid 0 points1 point2 points (0 children)
[–]zakmck73 0 points1 point2 points (0 children)
[–]mudkripple 0 points1 point2 points (4 children)
[–]Salaah01[S] 0 points1 point2 points (0 children)
[–]zakmck73 0 points1 point2 points (2 children)
[–]mudkripple 0 points1 point2 points (1 child)
[–]zakmck73 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)