Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python and strategy pattern
#4
Python functions cannot be overloaded. One can only override functions in subclasses. I guess python doesn't even look at the parameters, even in the case of abstract methods. That said, I'm breaking a zen of python's rule: "In the face of ambiguity, refuse the temptation to guess." :) The answer is probably in abc's documentation.
Reply


Messages In This Thread
Python and strategy pattern - by tanc - Nov-30-2018, 06:00 AM
RE: Python and strategy pattern - by Gribouillis - Nov-30-2018, 07:03 AM
RE: Python and strategy pattern - by tanc - Nov-30-2018, 07:47 AM
RE: Python and strategy pattern - by Gribouillis - Nov-30-2018, 08:07 AM
RE: Python and strategy pattern - by tanc - Nov-30-2018, 08:23 AM
RE: Python and strategy pattern - by Gribouillis - Nov-30-2018, 08:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with Python Script to generate SVG Dot Matrix Pattern for LED Light Guide iamrickm 2 833 Aug-25-2023, 06:07 PM
Last Post: iamrickm
  Moving average strategy irina_shubina 2 1,848 Jul-31-2022, 05:11 PM
Last Post: paulyan
  strategy to troubleshoot what pyinstaller misses hammer 0 988 May-23-2022, 01:05 AM
Last Post: hammer
  Best strategy for creating .exe for windows hammer 4 1,556 Apr-05-2022, 12:47 AM
Last Post: hammer
  Strategy on updating edits back to data table and object variables hammer 0 1,231 Dec-11-2021, 02:58 PM
Last Post: hammer
  calculate daily return in percent in forex as to some strategy? alen 1 2,253 Mar-12-2021, 10:03 AM
Last Post: buran
  Python learning strategy IluvPython 6 3,320 Nov-04-2019, 07:41 PM
Last Post: buran
  What is the strategy for working with class variables? AlekseyPython 3 3,068 Feb-24-2019, 05:34 AM
Last Post: AlekseyPython
  create list from repeated pattern in python Code4fun 2 3,481 Sep-25-2018, 07:09 PM
Last Post: woooee
  best parallelisation strategy on python simona 1 2,264 Apr-19-2018, 01:51 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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