Question about math.pi is mutable
Paul Rubin
no.email at nospam.invalid
Sun Nov 8 03:08:28 EST 2015
Marko Rauhamaa <marko at pacujo.net> 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.
More information about the Python-list
mailing list