Message60442
Logged In: YES
user_id=1038590
Although, now that I look at the relevant py-dev threads,
I'm not entirely sure what needs to be standardised.
Consider the following:
<type 'array.array'>
<type 'dict'>
__main__.foo
<__main__.foo instance at 0xf6f8baac>
<unbound method foo.x>
<bound method foo.x of <__main__.foo instance at 0xf6f8bacc>>
<class '__main__.bar'>
<__main__.bar object at 0xf6f8baec>
<unbound method bar.x>
<bound method bar.x of <__main__.bar object at 0xf6f8bb0c>>
<function func at 0xf6f87294>
Which is the result of:
from array import array
class foo:
def x(): pass
class bar(object):
def x(): pass
def func(): pass
for obj in array, dict, foo, foo(), foo.x, foo().x, bar,
bar(), bar.x, bar().x, func:
print obj
|
|
Date |
User |
Action |
Args |
2008-01-20 09:56:38 | admin | link | issue868845 messages |
2008-01-20 09:56:38 | admin | create | |
|