Size limit on compiling?
peter at engcorp.com
Thu Feb 26 15:31:02 CET 2004
Leif K-Brooks wrote:
> I have a Python file of 1.2MB (it's a static database, not code, so it
> really does have to be that big). It doesn't seem to get compiled when
> imported (there's no .pyc file created), so importing it takes a few
> seconds which I would really like to avoid. Is Python not compiling it
> because of the large size? Is it because the whole file is on one really
> long line? How can I fix this?
If it's the main file, it won't get compiled anyway. Only files
that are imported are compiled. In any case, see Aahz' answer for the
More information about the Python-list