[issue32533] SSLSocket read/write thread-unsafety

2018-04-29 Thread Alfred Krohmer
Alfred Krohmer <dev...@devkid.net> added the comment: Is there anything on the roadmap to fix this? This is a pretty severe bug given that this breaks multi-threaded OpenSSL while the documentation says it's thread-safe. -- nosy: +devkid ___

[issue33091] ssl.SSLError: Invalid error code (_ssl.c:2217)

2018-03-16 Thread Alfred Krohmer
New submission from Alfred Krohmer <dev...@devkid.net>: OpenSSL version: 1.1.0.g-1 OS: Arch Linux I'm creating an SSL socket like this: s = socket.create_connection((self.host, 443), 60) c = ssl.create_default_context() c.set_alpn_protocols(['spdy/2']) self.ss = c.wrap_so

[issue23276] hackcheck is broken in association with __setattr__

2015-01-20 Thread Alfred Krohmer
Alfred Krohmer added the comment: Can you elaborate what QtClass and QtMeta is in your case? My original example was reduced to a minimal case and seems to work with your suggestions. The complete example involving SQLalchemy is here: http://stackoverflow.com/questions/28032928/sqlalchemy

[issue23276] hackcheck is broken in association with __setattr__

2015-01-20 Thread Alfred Krohmer
Alfred Krohmer added the comment: I'd expect a TypeError because of the extra cls argument. It's already a bound method. Sorry, that was a typo. Consider making a playlist class that *has* a SQL table, not one that *is* a SQL table, i.e. use composition instead of inheritance

[issue23276] hackcheck is broken in association with __setattr__

2015-01-19 Thread Alfred Krohmer
New submission from Alfred Krohmer: The following code: import traceback import sys from PyQt5.QtCore import Qt class MetaA(type): pass class A(metaclass=MetaA): pass class MetaB(type): pass class B(metaclass=MetaB): pass for ClassB in B, Qt: print(Trying class %s