Python Forum
API REST Package for Calling/Flask
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
API REST Package for Calling/Flask
#13
I looked at that image. That is some of the worst code I've seen. Your code is so much better. They set the dunder methods as class variables with all this get and set stuff.

You should never take control away from the user of your class. That entire if statement should have returned either a value or a boolean. Just kidding. :)
Reply


Messages In This Thread
API REST Package for Calling/Flask - by muzikman - Oct-16-2021, 06:39 PM
RE: API REST Package for Calling/Flask - by muzikman - Oct-22-2021, 07:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with return on REST API Flask korenron 0 1,343 Jun-13-2021, 10:40 AM
Last Post: korenron
  Calling Oracle REST SQL from Python johnjacob 2 2,100 Nov-05-2020, 04:19 AM
Last Post: johnjacob
  rest api parameter in flask bluefrog 3 3,342 Jun-21-2018, 05:03 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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