On Wed, Mar 15, 2017 at 10:12 AM, Jeroen Demeyer <jdeme...@cage.ugent.be> wrote:
> On 2017-03-14 21:44, William Stein wrote:
>>
>> I'm in favor of (1) and against (4).  I would have named it __pari__
>> in the first place if I thought that was better...
>>
>> I'm general against double underscore methods entirely, except the
>> ones pre-defined by python.
>
>
> Would you care to explain your reasons?

Name mangling to hide data is an ugly hack.  Just use a single
underscore for private data, and don't call single underscore methods
from outside the class....   Any time I've written code using double
underscore non-standard methods, I've regretted it.  It just feels
wrong.

 -- William

-- 
William (http://wstein.org)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to