jetbrains-academy / introduction_to_python

Introduction to Python course
MIT License
42 stars 27 forks source link

import cache used in Module and packages / Executing modules as script #146

Closed richardbrinkman closed 1 year ago

richardbrinkman commented 1 year ago

If you first check the solution without the

if __name__ == '__main__':

then correct it with the if clause, the checker still gives an error. Even if the peak solution shows two identical scripts.

This is probably caused by caching of

import task

in the checker.

richardbrinkman commented 1 year ago

Fixed in PR #147