Not possible to hide local variables
Chris Angelico
rosuav at gmail.com
Tue Apr 28 04:44:45 EDT 2015
On Tue, Apr 28, 2015 at 6:37 PM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> The convention is, if the caller messes with your private attributes or
> variables, and their code breaks, they have nobody to blame but themselves,
> and we are allowed to laugh at them. We're consenting adults here.
>
> (The only exception is C extension objects and built-ins, where messing with
> private data could cause a segfault.)
Hey. If you cause a segfault, we're still allowed to laugh at you.
ChrisA
More information about the Python-list
mailing list