Message11143
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? |
|
Date |
User |
Action |
Args |
2017-02-28 20:02:04 | jamesmudd | set | messageid: <1488312124.46.0.0101188122765.issue2558@psf.upfronthosting.co.za> |
2017-02-28 20:02:04 | jamesmudd | set | recipients:
+ jamesmudd |
2017-02-28 20:02:04 | jamesmudd | link | issue2558 messages |
2017-02-28 20:02:04 | jamesmudd | create | |
|