Message7510
Jython 2.5.3 behaves differently than CPython (2.5, 2.6, 2.7) with following code:
----
class ReadonlyDescriptor(object):
def __get__(self, instance, owner):
return 123
class A(object):
__slots__ = []
attr = ReadonlyDescriptor()
A().attr = 2 # Jython 2.5.3: TypeError: readonly attribute in Jython 2.5.3
# CPython 2.5: AttributeError: 'A' object attribute 'attr' is read-only |
|
Date |
User |
Action |
Args |
2012-11-07 04:14:43 | mete0r | set | recipients:
+ mete0r |
2012-11-07 04:14:43 | mete0r | set | messageid: <1352261683.39.0.775045967576.issue1985@psf.upfronthosting.co.za> |
2012-11-07 04:14:43 | mete0r | link | issue1985 messages |
2012-11-07 04:14:42 | mete0r | create | |
|