Path: csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.python Subject: Re: Question about math.pi is mutable Date: Sun, 08 Nov 2015 00:08:28 -0800 Organization: A noiseless patient Spider Lines: 8 Message-ID: <87h9kwvrpf.fsf@nightsong.com> References: <87d1vlzy4p.fsf@elektro.pacujo.net> <878u69zxww.fsf@elektro.pacujo.net> <87y4e9y9j6.fsf@elektro.pacujo.net> <87d1vlx7bg.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="1a9f5856d25720e42c135b990c70bebb"; logging-data="7867"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/bW1+ebbppL+0+jNw+JKzk" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:itOh1+SCTQ1h8K472y/xVcSeLW4= sha1:8A3zYNSRTOI9CVmJ7WmAbauAlzg= Xref: csiph.com comp.lang.python:98427 Marko Rauhamaa writes: > Point is, the consequences of "proper" use of const are so annoying even > standard library functions would rather grossly abuse it than tolerate > compiler warnings everywhere. I'm not sure what the C standard says about that example, but C++ is much stricter about those conversions, and g++ does flag an error if you compile that code with it.