Issue1058
Created on 2008年06月15日.03:36:56 by pjenvey, last changed 2008年11月23日.06:32:09 by pjenvey.
| Messages | |||
|---|---|---|---|
| msg3288 (view) | Author: Philip Jenvey (pjenvey) | Date: 2008年06月15日.03:36:56 | |
object.__set/delattr__ allow modification of built in types, this is known as the Carlo Verre hack: Jython 2.3a0+ (trunk:4630:4631M, Jun 14 2008, 20:07:38) [Java HotSpot(TM) Client VM (Apple Inc.)] on java1.5.0_13 Type "help", "copyright", "credits" or "license" for more information. >>> object.__setattr__(str, 'lower', str.upper) >>> 'dammit Carlo!'.lower() 'DAMMIT CARLO!' See CPython's typeobject.c:hackfix for how they prevent this This prevents test_descr.carloverre from passing |
|||
| msg3541 (view) | Author: Jim Baker (zyasoft) | Date: 2008年09月13日.22:21:29 | |
__setattr__/__delattr__ should test for a tag interface on derived types such as a hypothetical PyDerived |
|||
| msg3563 (view) | Author: Jim Baker (zyasoft) | Date: 2008年09月14日.00:40:14 | |
As lsoto pointed out on IRC, we already have a builtin flag on the type. |
|||
| msg3833 (view) | Author: Philip Jenvey (pjenvey) | Date: 2008年11月23日.06:32:08 | |
fixed in r5611 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年11月23日 06:32:09 | pjenvey | set | status: open -> closed resolution: fixed messages: + msg3833 |
| 2008年11月23日 05:13:24 | pjenvey | set | assignee: pjenvey |
| 2008年09月14日 00:40:14 | zyasoft | set | messages: + msg3563 |
| 2008年09月13日 22:21:29 | zyasoft | set | priority: urgent -> normal nosy: + zyasoft messages: + msg3541 |
| 2008年06月15日 03:36:56 | pjenvey | create | |
Supported by Python Software Foundation,
Powered by Roundup