Thanks for the advice. I've just finished the changes, setting all attribute names to single underscore (2280 substitutions, thank you sed !).
Best wishes, Eric. Le jeudi 29 mai 2014 19:07:04 UTC+2, William a écrit : > > > Please try to use a single underscore, e.g., self._tensor, instead of > double underscore self.__tensor. The latter is the official Python > way of making things (more) private. It has technical implications > beyond just being a convention, in that it mangles things, e.g., > self.__tensor works, but if T is a tensor, then T.__tensor does *not* > work... > > The general convention we use these days is do NOT bother with the > double underscore attributes, since it's just kind of annoying and > we're consenting adults enough to just honor the convention that a > single underscore means private. There is a lot of very old code in > Sage that uses double underscore that we wrote during the first two > years, but most newer code uses single underscore. > > -- William > > > > > Eric. > > > > -- > > 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+...@googlegroups.com <javascript:>. > > To post to this group, send email to > > sage-...@googlegroups.com<javascript:>. > > > Visit this group at http://groups.google.com/group/sage-devel. > > For more options, visit https://groups.google.com/d/optout. > > > > -- > William Stein > Professor of Mathematics > University of Washington > 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 http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.