Package: python2.4
Version: 2.4.1-2
Severity: normal
hello, why it do not work:
class xx(object):
def __getattribute__(self,name):
tab = object.__getattribute__(self,'tab')
return tab[name]
def f(self,a):
self.a=a
x=xx()
xx.tab={'f':xx.f}
x.f(3)
unbound method f() must be called with xx instance as first argument
(got int instance instead)
sylvain
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages python2.4 depends on:
ii libbz2-1.0 1.0.2-7 high-quality block-sorting file co
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libdb4.2 4.2.52-18 Berkeley v4.2 Database Libraries [
ii libncurses5 5.4-9 Shared libraries for terminal hand
ii libreadline4 4.3-15 GNU readline and history libraries
ii libssl0.9.7 0.9.7e-3 SSL shared libraries
ii zlib1g 1:1.2.2-4.sarge.2 compression library - runtime
python2.4 recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]