Python Forum
ATM machine (deposits/withdrawals) using OOP
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ATM machine (deposits/withdrawals) using OOP
#15
Quote:When calling is_dunder() on various properties and objects, the Python REPL just says: “object not subscriptable” or “is not defined”. Is this expected?

Yes, I should have clarified that is_dunder() is just a helper for my print_properties function. It was not necessary to separate into its own function but I thought it might make the list comprehension more readable if I did not tack on that extra bit of code.

The entire purpose for my helper function was to illustrate to you that the BA instance does not have a transaction_time_id_format which is why you got the traceback on post #8

Sounds like now you have amended your code to instantiate TimeZone inside Account which will solve your problem. :)
Apologetic Canadian, Sorry about that eh?
Reply


Messages In This Thread
RE: ATM machine (deposits/withdrawals) using OOP - by knackwurstbagel - Mar-14-2022, 10:30 PM

Forum Jump:

User Panel Messages

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