Message10175

Author zyasoft
Recipients kaneg, zyasoft
Date 2015-08-10.23:16:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439248590.94.0.987640693488.issue2381@psf.upfronthosting.co.za>
In-reply-to
Content
This was a backwards breaking change to make objects implementing java.util.Map behave as if they are dict-like, and therefore satisfy the contract of https://docs.python.org/2/library/collections.html#collections.MutableMapping:

$ jython27
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_45
Type "help", "copyright", "credits" or "license" for more information.
>>> import java
>>> m = java.util.HashMap()
>>> from collections import MutableMapping
>>> isinstance(m, MutableMapping)
True

See https://hg.python.org/jython/rev/864bbec6ddb5
History
Date User Action Args
2015-08-10 23:16:30zyasoftsetmessageid: <1439248590.94.0.987640693488.issue2381@psf.upfronthosting.co.za>
2015-08-10 23:16:30zyasoftsetrecipients: + zyasoft, kaneg
2015-08-10 23:16:30zyasoftlinkissue2381 messages
2015-08-10 23:16:29zyasoftcreate