Hello,

I've stumbled over a behavior related to default function arguments which 
appears to be a bug, from what I can tell.  See this snippet:

>>> from kdecore import KURL
>>> u = KURL( "http://www.example.org/test/../"; )
>>> u.cleanPath()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: insufficient number of arguments to KURL.cleanPath()
>>>
>>> u.cleanPath(True)
>>>

Apparently, cleanPath /requires/ a boolean argument, but the C++ function 
definition says:

  void cleanPath(bool cleanDirSeparator = true);

What have I missed?


Thanks in advance,

                Frans


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to