[PyKDE] Default function arguments,
KURL::cleanPath() -- a bindings bug?
Frans Englich
frans.englich at telia.com
Tue Mar 8 09:16:47 GMT 2005
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
More information about the PyQt
mailing list