News for hackers. Stuff that matters.
Re:PEP 810 – Explicit lazy imports by kstrauser on Saturday October 04, 2025 @07:44AM (#45472617)
You’re right. “Side effect” here means that your program’s behavior changes simply by importing something, eg by monkey patching something else.

If’s not:

* Importing other modules.

* Taking a long time to import.

* Writing .pyc files.

If any program can “import foo” and still execute exactly the same bytecode afterward as before, you can say that foo doesn’t have side effects.

There are no comments on this comment yet.