On Thursday, June 24, 2021 at 12:48:33 PM UTC-5 Edward K. Ream wrote:

> This is PR #2003 <https://github.com/leo-editor/leo-editor/pull/2003> and 
> issue #2004 <https://github.com/leo-editor/leo-editor/issues/2004>.
>
> Unless I hear compelling arguments against, I plan to "freeze" all the 
> classes in leoNodes.py (Position, VNode, NodeIndices and PosList classes) 
> by defining a __slot__ attribute 
> <https://docs.python.org/3/reference/datamodel.html#slots>for each 
> class.  It is straightforward to do this.  See PR #2003.
>

The new code has now been merged into devel.

In the *extremely* unlikely event that slots ever cause problem, removing 
them from a class is simply a matter of eliminating the class's __slot__ 
statement.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/8120c5c3-fd4a-4812-b363-3f0c2f649eb2n%40googlegroups.com.

Reply via email to