News for hackers. Stuff that matters.
Re:Intel Extension for Scikit-Learn by sillysaurusx on Monday November 01, 2021 @12:13PM (#29068764)
Import magic ends up causing all kinds of problems. There's no way to tell it "I just want to import your classes; I don't want you to patch!" without literally patching the library.

In general, I'm a fan of "let me call the initializer myself, at program startup." It's especially important when you want reversibility, i.e. teardown in addition to initialization, which pops up all the time for unit tests.

Re:Intel Extension for Scikit-Learn by dangerbird2 on Monday November 01, 2021 @01:27PM (#29069906)
Also networking/web apps with lifecycle hooks, where careless import-time logic can break the setup procedures. To quote zen of python, "explicit is better than implicit"