python / asyncio

asyncio historical repository
https://docs.python.org/3/library/asyncio.html
1.04k stars 177 forks source link

How to get a coroutine id like getcurrent in greenlet #403

Closed 631068264 closed 8 years ago

631068264 commented 8 years ago

How to get a coroutine id like getcurrent in greenlet ?

Martiusweb commented 8 years ago

Hi,

This is the bug tracker, you should ask your questions on irc (#asyncio on freenode), on the user's mailing list (https://groups.google.com/forum/#!forum/python-tulip) or on a dedicated platform like stackoverflow.

Asyncio has no concept of task/coroutine id, but you can get the current task object with asyncio.Task.current_task().

gvanrossum commented 8 years ago

Who is Martin Richard and why is he being rude in our tracker?

Martiusweb commented 8 years ago

Hi Guido,

I didn't want to be rude, and I apologize if the tone of my message or my behavior was incorrect.

Victor Stinner gave me rights on the asyncio repo some time ago (before the migration from google code), I thought I could help by doing some basic bug triage, since I don't contribute much code. As it doesn't sound ok, I won't do that again.

gvanrossum commented 8 years ago

(I took this offline, I expect it'll work out fine.)