On Mon, Aug 19, 2013 at 10:03 AM, Antoon Pardon
<antoon.par...@rece.vub.ac.be> wrote:
> This is irrelevant. That some context defines a constant, and that you
> can use a variable with the same name as a constant in python, doesn't
> contradict the statement that python (as a language) doesn't has
> constants. There is nothing in the language that would prevent buggy
> code from changing any of those variables. So from a python point of
> views these are just global variables. Just as the struct_global.y was
> in the original contribution.

And there's nothing preventing a program from using ctypes to
overwrite an object's refcount, thus causing a segfault. So? The issue
was regarding imports, and it's perfectly safe to import a constant,
even if the interpreter doesn't protect you from then being a total
idiot and changing it.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to