Lonami

Results 705 comments of Lonami

The idea would be to have a new `async def` inside the `updates.py` file which would both remove all handlers and await all tasks inside `updates_queue`, while also taking care...

You want to only remove 1 handler and wait for tasks running that 1 handler to finish. That's not as trivial, because a single task can be triggering many handlers...

> Do you think this would do the trick? Not quite, `remove_event_handler` expects a callback to remove. We would probably just clear the field holding all handlers internally. `asyncio.wait` works...

> Do I need to clear `event_builders`? In essence, yes. > I can't just check it with an `if` statement, correct? You can, after adjusting the condition to suit your...

(Split off https://github.com/LonamiWebs/Telethon/issues/1169#issuecomment-917412113). I'm still not sold on this idea. Also, we would need a better name, since `copy` can easily be used as an identifier in the `api.tl`. I'm...

If anything, custom methods would always be end with underscore, so that future versions do not need to be a breaking change.

I'm looking at ways to make objects immutable, and it seems there's no "clean" way to do so? [Ways to make a class immutable in Python](https://stackoverflow.com/q/4996815/) (and linked [How to...

* .3 and .4 have different permissions because I made those hot fixes in a rush from my phone, but this reminds me this is exactly why I should not...

WRT to the `.pyc` files, probably because I test changes with the `telethon/` directory itself so they're generated. Maybe my custom command should remove those.

I think the manifest was added to include the generated code which is otherwise `.gitignore`-d.