Vitaliy Yelnik

Results 7 comments of Vitaliy Yelnik

I use unipath in Jinja2 Bytecode Cache for Django project Python 2.7 ```python from unipath import Path # Absolute filesystem path to the Django project directory: DJANGO_ROOT = Path(__file__).ancestor(2) #...

> I needed factoryboy to generate unique values and found this PR, any chance of making progress here? I'm usign the following solution: ```python import factory class UniqueFaker(factory.Faker): @classmethod def...

Though the localization option is enabled by this string ``` python 'extensions': ['jinja2.ext.i18n'] # get_env function, ``` it is not actually run because of the string ``` python e.install_null_translations() ```...

Yeah, you are right - it works :) Because the ref count of the newly created task is 1. And I think I found the reason. - loop.create_task - [_asyncio_Task___init___impl](https://github.com/python/cpython/blob/3.11/Modules/_asynciomodule.c#L2005)...

> It just seems silly to assign to a var that isn't used. Yeah. Maybe, we can use a `dummy` variable here: ```python _ = loop.create_task(new_coro()) ```

Yes, this looks like the best solution. P.S. I was worried about deleting the task after it's done, but it turns out there is already a solution based on `add_done_callback`...

I can't reproduce this issue with celery 5.1.2 (sun-harmonics)