Seite 2 von 2

Verfasst: Sonntag 9. März 2008, 12:16
von BlackJack
Wobei die ungebundende Methode hier ein eher unwichtiges Detail ist. Die wird wieder verschwinden:

Code: Alles auswählen

bj@s8n:~$ python3.0
Python 3.0a3 (r30a3:61158, Mar  9 2008, 12:11:09)
[GCC 4.2.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class A:
...   def a(): pass
...
>>> A.a
<function a at 0x81fa0ac>
>>>
Könnte sein, dass das in 2.6 auch schon so sein wird.