Message317060
It's the same answer. __init__ *is* the package namespace, so you are setting the value of 'func' in the package (.) namespace, and what import is doing is correct.
I know this is confusing. I banged my head against it while debugging a weird import problem in the anydb module, but it is working as designed. I think the way __init__ works may fall under rule 14 of the Zen :) |
|
Date |
User |
Action |
Args |
2018-05-18 21:43:28 | r.david.murray | set | recipients:
+ r.david.murray, brett.cannon, ncoghlan, eric.snow, Rolf Campbell |
2018-05-18 21:43:28 | r.david.murray | set | messageid: <1526679808.12.0.682650639539.issue33547@psf.upfronthosting.co.za> |
2018-05-18 21:43:28 | r.david.murray | link | issue33547 messages |
2018-05-18 21:43:28 | r.david.murray | create | |
|