Message199130
| Author |
shishkander |
| Recipients |
grahamd, ncoghlan, shishkander, tim.peters |
| Date |
2013年10月07日.06:10:30 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1381126230.84.0.520463285957.issue19070@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This bug happens not just with operators, but with any call self.call_something()! For example, running this:
from __future__ import print_function
import weakref
class Test(object):
def method(self):
return type(self)
def test(obj):
print(type(obj), "=>", obj.method())
o = Test()
test(o)
test(weakref.proxy(o))
(also attached for convenience as t.py)
produces in both python2.7 and python3.2:
$ python t.py
<class '__main__.Test'> => <class '__main__.Test'>
<type 'weakproxy'> => <class '__main__.Test'> |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年10月07日 06:10:30 | shishkander | set | recipients:
+ shishkander, tim.peters, ncoghlan, grahamd |
| 2013年10月07日 06:10:30 | shishkander | set | messageid: <1381126230.84.0.520463285957.issue19070@psf.upfronthosting.co.za> |
| 2013年10月07日 06:10:30 | shishkander | link | issue19070 messages |
| 2013年10月07日 06:10:30 | shishkander | create |
|