Alwx
Alwx
@vyuldashev please, look at https://github.com/getsentry/sentry/pull/6784
Hello, @butorov Recently, I set up docker-compose with sentry-telegram. At official docker image [page](https://hub.docker.com/_/sentry/) see last section about `sentry:onbuild`. I created the [gist](https://gist.github.com/AlwxSin/91f5e1b3060bae758d849d3f2d445678) with needed files. Maybe add this to...
@orsinium I have one example when map/filter with lambdas is more readable. When you chain your generators. ```python # good objs_iterable = filter(lambda obj: obj.date > now(), data)) objs_iterable =...
And slower on bigger sequences.
Well, let's take a more real-life example, where `items` not a sequence of ints, but a sequence of complex objects, like `dataclass` wrapper e.g.
Let's add some long operation to function ```python def get_users(users): for user in users: if not user: continue user.update_groups_from_db() if 'editor' not in user.groups: continue user.update_permissions_from_db() if 'create_smth' not in...
@sobolevn not sure that we must force users to use it. In most setups default gunicorn worker is enough. Maybe we should just mention it?
The main reason is that we can't determine an effective number of workers. For classic workers, it's defined in docs `(2 x $num_cores) + 1`. But for gevent number of...
https://docs.gunicorn.org/en/stable/design.html#how-many-workers Last two paragraphs.
Ah, I forget to note, that the number of workers we can set programmatically in python file. And use that file as config