[issue29415] Exposing handle._callback and handle._args in asyncio

Max report at bugs.python.org
Wed Feb 1 16:51:35 EST 2017


New submission from Max:

Is it safe to use the _callback and _args attributes of asyncio.Handle? Is it possible to officially expose them as public API?

My use case: 

    handle = event_loop.call_later(delay, callback)

    # this function can be triggered by some events
    def reschedule(handle):
      event_loop.call_later(new_delay, handle._callback, *handle._args)
      handle.cancel()

----------
components: asyncio
messages: 286709
nosy: gvanrossum, max, yselivanov
priority: normal
severity: normal
status: open
title: Exposing handle._callback and handle._args in asyncio
type: enhancement
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29415>
_______________________________________


More information about the Python-bugs-list mailing list