Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: Question about math.pi is mutable Date: Wed, 11 Nov 2015 10:30:41 +0200 Organization: A noiseless patient Spider Lines: 12 Message-ID: <87wptpey4u.fsf@elektro.pacujo.net> References: <8537wghwjb.fsf@benfinney.id.au> <85y4e8ggrj.fsf@benfinney.id.au> <85twowgfm6.fsf@benfinney.id.au> <564081e7$0$1592$c3e8da3$5496439d@news.astraweb.com> <56415873$0$1614$c3e8da3$5496439d@news.astraweb.com> <5641d63a$0$1603$c3e8da3$5496439d@news.astraweb.com> <5642f079$0$1527$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="b7cb1518d23ec19d482dcc9c31d30fdd"; logging-data="21056"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//IwrAugfZh66j6AfPq+ht" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:7/mPgShU7Y3zgF1wLkv7xnGbemA= sha1:M313aOkxGvi6sHuYSQwfvDDMDhk= Xref: csiph.com comp.lang.python:98633 Steven D'Aprano : > 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