Message269765
| Author | fourplusone |
|---|---|
| Recipients | Florian Hassanen, Marcus.Smith, Oleg N, dstufft, fourplusone, ncoghlan, paul.moore |
| Date | 2016-07-03.12:28:32 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1467548912.5.0.107062231546.issue24960@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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 |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2016-07-03 12:28:32 | fourplusone | set | recipients: + fourplusone, paul.moore, ncoghlan, dstufft, Marcus.Smith, Oleg N, Florian Hassanen |
| 2016-07-03 12:28:32 | fourplusone | set | messageid: <1467548912.5.0.107062231546.issue24960@psf.upfronthosting.co.za> |
| 2016-07-03 12:28:32 | fourplusone | link | issue24960 messages |
| 2016-07-03 12:28:32 | fourplusone | create | |