Issue1699

classification
Title: jsr-223 scope object is not dict-like
Type: Severity: normal
Components: Versions: Jython 2.7
Milestone:
process
Status: open Resolution: remind
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, nriley, pjenvey, zyasoft
Priority: normal Keywords:

Created on 2011-01-22.21:17:13 by pjenvey, last changed 2018-03-24.07:43:17 by jeff.allen.

Messages
msg6334 (view) Author: Philip Jenvey (pjenvey) Date: 2011-01-22.21:17:12
The jsr-223 scope object that acts as a globals/locals dict doesn't support all dict methods. This has cropped up a couple different times (#1674 & #1698). More methods have been added but it's still missing more

I'll also note here that its implementation doesn't look thread safe at all. Is that a problem too? (It was adapted from the original jsr223 scripting code which wasn't thread safe either, so maybe this isn't a problem?)
msg6336 (view) Author: Nicholas Riley (nriley) Date: 2011-01-22.22:39:39
Definitely the map interface used by the pdb/warnings stuff needs fixing (sorry for the oversight).

With respect to thread safety, you might just be able to pass the SimpleBindings constructor a CHM.
msg8713 (view) Author: Jim Baker (zyasoft) Date: 2014-06-19.05:38:02
Let's revisit this
msg10602 (view) Author: Jim Baker (zyasoft) Date: 2016-01-07.05:40:40
I recently went over JSR 223 support as part of cleaning up javatest and fixed some low hanging fruit. This support in PyScriptEngineScope is next, but it will have to wait for 2.7.2.
msg11601 (view) Author: Jim Baker (zyasoft) Date: 2017-09-25.03:29:40
Should be fixable by simply using AbstractDictionary
History
Date User Action Args
2018-03-24 07:43:17jeff.allensetmilestone: Jython 2.7.2 ->
2017-09-25 03:29:40zyasoftsetresolution: remind
messages: + msg11601
2016-01-07 05:40:41zyasoftsetversions: + Jython 2.7
messages: + msg10602
milestone: Jython 2.7.2
2014-06-19 05:38:02zyasoftsetnosy: + zyasoft
messages: + msg8713
2013-02-26 17:40:42fwierzbickisetpriority: normal
2013-02-26 17:40:32fwierzbickisetnosy: + fwierzbicki
2011-01-22 22:39:39nrileysetmessages: + msg6336
2011-01-22 21:17:13pjenveycreate