Hynek Schlawack

Results 70 issues of Hynek Schlawack

Consider the following code: ``` python from __future__ import absolute_import, division, print_function from crochet import no_setup, wait_for, run_in_reactor no_setup() from twisted.trial import unittest as unittest_twisted import unittest as unittest_stdlib class...

bug

Only really useful after http://twistedmatrix.com/trac/ticket/7929 is fixed.

It’s nice but I don’t have the time right now…

enhancement

https://github.com/mahmoud/lithoxyl does a great job in saving boilerplate. structlog should find a way to achieve the same.

enhancement

Micro-optimization is the root of all success.

Let's try to move into the ✨future✨.

While 37d38c4 is pretty cool, when working on it it was very obvious to me, that it should be united with converter. After @Tinche pointed it out too, there’s no...

Feature

I don’t know how far this is aspirational, but https://github.com/python/mypy/issues/3916 gives me some hope?

Cleanup

So data classes have the concept of [init-only variables](https://www.python.org/dev/peps/pep-0557/#init-only-variables): ```python @dataclass class C: i: int j: int = None database: InitVar[DatabaseType] = None def __post_init__(self, database): if self.j is None...

Feature
On Hold

Every now and then I stumble into wanting to have class variables that are part of everything (e.g. repr) except `__init__`. We can do: ```python @attr.s class C: x =...

Feature