Question about math.pi is mutable
Marko Rauhamaa
marko at pacujo.net
Wed Nov 11 03:30:41 EST 2015
Steven D'Aprano <steve+comp.lang.python at pearwood.info>:
> Since compile, eval and exec are Python built-ins, if it doesn't
> include a byte-code compiler, it isn't Python. It's just a subset of
> Python.
compile() can be implemented trivially, or in any other manner. It
simply needs to return a "code object." I suspect even a string might
work as a code object.
Marko
More information about the Python-list
mailing list