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

Guido van Rossum guido at python.org
Tue Jul 1 04:18:44 CEST 2014


Like bytecode, the compiler's workings are not part of the language spec,
and are likely to change incompatibly between versions and not work for
anything besides CPython. I don't really want to go there (cool though it
sounds for wannabe compiler hackers).


On Mon, Jun 30, 2014 at 7:15 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:

>
> On 30 Jun 2014 16:51, "Andrew Barnert" <abarnert at yahoo.com.dmarc.invalid>
> wrote:
> >
> > First, two quick side notes:
> >
> > It might be nice if the compiler were as easy to hook as the
> importer. Alternatively, it might be nice if there were a way to do "inline
> bytecode assembly" in CPython, similar to the way you do inline assembly in
> many C compilers, so the answer to random's question is just "asm
> [('BUILD_SET', 0)]" or something similar. Either of those would make this
> problem trivial.
>
> Eugene Toder & Dave Malcolm have some interesting patches on the tracker
> to help enhance the compiler (in particular, Dave's allowed compiler
> plugins to be written in Python). Neither set of patches made it to being
> merge ready, though, and they'll be rather stale at this point.
>
> Cheers,
> Nick.
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>



-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140630/01c0ff4b/attachment.html>


More information about the Python-ideas mailing list