Python Forum
code running after tracebacks
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
code running after tracebacks
#1
i had mentioned elsewhere that i had seen code run after tracebacks. i found why. this was happening. when developing classes where instantiated a lot with perhaps many references. i was debugging them and adding code to print details in many methods including self.__del__(). when an exception was not handled that was going to abort, it proceeded to gracefully? clean up all the still-referenced objects. so all that self.__del__() code was running after the traceback was printed. you can imagine what would happen if that code had an unhandled exception.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  compiling but not running source code Skaperen 1 1,296 Jun-05-2022, 10:47 PM
Last Post: Gribouillis
  running produced python code Skaperen 6 1,855 Dec-25-2021, 05:52 PM
Last Post: Skaperen
  Running three-year old python code ErnestTBass 4 2,472 Jun-19-2020, 02:46 PM
Last Post: snippsat
  Recovering lost source code when the code is running in memory micseydel 13 9,526 Apr-14-2017, 02:35 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