#52 lost default parameters

closed-duplicate
nobody
5
2005-03-24
2005-03-22
Anonymous
No

In second level of class inheritance from psyco.compact
methods can not be called without parameters, declared
in original class as default.
example:
---
from psyco.classes import *

class a:
......
def m(self,a,b=1)
----
in other module

class b(a):

def c(self):
self.m('aaa')
----
will give TypeError

Discussion

  • Armin Rigo
    Armin Rigo
    2005-03-24

    • status: open --> closed-duplicate
     
  • Armin Rigo
    Armin Rigo
    2005-03-24

    Logged In: YES
    user_id=4771

    Already fixed in the CVS repository. I guess I should make a release...