Issue222832
Created on 2000-11-18.19:22:10 by bckfnn, last changed 2000-11-18.22:45:45 by bckfnn.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2000-11-18 19:22:10 | bckfnn | create | |
Created on 2000-11-18.19:22:10 by bckfnn, last changed 2000-11-18.22:45:45 by bckfnn.
| Messages | |||
|---|---|---|---|
| msg109 (view) | Author: Finn Bock (bckfnn) | Date: 2000-11-18.19:22:10 | |
A minor difference between CPython and JPython. When imported, sys.__dict__ is None in JPython. [d:\]jpython JPython 1.1beta4 on java1.2.1 (JIT: symcjit) Copyright (C) 1997-1999 Corporation for National Research Initiatives >>> import sys >>> sys.__dict__['platform'] Traceback (innermost last): File "<console>", line 1, in ? AttributeError: __getitem__ >>> print sys.__dict__ None >>> [d:\]python Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import sys >>> sys.__dict__['platform'] 'win32' >>> |
|||
| msg110 (view) | Author: Finn Bock (bckfnn) | Date: 2000-11-18.22:45:45 | |
Fixed by copying the class attribute to the __dict__. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2000-11-18 19:22:10 | bckfnn | create | |
Supported by Python Software Foundation,
Powered by Roundup