#51 lost default parameters

closed-duplicate
nobody
5
2005-03-24
2005-03-21
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 CVS repository. Should be turned into a release...

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks