Hi all,
As the
document<http://code.google.com/intl/en/appengine/docs/python/python27/newin27.html#Bytecode_Modification>says,
in Python 2.7, no
longer restricts access to Python bytecode.
But I tried to compile a source code file, it raised an IOError: [Errno 13]
Permission denied:
> import os
> import os.path
> import py_compile
> path = os.path.join(os.getcwd(), 'model.py')
> py_compile.compile(path)
marshal is not working either:
> import os
> import os.path
> import marshal
> code = compile('1+1', '<string>', 'eval')
> file = open(os.path.join(os.getcwd(), 'test.pyc'), 'wb')
> marshal.dump(code, file)
> file.close()
I'm not sure whether jinja2's template caching works fine, it seems it just
opens a file and writes into it.
----------
keakon
My blog(Chinese): www.keakon.net
Blog source code: https://bitbucket.org/keakon/doodle/
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.