Issue1019
Created on 2008-04-02.14:37:17 by JP, last changed 2008-04-02.21:20:18 by pjenvey.
msg3114 (view) |
Author: Jason Pellerin (JP) |
Date: 2008-04-02.14:37:16 |
|
jython trunk (as of 4271 on java 1.6 on ubuntu feisty) behaves
differently from cpython when the __name__ attribute of a new-style
class is set.
cpython:
Python 2.5.1 (r251:54863, Mar 7 2008, 03:19:34)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class F(object):
... pass
...
>>> F
<class '__main__.F'>
>>> F.__name__
'F'
>>> F.__name__ = 'P'
>>> F
<class '__main__.P'>
>>> F.__name__
'P'
jython:
Jython 2.3a0 on java1.6.0
Type "copyright", "credits" or "license" for more information.
>>> class F(object):
... pass
...
>>> F.__name__
'F'
>>> F.__name__ = 'G'
>>> F.__name__
'F'
>>> F
<class '__main__.F'>
|
msg3115 (view) |
Author: Philip Jenvey (pjenvey) |
Date: 2008-04-02.21:20:17 |
|
fixed in r4272, thanks Jason
|
|
Date |
User |
Action |
Args |
2008-04-02 21:20:18 | pjenvey | set | status: open -> closed resolution: fixed messages:
+ msg3115 components:
+ Core |
2008-04-02 19:26:07 | pjenvey | set | assignee: pjenvey nosy:
+ pjenvey |
2008-04-02 14:37:17 | JP | create | |
|