Issue2512

classification
Title: Values in built-in modules's __dict__ are “” instead of the actual values
Type: behaviour Severity: normal
Components: Versions: Jython 2.7
Milestone:
process
Status: open Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: jeff.allen, progval, zyasoft
Priority: high Keywords:

Created on 2016-07-30.11:16:04 by progval, last changed 2018-04-17.06:15:44 by jeff.allen.

Messages
msg10885 (view) Author: (progval) Date: 2016-07-30.11:16:04
Hi,

On Jython 2.7.1b3, “builtinmodule.__dict__['foo']” is not equivalent to “builtinmodule.foo”.

For instance:

>>> import math
>>> math.pi
3.141592653589793
>>> math.__dict__['pi']
<reflected field public static org.python.core.PyFloat org.python.modules.math.pi at 0x2>
msg11843 (view) Author: Jeff Allen (jeff.allen) Date: 2018-03-22.08:01:58
Still present in 2.7.2a1. One infers there must be something wrong with our implementation of attribute access at a quite basic level, which is surprising.

Not guaranteeing to fix in 2.7.2, however.
msg11910 (view) Author: Jeff Allen (jeff.allen) Date: 2018-04-17.06:15:44
Duplicates #1193
History
Date User Action Args
2018-04-17 06:15:44jeff.allensetmessages: + msg11910
2018-03-22 08:01:58jeff.allensetpriority: high
resolution: accepted
messages: + msg11843
nosy: + jeff.allen
milestone: Jython 2.7.2 ->
2016-09-06 05:18:57zyasoftsetmilestone: Jython 2.7.2
2016-07-30 15:39:26zyasoftsetnosy: + zyasoft
2016-07-30 11:16:04progvalcreate