From: <bc...@wo...> - 2000-11-03 16:52:31
|
[Samuele Pedroni ] >I'm working on the precedence issue. >I hope to have finished for ~monday. > >Everything we have discussed for it should be implemented, plus some >other bug fixes. > >I also have implemented PackageManager through a hier. of abstract classes, >this is an hook for future support for load sets. > >The patch/rewriting will be something finished but not definitive, >something we can try and discuss on. > >We will have a symm. behaviour for dir/jar pkgs, I have merged >PyJavaDir- and PyJavaPackage. I'm looking forward to see it. >Some questions: > >I would like to distinguish the support for dir() for java packages from >the support for from <pkg> import *. I dislike the fact that dir >force lazy loading, because __dir__ is used by from import * code. >Lazy loading should be limited to the from import * case. >The fact is that I want to minimize the "potential" robustness issues >of the - in any case - necessary cache patch. >Any remark or hint on this is welcome? In principle, I don't see a problem if the "dir()" builtin on a java package initialized the java classes, but your argumentation for doing so is weak. The cache code must be robust in all cases. If it isn't, its a bug that must be fixed. Implementationwise, both "from xx import *" and "dir()" uses the __dir__() hook, so do you propose make them diffrent? regards, finn |