On Mon, May 25, 2009 at 1:50 PM, Abdulaziz Ghuloum <[email protected]> wrote: > > On May 25, 2009, at 2:35 PM, Michele Simionato wrote: > >> I agree that the point of auto-caching is having it enabled by default. >> My experience with Ypsilon is not significant, but Python does >> auto-caching >> too and in 7 years of use it gave me very little trouble. > > That's reassuring. Doesn't python store the .pyc files in the same > directory as the .py file (the same way ikarus currently does it)?
Yes. As of now I have a slight preference for the Ypsilon solution, but I have no strong feelings either way. Python always try to generate a .pyc file at import time (if not already there); however, if the script is run by a user without write permission on the directory, the .pyc file is not generated and the library is recompiled on the fly, but no error is raised. This is the right thing to do, IMO. > This would not be a problem in Ikarus (yet) since we locate the source > *before* we locate the cached compiled copy. Uhm .. but then, how can you ship a compiled library without shipping the source?
