Size limit on compiling?
aahz at pythoncraft.com
Thu Feb 26 03:31:00 CET 2004
In article <Ijb%b.75$a6.33911 at newshog.newsread.com>,
Leif K-Brooks <eurleif at ecritters.biz> 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?
Use a real database, or at least pickle.
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"Do not taunt happy fun for loops. Do not change lists you are looping over."
--Remco Gerlich, comp.lang.python
More information about the Python-list