Tin Tvrtković

Results 444 comments of Tin Tvrtković

You can make the hash consistent by using https://docs.python.org/3.3/using/cmdline.html#envvar-PYTHONHASHSEED, but I wouldn't recommend it (why do you want it to be consistent?). Also my gut feeling is using md5() is...

Somehow this doesn't sit right with me for reasons difficult to articulate before my brain processes this a little more. A class variable wouldn't be part of `__init__`, `__hash__` or...

Ah, I see. This technique of using a class variable as a default fallback for an unset instance variable is interesting; I have to admit I only learned of it...

> For example, if attr.s sets x to 42 on the class, then the Attribute object is gone, right? This is already deprecated behavior. `C.x` will either be a slot...

Well Hynek kinda explained it in https://github.com/python-attrs/attrs/issues/220#issuecomment-317234547. This is just normal Python, feel free to copy/paste the code, play around with it and discover exactly how it works ;)

Both of these PEPs (ExceptionGroups and `__note__`) have now been accepted! 🎉

I'm the author of the mentioned Hypercorn bug report. Googling around it seems there are basically two ways of dropping a TCP connection: * closing it on one end (putting...

I don't think so, no one has asked for it yet. Wouldn't be too difficult to add. Can you tell me more about your use case?

Yeah, I suppose adding a `.copy()` method to the Converter class would be OK. If you put together a PR for this, I'll be happy to give feedback. Should be...

Can you register an unstructure hook for sets and just unstructure the attribute as a list?