making your own DirEntry.

Antoon Pardon antoon.pardon at vub.be
Sat Dec 23 07:21:47 EST 2023



Op 23/12/2023 om 12:34 schreef Barry Scott:
>
>
>> On 23 Dec 2023, at 09:48, Antoon Pardon via Python-list 
>> <python-list at python.org> wrote:
>>
>> Because I have functions with DirEntry parameters.
>
> I would duck-type a class I control to be my DirEnrry in this situation.
> Would also help you when debugging as you can tell injected DirEntry 
> from "real" DirEntry.
>
Yes that seems to be, the way to go.

-- 
Antoon Pardon


More information about the Python-list mailing list