Python Forum
Polymorphism not working with a call to a abstract method
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Polymorphism not working with a call to a abstract method
#2
You need to call it as self.writeAccumulator(registers, ram, rom). Otherwise Python assumes the containing namespace of 'writeAccumulator' is either local or global.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Polymorphism not working with a call to a abstract method - by ichabod801 - Nov-04-2019, 01:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  method call help sollarriiii 6 2,485 Feb-21-2023, 03:19 AM
Last Post: noisefloor
  Custom method to handle exceptions not working as expected gradlon93 3 2,208 Dec-22-2022, 07:12 PM
Last Post: deanhystad
  Behavior of Abstract Base Class dgrunwal 4 3,296 Oct-15-2020, 07:19 PM
Last Post: Gribouillis
  Abstract classes SephMon 8 4,869 Aug-30-2020, 05:03 AM
Last Post: Gribouillis
  remove elements method not working spalisetty06 4 3,552 Aug-13-2020, 01:17 PM
Last Post: deanhystad
  python os.popen is not working for wait method elenaflorence87 0 2,730 Jul-22-2020, 12:56 PM
Last Post: elenaflorence87
  how to get around recursive method call Skaperen 10 6,676 Jul-01-2020, 10:09 PM
Last Post: Skaperen
  How to convert TransactSQL into Abstract Syntax Tree (AST) using Python? bajrangbs 2 3,082 Jan-30-2020, 03:46 PM
Last Post: micseydel
  How to call COM-method using comtypes jespersahner 0 3,256 Nov-15-2019, 12:54 PM
Last Post: jespersahner
  How to Call a method of class having no argument dataplumber 7 9,801 Oct-31-2019, 01:52 PM
Last Post: dataplumber

Forum Jump:

User Panel Messages

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