On Jul 28, 1:28 pm, Stef Mientki <[EMAIL PROTECTED]> wrote:
> hello,
>
> I've a perfect working procedure,
> at least as far I've tested it it works perfect.
>
> But I was just experimenting with inspect,
> and saw that the default argument was not parsed correctly.
>
> So I wonder if this is allowed:
>
> def Get_Relative_Path ( target, base=os.curdir ) :
>   ...
>
> As inspect returns the following:
>
> (['target', 'base'], None, None, ('.',))
>
> thanks,
> Stef Mientki

os.curdir is '.' on many platforms.  What did you expect inspect to
show?

|>>> import os
|>>> os.curdir
'.'
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to