fourplusone added the comment:

The problem is indeed that lib2to3 fails to load the Grammar.txt file if it is 
located inside a .zip archive.

I think one way to fix it is using of the "get_data" function of the loader  
https://docs.python.org/3/library/importlib.html#importlib.abc.ResourceLoader.get_data

However, this would make caching the Grammar more difficult, as one cannot 
write back the pickled dict to a zip file

Alternatively one could generate an importable *.pyc file from the grammar 
during the build process

----------
nosy: +fourplusone

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24960>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to