Message11143

Author jamesmudd
Recipients jamesmudd
Date 2017-02-28.20:02:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488312124.46.0.0101188122765.issue2558@psf.upfronthosting.co.za>
In-reply-to
Content
I have a pull request which can enable this https://github.com/jythontools/jython/pull/58

After this change the behaviour is

Jython 2.7.1b3 (, Feb 28 2017, 19:05:08) 
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_121
Type "help", "copyright", "credits" or "license" for more information.
>>> import java.time.LocalDate
>>> date = java.time.LocalDate.of(2015, 'DECEMBER', 3)
>>> date
2015-12-03
>>> date.getMonth().__class__
<type 'java.time.Month'>
>>> 

Where 'DECEMBER' is automatically coerced into java.time.Month.DECEMBER

I would be interested in what people think of this idea?
History
Date User Action Args
2017-02-28 20:02:04jamesmuddsetmessageid: <1488312124.46.0.0101188122765.issue2558@psf.upfronthosting.co.za>
2017-02-28 20:02:04jamesmuddsetrecipients: + jamesmudd
2017-02-28 20:02:04jamesmuddlinkissue2558 messages
2017-02-28 20:02:04jamesmuddcreate