On Tue, Aug 17, 2010 at 3:34 PM, Jim Baker <jbaker@zyasoft.com> wrote:
I did the refactoring for PyBoolean, PyFloat, and PyLong and committed it in r7097. (NetBeans has no problem with inconsistent encapsulation of fields.) We probably want to do this for some other types too, such as collection types, since it seems like this will support a quite useful usage pattern.

We still need some unit tests that demonstrate that usage, otherwise our test suite definitely covers such a standard refactoring. 

I submitted a patch that fixes a couple of lingering unencapsulated accesses to "value ", and adds a good start for unit tests of the three numeric classes in question.

    http://bugs.jython.org/issue1645
    http://bugs.jython.org/file865/fix_and_test_numeric_accessors.diff

Let me know if it's in the wrong place or otherwise unuseful.
--
Jonathan Feinberg  jdf@pobox.com  http://MrFeinberg.com/