What kind of contract does your library have with its users about that fd?

On Friday, February 21, 2014, Nikolaus Rath <[email protected]> wrote:

> Hello,
>
> I am confused by the fact that the BaseEventLoop.remove_{reader,writer}
> methods only take an *fd* argument. If I'm writing a library, and the fd
> originates outside of my control, how can I prevent to accidentally
> remove the wrong callback, and prevent my callback from being removed by
> other code?
>
> Best,
> Nikolaus
>
> --
> Encrypted emails preferred.
> PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C
>
>              »Time flies like an arrow, fruit flies like a Banana.«
>


-- 
--Guido van Rossum (on iPad)

Reply via email to