[Python-ideas] .pyu nicode syntax symbols (was Re: Empty set, Empty dict)

Chris Angelico rosuav at gmail.com
Tue Jul 1 00:05:19 CEST 2014


On Tue, Jul 1, 2014 at 3:18 AM,  <random832 at fastmail.us> wrote:
> On Sat, Jun 28, 2014, at 01:28, Chris Angelico wrote:
>> empty_set_literal =
>> type(lambda:0)(type((lambda:0).__code__)(0,0,0,3,67,b't\x00\x00d\x01\x00h\x00\x00\x83\x02\x00\x01d\x00\x00S',(None,"I'm
>
> If you're embedding the entire compiler (in fact, a modified one) in
> your tool, why not just output a .pyc?

I'm not, I'm calling on the normal compiler. Also, I'm not familiar
with the pyc format, nor with any of the potential pit-falls of that
approach. But if someone wants to make an "alternative front end that
makes a .pyc file" kind of thing, they're most welcome to.

ChrisA


More information about the Python-ideas mailing list