I am trying to use attrs in a class that inherits from Thread but I
have not found a way to call super():
... class T(Thread, object):
... def __attr_post_init__(self):
... super(T, self).__init__()
>>> t = T()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/threading.py", line 737, in start
raise RuntimeError("thread.__init__() not called")
RuntimeError: thread.__init__() not called
I even tried to call that in __attr_post_init__(), but maybe super()
should be called in a pre-init method?
Yes, without this fix it is broken on python 2 also.
On Wed, Jun 14, 2017 at 2:04 AM, Pierre Tardy <tardyp(a)gmail.com> wrote:
> Oh. they are broken for python2 as well?
> That's would be pretty bad.
> On Wed, Jun 14, 2017 at 10:36 AM Craig Rodrigues <rodrigc(a)crodrigues.org>
>> Can you do a follow-on release to 17.5.0 which incorporates
>> Without that fix, e-mail notifications from buildbot are broken in
>> buildbot's master branch.
>> With that fix, e-mail notifications from buildbot now work on Python 2
>> and Python 3.
Can you do a follow-on release to 17.5.0 which incorporates
Without that fix, e-mail notifications from buildbot are broken in
buildbot's master branch.
With that fix, e-mail notifications from buildbot now work on Python 2 and
On behalf of Twisted Matrix Laboratories, I am honoured to announce the release of Twisted 17.5!
The highlights of this release are:
- twisted.python.url has been spun out into the new 'hyperlink' package; importing twisted.python.url is now a compatibility alias
- Initial support for OpenSSL 1.1.0.
- Fixes around the reactor DNS resolver changes in 17.1, solving all known regressions
- Deferred.asFuture and Deferred.fromFuture, to allow you to map asyncio Futures to Twisted Deferreds and vice versa, for use the with Python 3+ asyncioreactor in Twisted
- Support for TLS 1.3 ciphersuites, in advance of a released OpenSSL to enable the protocol
- Further Python 3 support in twisted.web, initial support in twisted.mail.smtp.
For more information, check the NEWS file (link provided below).
You can find the downloads at <https://pypi.python.org/pypi/Twisted <https://pypi.python.org/pypi/Twisted>> (or alternatively <http://twistedmatrix.com/trac/wiki/Downloads <http://twistedmatrix.com/trac/wiki/Downloads>>). The NEWS file is also available at <https://github.com/twisted/twisted/blob/twisted-17.5.0/NEWS.rst <https://github.com/twisted/twisted/blob/twisted-17.5.0/NEWS.rst>>.
Many thanks to everyone who had a part in this release - the supporters of the Twisted Software Foundation, the developers who contributed code as well as documentation, and all the people building great things with Twisted!
Amber Brown (HawkOwl)
I feel reasonably confident that Twisted is on the cusp of a big
renaissance. It represents a lot of what I want communications syntax to
feel like, and the metaphors I think are reasonble for representing it, in
the future of Python.
I consider myself now somewhere between a user and a power-user, but I have
repeatedly failed to find a road to become a successful, consistent
I count several of you (Glyph, Hawkowl, Itamar, Habnabit, among others) as
among friends and formative influences.
How can I help you with Twisted? How can you help me move over the cusp
into active, useful contribution?
Justin Myles Holmes
I'm pleased to announce a new release of txkube, a Twisted-based
library for interacting with Kubernetes using the HTTP API. The big
news for this release is compatibility with Kubernetes 1.6 and an
easier path to compatibility with future Kubernetes releases. This
release also improves txkube's ability to authenticate against
different Kubernetes configurations.
Here is an example of txkube usage, taken from the README:
from __future__ import print_function
from twisted.internet.task import react
from txkube import network_kubernetes_from_context
k8s = network_kubernetes_from_context(reactor, u"minikube")
d = k8s.versioned_client()
lambda client: client.list(client.model.v1.Namespace)
You can download txkube from PyPI <https://pypi.python.org/pypi>.
You can contribute to its development on GitHub
Thanks to Least Authority Enterprises <https://leastauthority.com/>
for sponsoring this development.