Tin Tvrtković

Results 46 issues of Tin Tvrtković

Hi, we're seeing this in our services. I believe the problem can be summarized as follows. Poll iterations are done every 500 ms. This is a long time, relatively speaking....

Sometimes it's useful to be able to check if a property has been cached already. Currently I'm using something like: ``` @cached_property def cachable(self): pass def a_function(self): if 'cachable' in...

enhancement
help wanted

This is more of a discussion than an issue to be fixed. I have recently refactored how our services log. Other folks might choose to do so too (and we...

stdlib

I'm trying to debug an issue and can't really follow the code in here and over at libuv. I seem to be getting errors when printing out large amounts of...

Hello! First, the motivation. We're running a fair number of asyncio services in production, and I'm trying to figure out how to expose some sort of load metrics. These metrics...

enhancement

Hello. Due to... circumstances... (mostly https://github.com/python/mypy/issues/5144) looks like if we want proper `fields()` support in Mypy, we'll have to implement it ourselves in the attrs plugin. I volunteer to do...

Thinking

I'm already using attrs to implement several internal ORMs, and attrs (with cattrs) is very good for this. However I find myself missing a feature. Consider the following code: ```...

Typing

Hello, let me provide some context first. [PEP 654](https://www.python.org/dev/peps/pep-0654/) introduces a new type of exception - an ExceptionGroup. (Also a BaseExceptionGroup, which is like the BaseException version of it). An...

enhancement
accepted

Currently I don't see a way of getting the key and value types from a map type. Ideally, the `Map.__class_getitem__` should return an object with `__origin__` set to `Map` and...

Hi. I'm switching our project from using pregenerated serializers to PrepareType. This is my enum: ``` public enum StatusType : int { OK = 0, Exception = 1, ... }...

bug