Get the latest tech news
Reloading Classes in Python
For some housekeeping, if you are not signed up, also make sure to sign up for the RSS feed of my crime de-coder blog. I have not been cross posting here consistently. For the last few posts: Using…
And then instead of using the reload method as is (which would require me to create an entirely new object), use this approach for de-bugging: So figuring out ways to iterate testing faster is often worth the effort (I might have saved a day or two of work if I did this approach sooner when debugging that code). Basically it went down an overly complicated path to get the exact calculation, whereas here I have an approximation using tiny buffers that works just fine and is much simpler.
Or read this on Hacker News