Question about math.pi is mutable

Marko Rauhamaa marko at pacujo.net
Sat Nov 7 12:46:23 EST 2015


Bartc <bc at freeuk.com>:

> (Yes, 'const' in C is a waste of time, and half the people using it
> don't appear to know what it means.

It cannot mean anything meaningful; it's completely useless.

For example, what could one think of standard library functions whose
prototypes are:

   char *strstr(const char *haystack, const char *needle);

   int execve(const char *filename, char *const argv[],
              char *const envp[]);

Ok, enough of C.


Marko



More information about the Python-list mailing list