NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI
PyPI, #994 most downloaded on PyPI
An asynchronous networking framework written in Python
Latest stable
26.10.0
Last release 23 days ago
30 Oct 2026
Release timing varies
gaps range from 8 days to 11 months
Most releases are documented
notes for 42 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
21 years old
114 releases · first in 2005
Drag across the ruler to compare, or tap a release to open it.
CVE-2026-83813 (GHSA-jj36-9pvh-vj5r)
No changes since 26.10.0rc2. Since 26.10.0rc1, this release added the fix for #12885.
This is the last release with support for Python 3.10.
This include fixes for:
twisted.internet.defer.Deferred.__iter__, used when awaiting a Deferred, is now about 2-3% faster. (#12727)twistd now exits with a non-zero status when given an unknown subcommand. (#12656)twisted.internet.error.PotentialZombieWarning, deprecated since Twisted 10.0, has been removed. (#12744)twisted.internet.interfaces.IProcessProtocol are now required to provide a processExited method. Omitting this method was deprecated in Twisted 8.2. (#12824)Features
- twisted.conch.ssh.transport.SSHServerTransport now supports the hybrid
post-quantum key exchange algorithm mlkem768x25519-sha256. (#12520)
Bugfixes
Features
- twisted.web.http.Request.write now performs chunked writes ~12% faster (#12729)
Bugfixes
Deprecations and Removals
- `_makeGetterFactory` method in `twisted.web.client` has been removed. We would not normally remark upon a private API's removal, but we are aware of some 3rd party usage. Please remember that you should not depend on private names within Twisted as they may be removed without notice! (#12721)
Misc
~~~~
- #12815
Mail
----
Bugfixes
~~~~~~~~
- twisted.mail.imap4.IMAP4Server now rejects a SEARCH command containing a literal with a negative octet count, so an authenticated client can no longer freeze the server with a crafted command. (#12763)
- twisted.mail.imap4 no longer allows clients to specify arbitrary regexes. (#12787)
Words
-----
Bugfixes
~~~~~~~~
- The domish XML element streams in twisted.words.xish (used to parse XMPP) now limit the byte size and element count of a single stanza, so a peer can no longer exhaust server memory by sending an unbounded stanza. (#12707)
- twisted.words.protocols.irc.IRC.dataReceived now limits the length of a single line, so a peer can no longer exhaust server memory by sending data without a line delimiter. (#12770)
Names
-----
Bugfixes
~~~~~~~~
- `twisted.names.dns.DNSDatagramProtocol.query` now discards query responses that
come from hosts other than the one the query was issued to, preventing other
hosts from injecting invalid DNS responses. (#12696)
Deprecations and Removals
twisted.names.dns.Message no longer has the class attributes queries, answers, add, or ns. (#12667)twisted.names.client.ThreadedResolver, deprecated since Twisted 9.0, has been removed. (#12843)Misc
- #12701
Trial
-----
Deprecations and Removals
-------------------------
- twisted.trial.runner.samefile is deprecated and replaced by os.path.samefile. (#12671)
Your coding agent can read these notes before it upgrades. Set up the MCP server →
CVE-2026-83813 (GHSA-jj36-9pvh-vj5r),
Since 26.10.0rc1, this release added the fix for #12885.
This is the last release with support for Python 3.10.
This include fixes for:
twisted.internet.defer.Deferred.__iter__, used when awaiting a Deferred, is now about 2-3% faster. (#12727)twistd now exits with a non-zero status when given an unknown subcommand. (#12656)twisted.internet.error.PotentialZombieWarning, deprecated since Twisted 10.0, has been removed. (#12744)twisted.internet.interfaces.IProcessProtocol are now required to provide a processExited method. Omitting this method was deprecated in Twisted 8.2. (#12824)Features
- twisted.conch.ssh.transport.SSHServerTransport now supports the hybrid
post-quantum key exchange algorithm mlkem768x25519-sha256. (#12520)
Bugfixes
Features
- twisted.web.http.Request.write now performs chunked writes ~12% faster (#12729)
Bugfixes
Deprecations and Removals
- `_makeGetterFactory` method in `twisted.web.client` has been removed. We would not normally remark upon a private API's removal, but we are aware of some 3rd party usage. Please remember that you should not depend on private names within Twisted as they may be removed without notice! (#12721)
Misc
~~~~
- #12815
Mail
----
Bugfixes
~~~~~~~~
- twisted.mail.imap4.IMAP4Server now rejects a SEARCH command containing a literal with a negative octet count, so an authenticated client can no longer freeze the server with a crafted command. (#12763)
- twisted.mail.imap4 no longer allows clients to specify arbitrary regexes. (#12787)
Words
-----
Bugfixes
~~~~~~~~
- The domish XML element streams in twisted.words.xish (used to parse XMPP) now limit the byte size and element count of a single stanza, so a peer can no longer exhaust server memory by sending an unbounded stanza. (#12707)
- twisted.words.protocols.irc.IRC.dataReceived now limits the length of a single line, so a peer can no longer exhaust server memory by sending data without a line delimiter. (#12770)
Names
-----
Bugfixes
~~~~~~~~
- `twisted.names.dns.DNSDatagramProtocol.query` now discards query responses that
come from hosts other than the one the query was issued to, preventing other
hosts from injecting invalid DNS responses. (#12696)
Deprecations and Removals
twisted.names.dns.Message no longer has the class attributes queries, answers, add, or ns. (#12667)twisted.names.client.ThreadedResolver, deprecated since Twisted 9.0, has been removed. (#12843)Misc
- #12701
Trial
-----
Deprecations and Removals
-------------------------
- twisted.trial.runner.samefile is deprecated and replaced by os.path.samefile. (#12671)
CVE-2026-83813 ( GHSA-jj36-9pvh-vj5r ),
This is the last release with support for Python 3.10.
This include fixes for:
twisted.internet.defer.Deferred.__iter__, used when awaiting a Deferred, is now about 2-3% faster. (#12727)twistd now exits with a non-zero status when given an unknown subcommand. (#12656)twisted.internet.error.PotentialZombieWarning, deprecated since Twisted 10.0, has been removed. (#12744)twisted.internet.interfaces.IProcessProtocol are now required to provide a processExited method. Omitting this method was deprecated in Twisted 8.2. (#12824)Features
- twisted.conch.ssh.transport.SSHServerTransport now supports the hybrid
post-quantum key exchange algorithm mlkem768x25519-sha256. (#12520)
Bugfixes
Features
- twisted.web.http.Request.write now performs chunked writes ~12% faster (#12729)
Bugfixes
Deprecations and Removals
- `_makeGetterFactory` method in `twisted.web.client` has been removed. We would not normally remark upon a private API's removal, but we are aware of some 3rd party usage. Please remember that you should not depend on private names within Twisted as they may be removed without notice! (#12721)
Misc
~~~~
- #12815
Mail
----
Bugfixes
~~~~~~~~
- twisted.mail.imap4.IMAP4Server now rejects a SEARCH command containing a literal with a negative octet count, so an authenticated client can no longer freeze the server with a crafted command. (#12763)
- twisted.mail.imap4 no longer allows clients to specify arbitrary regexes. (#12787)
Words
-----
Bugfixes
~~~~~~~~
- The domish XML element streams in twisted.words.xish (used to parse XMPP) now limit the byte size and element count of a single stanza, so a peer can no longer exhaust server memory by sending an unbounded stanza. (#12707)
- twisted.words.protocols.irc.IRC.dataReceived now limits the length of a single line, so a peer can no longer exhaust server memory by sending data without a line delimiter. (#12770)
Names
-----
Bugfixes
~~~~~~~~
- `twisted.names.dns.DNSDatagramProtocol.query` now discards query responses that
come from hosts other than the one the query was issued to, preventing other
hosts from injecting invalid DNS responses. (#12696)
Deprecations and Removals
twisted.names.dns.Message no longer has the class attributes queries, answers, add, or ns. (#12667)twisted.names.client.ThreadedResolver, deprecated since Twisted 9.0, has been removed. (#12843)Misc
- #12701
Trial
-----
No significant changes.
Reported and fixed by Tomas Illuminati Balbin CVE-2026-42304
This is the last release with support for Python 3.9.
tls endpointtwist web --listen=tls:.../certbot-dir/config/live pointed at a certbot livetwisted.internet.reactor now has type annotations and will appear to be an object of an appropriate type, allowing for idiomatic common usages with correct type information. (#9909)application property from these new key types. (#12212)RuntimeWarning: TestResult has no addDuration method when running PyUnit tests. (#12229)sys.modules gracefully. Prior to the change, it could possibly raise a "dictionary changed size during iteration" error if the module list changed. (#12458)factor for initial delay, but use initialDelay directly. (#12478)twisted.internet.testing.MemoryReactor.callWhenRunning now invokes the callback immediately, if already started. (#12514)No significant changes.
No significant changes.
Bugfixes
Reported and fixed by Tomas Illuminati Balbin CVE-2026-42304
This is the last release with support for Python 3.9.
tls endpointtwist web --listen=tls:.../certbot-dir/config/live pointed at a certbot livetwisted.internet.reactor now has type annotations and will appear to be an object of an appropriate type, allowing for idiomatic common usages with correct type information. (#9909)application property from these new key types. (#12212)RuntimeWarning: TestResult has no addDuration method when running PyUnit tests. (#12229)sys.modules gracefully. Prior to the change, it could possibly raise a "dictionary changed size during iteration" error if the module list changed. (#12458)factor for initial delay, but use initialDelay directly. (#12478)twisted.internet.testing.MemoryReactor.callWhenRunning now invokes the callback immediately, if already started. (#12514)No significant changes.
No significant changes.
Bugfixes
twisted.internet.defer.waitForDeferred twisted.internet.defer.deferredGenerator have been removed. They have been deprecated since Twisted 15.0.0
twisted.web.server.Site can now be created with a
parsePOSTFormSubmission=False parameter to disable parsing of HTTP
request bodies. (#12412)An error in the example for using a Resource object in th documentation on Configuring and Using the Twisted Web Server has been correctd.
Furthermore, a number of references to "strings" where "bytes" where expected has been adjusted. (#12410)
No significant changes.
No significant changes.
twisted.internet.defer.waitForDeferred twisted.internet.defer.deferredGenerator have been removed. They have been deprecated since Twisted 15.0.0
twisted.web.server.Site can now be created with a
parsePOSTFormSubmission=False parameter to disable parsing of HTTP
request bodies. (#12412)An error in the example for using a Resource object in th documentation on Configuring and Using the Twisted Web Server has been correctd.
Furthermore, a number of references to "strings" where "bytes" where expected has been adjusted. (#12410)
No significant changes.
No significant changes.
twisted.python.constants, deprecated since 16.5.0, has been removed.
No changes since 24.11.0rc2.
In comparison to 24.11.0rc1, this release includes and update to do the PyPI release using the trusted publisher functionality of PyPI.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
twisted.python.constants, deprecated since 16.5.0, has been removed.
In comparison to 24.11.0rc1, this release includes and update to do the PyPI release using the trusted publisher functionality of PyPI.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
twisted.python.constants, deprecated since 16.5.0, has been removed.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
No significant changes.
The Blowfish and CAST5 ciphers were removed as they were deprecated by the Python cryptography library.\\\`
No significant changes.
No significant changes.
No significant changes.
-j flag now accepts an auto keyword to spawn a number of
workers based on the available CPUs. (#5824)The Blowfish and CAST5 ciphers were removed as they were deprecated by the Python cryptography library.\\\`
No significant changes.
No significant changes.
No significant changes.
-j flag now accepts an auto keyword to spawn a number of
workers based on the available CPUs. (#5824)twisted.web.util.redirectTo now HTML-escapes the provided URL in the fallback response body it returns (GHSA-cf56-g6w6-pqq2, CVE-2024-41810).
24.7.0.rc2 fixed an unreleased regression caused by PR 12109. (#12279) No other changes since 24.7.0.rc2
REMOTE_PORT. (#12096)assert to check the type of the arguments. You should now use type checking to validate your code. These changes were done to reduce the CPU usage. (#12122)conch command-line no longer will either. (#12141)return statement. (#9930)twisted-iocpsupport is no longer a hard dependency on Windows.
The IOCP support is now installed together with the other Windows soft
dependencies via twisted[windows-platform]. (#11893)async argument, deprecated since 18.9.0, has been removed. (#12130)Bugfixes
- twisted.conch.insults.window.Widget.functionKeyReceived now dispatches functional key events to corresponding `func_KEYNAME` methods, where `KEYNAME` can be `F1`, `F2`, `HOME`, `UP_ARROW` etc. This is a regression introduced with #8214 in Twisted 16.5.0, where events changed from `const` objects to bytestrings in square brackets like `[F1]`. (#12046)
Web
---
Features
Bugfixes
- twisted.web.util.redirectTo now HTML-escapes the provided URL in the fallback response body it returns (GHSA-cf56-g6w6-pqq2, CVE-2024-41810). (#9839)
- twisted.web.http.IM_A_TEAPOT was added and returns `I'm a teapot`
as default message for the status code 418,
as defined in RFC 2324 section 2.3.2. (#12104)
- The HTTP 1.0/1.1 server provided by twisted.web is now more picky about the first line of a request, improving compliance with RFC 9112. (#12233)
- The HTTP 1.0/1.1 server provided by twisted.web now contains the characters set of HTTP header names, improving compliance with RFC 9110. (#12235)
- The HTTP 1.0 and 1.1 server provided by twisted.web could process pipelined HTTP requests out-of-order, possibly resulting in information disclosure (CVE-2024-41671/GHSA-c8m8-j448-xjx7) (#12248)
- twisted.web.util.redirectTo now HTML-escapes the provided URL in the fallback response body it returns (GHSA-cf56-g6w6-pqq2). The issue is being tracked with CVE-2024-41810. (#12263)
Improved Documentation
Deprecations and Removals
- twisted.web.util.ChildRedirector, which has never worked on Python 3, has been removed. (#9591)
- ``twisted.web.http.Request.setResponseCode()`` no longer validates the types of inputs; we encourage you to use a type checker like mypy to catch these sort of errors. The long-deprecated ``twisted.web.server.string_date_time()`` and ``twisted.web.server.date_time_string()`` APIs were removed altogether. (#12133)
- twisted.web.http.HTTPClient is now deprecated in favor of twisted.web.client.Agent (#12158)
Misc
~~~~
- #12098, #12194, #12200, #12241, #12257
Mail
----
No significant changes.
Words
-----
No significant changes.
Names
-----
No significant changes.
Trial
-----
No significant changes.
twisted.web.util.redirectTo now HTML-escapes the provided URL in the fallback response body it returns (GHSA-cf56-g6w6-pqq2, CVE-2024-41810).
REMOTE_PORT. (#12096)assert to check the type of the arguments. You should now use type checking to validate your code. These changes were done to reduce the CPU usage. (#12122)conch command-line no longer will either. (#12141)return statement. (#9930)twisted-iocpsupport is no longer a hard dependency on Windows.
The IOCP support is now installed together with the other Windows soft
dependencies via twisted[windows-platform]. (#11893)async argument, deprecated since 18.9.0, has been removed. (#12130)Bugfixes
- twisted.conch.insults.window.Widget.functionKeyReceived now dispatches functional key events to corresponding `func_KEYNAME` methods, where `KEYNAME` can be `F1`, `F2`, `HOME`, `UP_ARROW` etc. This is a regression introduced with #8214 in Twisted 16.5.0, where events changed from `const` objects to bytestrings in square brackets like `[F1]`. (#12046)
Web
---
Features
Bugfixes
- twisted.web.util.redirectTo now HTML-escapes the provided URL in the fallback response body it returns (GHSA-cf56-g6w6-pqq2, CVE-2024-41810). (#9839)
- twisted.web.http.IM_A_TEAPOT was added and returns `I'm a teapot`
as default message for the status code 418,
as defined in RFC 2324 section 2.3.2. (#12104)
- The HTTP 1.0/1.1 server provided by twisted.web is now more picky about the first line of a request, improving compliance with RFC 9112. (#12233)
- The HTTP 1.0/1.1 server provided by twisted.web now contains the characters set of HTTP header names, improving compliance with RFC 9110. (#12235)
- The HTTP 1.0 and 1.1 server provided by twisted.web could process pipelined HTTP requests out-of-order, possibly resulting in information disclosure (CVE-2024-41671/GHSA-c8m8-j448-xjx7) (#12248)
- twisted.web.util.redirectTo now HTML-escapes the provided URL in the fallback response body it returns (GHSA-cf56-g6w6-pqq2). The issue is being tracked with CVE-2024-41810. (#12263)
Improved Documentation
Deprecations and Removals
- twisted.web.util.ChildRedirector, which has never worked on Python 3, has been removed. (#9591)
- ``twisted.web.http.Request.setResponseCode()`` no longer validates the types of inputs; we encourage you to use a type checker like mypy to catch these sort of errors. The long-deprecated ``twisted.web.server.string_date_time()`` and ``twisted.web.server.date_time_string()`` APIs were removed altogether. (#12133)
- twisted.web.http.HTTPClient is now deprecated in favor of twisted.web.client.Agent (#12158)
Misc
~~~~
- #12098, #12194, #12200, #12241, #12257
Mail
----
No significant changes.
Words
-----
No significant changes.
Names
-----
No significant changes.
Trial
-----
No significant changes.
twisted.web.util.redirectTo now HTML-escapes the provided URL in the fallback response body it returns (GHSA-cf56-g6w6-pqq2, CVE-2024-41810).
REMOTE_PORT. (#12096)assert to check the type of the arguments. You should now use type checking to validate your code. These changes were done to reduce the CPU usage. (#12122)conch command-line no longer will either. (#12141)return statement. (#9930)twisted-iocpsupport is no longer a hard dependency on Windows.
The IOCP support is now installed together with the other Windows soft
dependencies via twisted[windows-platform]. (#11893)async argument, deprecated since 18.9.0, has been removed. (#12130)Bugfixes
- twisted.conch.insults.window.Widget.functionKeyReceived now dispatches functional key events to corresponding `func_KEYNAME` methods, where `KEYNAME` can be `F1`, `F2`, `HOME`, `UP_ARROW` etc. This is a regression introduced with #8214 in Twisted 16.5.0, where events changed from `const` objects to bytestrings in square brackets like `[F1]`. (#12046)
Web
---
Features
Bugfixes
- twisted.web.util.redirectTo now HTML-escapes the provided URL in the fallback response body it returns (GHSA-cf56-g6w6-pqq2, CVE-2024-41810). (#9839)
- twisted.web.http.IM_A_TEAPOT was added and returns `I'm a teapot`
as default message for the status code 418,
as defined in RFC 2324 section 2.3.2. (#12104)
- The HTTP 1.0/1.1 server provided by twisted.web is now more picky about the first line of a request, improving compliance with RFC 9112. (#12233)
- The HTTP 1.0/1.1 server provided by twisted.web now contains the characters set of HTTP header names, improving compliance with RFC 9110. (#12235)
- The HTTP 1.0 and 1.1 server provided by twisted.web could process pipelined HTTP requests out-of-order, possibly resulting in information disclosure (CVE-2024-41671/GHSA-c8m8-j448-xjx7) (#12248)
- twisted.web.util.redirectTo now HTML-escapes the provided URL in the fallback response body it returns (GHSA-cf56-g6w6-pqq2). The issue is being tracked with CVE-2024-41810. (#12263)
Improved Documentation
Deprecations and Removals
- twisted.web.util.ChildRedirector, which has never worked on Python 3, has been removed. (#9591)
- ``twisted.web.http.Request.setResponseCode()`` no longer validates the types of inputs; we encourage you to use a type checker like mypy to catch these sort of errors. The long-deprecated ``twisted.web.server.string_date_time()`` and ``twisted.web.server.date_time_string()`` APIs were removed altogether. (#12133)
- twisted.web.http.HTTPClient is now deprecated in favor of twisted.web.client.Agent (#12158)
Misc
~~~~
- #12098, #12194, #12200, #12241, #12257
Mail
----
No significant changes.
Words
-----
No significant changes.
Names
-----
No significant changes.
Trial
-----
No significant changes.
twisted.python.failure.Failure now throws exception for generators without triggering a deprecation warnings on Python 3.12. (\#12026)
This release supports PyPy v7.3.14.
reactor.spawnProcess,
now copies the parent environment when the [env=None]{.title-ref}
argument is passed on Posix systems and os.posix_spawnp is used
internally. (#12068)No significant changes.
cookielib and urllib2 standard
library modules. (#12044)No significant changes.
No significant changes.
No significant changes.
twisted.python.failure.Failure now throws exception for generators without triggering a deprecation warnings on Python 3.12.
formatEvent("here's the result of calling a method at log-format time: {obj.method()}", obj=...) (#9347)reactor.spawnProcess, now copies the parent environment when the env=None argument is passed on Posix systems and os.posix_spawnp is used internally. (#12068)@inlineCallbacks to run on new PyPY versions. (#12084)No significant changes.
cookielib and urllib2 standard library modules. (#12044)multipart/form-data using email.message_from_bytes.
The usage of cgi.parse_multipart was removed as the cgi module will be removed in Python 3.13. (#11848)No significant changes.
No significant changes.
No significant changes.
…until the previous request has fully completed. (CVE-2023-46137, GHSA-cq7q-gv5w-rwx2)
No changes since 23.10.0.rc1.
CPython, functions wrapped by twisted.internet.defer.inlineCallbacks can have their arguments and return values freed immediately after completion (due to there no longer being circular references). (#11885)No significant changes.
Bugfixes
- In Twisted 16.3.0, we changed twisted.web to stop dispatching HTTP/1.1
pipelined requests to application code. There was a bug in this change which
still allowed clients which could send multiple full HTTP requests in a single
TCP segment to trigger asynchronous processing of later requests, which could
lead to out-of-order responses. This has now been corrected and twisted.web
should never process a pipelined request over HTTP/1.1 until the previous
request has fully completed. (CVE-2023-46137, GHSA-cq7q-gv5w-rwx2) (#11976)
Deprecations and Removals
No significant changes.
No significant changes.
No significant changes.
Misc
- #10115
Deprecations and Removals ~~~~~~~~~~~~~~~~~~~~~~~~~
CPython, functions wrapped by twisted.internet.defer.inlineCallbacks can have their arguments and return values freed immediately after completion (due to there no longer being circular references). (#11885)No significant changes.
Bugfixes
- In Twisted 16.3.0, we changed twisted.web to stop dispatching HTTP/1.1
pipelined requests to application code. There was a bug in this change which
still allowed clients which could send multiple full HTTP requests in a single
TCP segment to trigger asynchronous processing of later requests, which could
lead to out-of-order responses. This has now been corrected and twisted.web
should never process a pipelined request over HTTP/1.1 until the previous
request has fully completed. (#11976)
Deprecations and Removals
No significant changes.
No significant changes.
No significant changes.
Misc
- #10115
BadZipfile (with a small f) has been deprecated since Python 3.2, use BadZipFile (big F) instead, added in 3.2.
This is the last release with support for Python 3.7.
No changes since 23.8.0.rc1.
twisted.internet.defer.race has been added as a way to get the first available result from a list of Deferreds. (#11817)IHostnameResolver.resolveHostName and IResolverSimple.getHostByName. (#10276)twist conch --auth=sshkey can now authenticate users without a traceback again, thanks to twisted.conch.unix.UnixConchUser no longer being incorrectly instantiated with bytes. In the course of this fix, some type hinting has also been applied to twisted.cred.portal. (#11626)trial -j no longer obscures tracebacks for
any errors caused by that interruption with an UnboundLocalError due to a bug
in its own implementation. Note that there are still several internal
tracebacks that will be emitted upon exiting, because tearing down the test
runner mid-suite is still not an entirely clean operation, but it should at
least be possible to see errors reported from, for example, a test that is
hanging more clearly. (#11707)twisted.web.template now avoids unnecessary copying and is faster, particularly for templates with deep nesting. (#11834)twisted.web.template now avoids some unecessary evaluation of type annotations and is faster. (#11835)conch_nacl now use hyphens rather than underscores to comply with PEP 685. The old names will be supported until the end of 2023. (#11655)Deprecations and Removals
- PyAsn1 has been removed as a conch dependency.
twisted.conch.ssh.keys.Key no longer supports loading "alternate" OpenSSH private keys.
These are some private keys that at some point were handled by OpenSSH but for which no specification exists.
For more info about these OpenSSH keys see https://github.com/twisted/twisted/issues/3008. (#11843)
- Due to changes in the way raw private key byte serialization are handled in Cryptography, and widespread support for Ed25519 in current versions of OpenSSL, we no longer support PyNaCl as a fallback for Ed25519 keys in Conch. (#11871)
Web
---
Misc
~~~~
- #11815, #11879
Mail
----
No significant changes.
Words
-----
No significant changes.
Names
-----
No significant changes.
Trial
-----
No significant changes.
BadZipfile (with a small f) has been deprecated since Python 3.2, use BadZipFile (big F) instead, added in 3.2.
This is the last release with support for Python 3.7.
reactor.spawnProcess() now uses posix_spawnp when possible, making it much more efficient (#5710)twisted.internet.defer.Deferred.fromFuture now has a more precise type annotation. (#11753)twisted.internet.defer._ConcurrencyPrimitive.__aexit__ now has a more precise type annotation. (#11795)twisted.internet.defer.race has been added as a way to get the first available result from a list of Deferreds. (#11817)IHostnameResolver.resolveHostName and IResolverSimple.getHostByName. (#10276)twist conch --auth=sshkey can now authenticate users without a traceback again, thanks to twisted.conch.unix.UnixConchUser no longer being incorrectly instantiated with bytes. In the course of this fix, some type hinting has also been applied to twisted.cred.portal. (#11626)trial -j no longer obscures tracebacks for
any errors caused by that interruption with an UnboundLocalError due to a bug
in its own implementation. Note that there are still several internal
tracebacks that will be emitted upon exiting, because tearing down the test
runner mid-suite is still not an entirely clean operation, but it should at
least be possible to see errors reported from, for example, a test that is
hanging more clearly. (#11707)twisted.web.template now avoids unnecessary copying and is faster, particularly for templates with deep nesting. (#11834)twisted.web.template now avoids some unecessary evaluation of type annotations and is faster. (#11835)conch_nacl now use hyphens rather than underscores to comply with PEP 685. The old names will be supported until the end of 2023. (#11655)Deprecations and Removals
- PyAsn1 has been removed as a conch dependency.
twisted.conch.ssh.keys.Key no longer supports loading "alternate" OpenSSH private keys.
These are some private keys that at some point were handled by OpenSSH but for which no specification exists.
For more info about these OpenSSH keys see https://github.com/twisted/twisted/issues/3008. (#11843)
- Due to changes in the way raw private key byte serialization are handled in Cryptography, and widespread support for Ed25519 in current versions of OpenSSL, we no longer support PyNaCl as a fallback for Ed25519 keys in Conch. (#11871)
Web
---
Misc
~~~~
- #11815, #11879
Mail
----
No significant changes.
Words
-----
No significant changes.
Names
-----
No significant changes.
Trial
-----
No significant changes.
This release contains a security fix for CVE-2022-39348. This is a low-severity security bug.
This release contains a security fix for CVE-2022-39348. This is a low-severity security bug.
Twisted 22.10.0rc1 release candidate was released on 2022-10-26 and there are no changes between the release candidate and the final release.
systemd: endpoint parser now supports "named" file descriptors. This is a more reliable mechanism for choosing among several inherited descriptors. (#8147)systemd endpoint parser's index parameter is now documented as leading to non-deterministic results in which descriptor is selected. The new name parameter is now documented as preferred. (#8146)Bugfixes
- twisted.conch.manhole.ManholeInterpreter now captures tracebacks even if sys.excepthook has been modified. (#11638)
Web
---
Features
Bugfixes
- twisted.web.error.Error.__str__ no longer raises an exception when the error's message attribute is None. Additionally, it validates that code is a plausible 3-digit HTTP status code. (#10271)
- The typing of the twisted.web.http_headers.Headers methods addRawHeader() and setRawHeaders() now allow mixing str and bytes, matching the runtime behavior. (#11635)
- twisted.web.vhost.NameVirtualHost no longer echoes HTML received in the Host header without escaping it (CVE-2022-39348, GHSA-vg46-2rrj-3647). (#11716)
Deprecations and Removals
Bugfixes
- emailserver.tac now runs under python3.x (#11634)
Words
-----
No significant changes.
Names
-----
No significant changes.
Trial
-----
Features
Bugfixes
- The implementation of ``trial -jN ...`` now handles test errors and failures larger than 64 kB. It also handles other internal communication errors by logging them in the worker and attempting to send them to the parent process -- instead of crashing with ``UnknownRemoteError`` and no additional details. (#10314)
- `trial -jN --logfile path` no longer hangs if *path* contains a directory separator. (#11580)
Misc
~~~~
- #11649, #11661, #11677, #11710
twisted.web.vhost.NameVirtualHost no longer echoes HTML received in the Host header without escaping it (CVE-2022-39348, GHSA-vg46-2rrj-3647).
systemd: endpoint parser now supports "named" file descriptors. This is a more reliable mechanism for choosing among several inherited descriptors. (#8147)test.yaml workflow permissions restricted. (#11631)systemd endpoint parser's index parameter is now documented as leading to non-deterministic results in which descriptor is selected. The new name parameter is now documented as preferred. (#8146)No significant changes.
No significant changes.
trial -jN ... now handles test errors and failures larger than 64 kB. It also handles other internal communication errors by logging them in the worker and attempting to send them to the parent process -- instead of crashing with UnknownRemoteError and no additional details. (#10314)trial -jN --logfile path no longer hangs if path contains a directory separator. (#11580)The release process documentation was updated to include information about doing a security release.
Twisted 22.8.0rc1 release candidate was released on 2022-08-28 and there are no changes between the release candidate and the final release.
twisted.internet.base.DelayedCall.__repr__ will no longer raise AttributeError if the DelayedCall was created before debug mode was enabled. As a side-effect, twisted.internet.base.DelayedCall.creator is now defined as None in cases where previously it was undefined. (#8306)ContextVar.reset() now works correctly inside inlineCallbacks functions and coroutines. (#10301)Bugfixes
- twisted.conch.checkers.UNIXAuthorizedKeysFiles now uses the filesystem encoding to decode usernames before looking them up in the password database, so it works on Python 3. (#10286)
- twisted.conch.ssh.SSHSession.request_env no longer gives a warning if the session does not implement ISessionSetEnv. (#10347)
- The cftp command line (and `twisted.conch.scripts.cftp.SSHSession.extReceived`) no longer raises an unhandled error when receiving data on stderr from the server. (#10351)
Misc
~~~~
- #10330
Web
---
Features
IRequest.write instead of passing them all separately. This greatly reduces the number of chunks in the response. (#10348)Misc
- #11604
Mail
----
Bugfixes
Bugfixes
- twisted.words.protocols.irc.IRCClient now splits overly long NOTICEs and NOTICEs containing \n before sending. (#10285)
Names
-----
Bugfixes
Features
- ``trial --jobs=N --exitfirst`` is now supported. (#9654)
Bugfixes
trial --jobs=N --until-failure ... now reports the correct number of tests run after each iteration. (#10311)trial -jN ... will now pass errors and failures to IReporter methods as instances of WorkerException instead of str. (#10333)Misc
- #10319, #10338, #11571
The release process documentation was updated to include information about doing a security release.
twisted.internet.base.DelayedCall.__repr__ will no longer raise AttributeError if the DelayedCall was created before debug mode was enabled. As a side-effect, twisted.internet.base.DelayedCall.creator is now defined as None in cases where previously it was undefined. (#8306)ContextVar.reset() now works correctly inside inlineCallbacks functions and coroutines. (#10301)Bugfixes
- twisted.conch.checkers.UNIXAuthorizedKeysFiles now uses the filesystem encoding to decode usernames before looking them up in the password database, so it works on Python 3. (#10286)
- twisted.conch.ssh.SSHSession.request_env no longer gives a warning if the session does not implement ISessionSetEnv. (#10347)
- The cftp command line (and `twisted.conch.scripts.cftp.SSHSession.extReceived`) no longer raises an unhandled error when receiving data on stderr from the server. (#10351)
Misc
~~~~
- #10330
Web
---
Features
IRequest.write instead of passing them all separately. This greatly reduces the number of chunks in the response. (#10348)Misc
- #11604
Mail
----
Bugfixes
Bugfixes
- twisted.words.protocols.irc.IRCClient now splits overly long NOTICEs and NOTICEs containing \n before sending. (#10285)
Names
-----
Bugfixes
Features
- ``trial --jobs=N --exitfirst`` is now supported. (#9654)
Bugfixes
trial --jobs=N --until-failure ... now reports the correct number of tests run after each iteration. (#10311)trial -jN ... will now pass errors and failures to IReporter methods as instances of WorkerException instead of str. (#10333)Misc
- #0, #10319, #10338, #11571
…from header values. These changes address CVE-2022-24801 and GHSA-c2jg-hw38-jrqq.
Features
- twisted.conch.ssh now supports using RSA keys with SHA-2 signatures (RFC 8332) when acting as a server. The rsa-sha2-512 and rsa-sha2-256 public key signature algorithms are automatically preferred over ssh-rsa if the client advertises support for them; the actual public keys do not need to change. (#9765)
- twisted.conch.ssh now has an alternative Ed25519 implementation using PyNaCl, in order to support platforms that lack OpenSSL >= 1.1.1b. The new "conch_nacl" extra has the necessary dependency. (#10208)
Misc
~~~~
- (#10313)
Web
---
Features
Bugfixes
- twisted.web.http had several several defects in HTTP request parsing that could permit HTTP request smuggling. It now disallows signed Content-Length headers, forbids illegal characters in chunked extensions, forbids a ``0x`` prefix to chunk lengths, and only strips spaces and horizontal tab characters from header values. These changes address CVE-2022-24801 and GHSA-c2jg-hw38-jrqq. (#10323)
Mail
----
Bugfixes
No significant changes.
No significant changes.
Features
- `trial --until-failure --jobs=N` now reports the number of each test pass as it begins. (#10312)
Bugfixes
trial -u .... (#10320)Misc
- #10315, #10321, #10322
…from header values. These changes address CVE-2022-24801 and GHSA-c2jg-hw38-jrqq.
Features
- twisted.conch.ssh now supports using RSA keys with SHA-2 signatures (RFC 8332) when acting as a server. The rsa-sha2-512 and rsa-sha2-256 public key signature algorithms are automatically preferred over ssh-rsa if the client advertises support for them; the actual public keys do not need to change. (#9765)
- twisted.conch.ssh now has an alternative Ed25519 implementation using PyNaCl, in order to support platforms that lack OpenSSL >= 1.1.1b. The new "conch_nacl" extra has the necessary dependency. (#10208)
Bugfixes
Features
- Twisted is now compatible with h2 4.x.x. (#10182)
Bugfixes
Bugfixes
- twisted.mail.pop3.APOPCredentials is now correctly marked as implementing twisted.cred.credentials.IUsernamHashedPassword, rather than IUsernamePassword. (#10305)
Words
-----
No significant changes.
Names
-----
No significant changes.
Trial
-----
Features
trial --until-failure --jobs=N now reports the number of each test pass as it begins. (#10312)Bugfixes
- twisted.trial.unittest.TestCase now discards cleanup functions after running them. Notably, this prevents them from being run an ever growing number of times with `trial -u ...`. (#10320)
Misc
~~~~
- #10315, #10321, #10322
…is not sent in the first 4096 bytes. (#10284, CVE-2022-21716, GHSA-rv6r-3f5q-9rgx)
min function no longer accepts None as an argument. (#9660)Misc
- #10298
Web
---
No significant changes.
Mail
----
No significant changes.
Words
-----
No significant changes.
Names
-----
No significant changes.
Trial
-----
Bugfixes
Support for Python 3.6, which is EoL as of 2021-09-04, has been deprecated.
This is the last release with support for Python 3.6.
min function no longer accepts None as an argument. (#9660)Bugfixes
- twisted.conch.ssh.transport.SSHTransportBase now disconnects the remote peer if the
SSH version string is not sent in the first 4096 bytes. (#10284)
Misc
~~~~
- #10298
Web
---
No significant changes.
Mail
----
No significant changes.
Words
-----
No significant changes.
Names
-----
No significant changes.
Trial
-----
Bugfixes
Deprecated twisted.python.threading.ThreadPool.currentThread() in favor of threading.current_thread(). Switched twisted.python.threading.ThreadPool.cu…
twisted.internet.base.DelayedCall.__repr__ and twisted.internet.task.LoopingCall.__repr__ had the changes from #10155 reverted to accept non-function callables. (#10235)twisted.python.threading.ThreadPool.currentThread() in favor of threading.current_thread().
Switched twisted.python.threading.ThreadPool.currentThread() and twisted.python.threadable.getThreadID() to use `threading.current_thread()to avoid the deprecation warnings introduced forthreading.currentThread()`` in Python 3.10. (#10273)Features
- twisted.conch.ssh now supports SSH extension negotiation (RFC 8308). (#10266)
Bugfixes
Bugfixes
- twisted.web.client.RedirectAgent and twisted.web.client.BrowserLikeRedirectAgent now properly remove sensitive headers when redirecting to a different origin. (#10294)
Improved Documentation
Deprecations and Removals
- twisted.web.client.getPage, twisted.web.client.downladPage, and the associated implementation classes (HTTPPageGetter, HTTPPageDownloader, HTTPClientFactory, HTTPDownloader) have been removed because they do not segregate cookies by domain. They were deprecated in Twisted 16.7.0 in favor of twisted.web.client.Agent. GHSA-92x2-jw7w-xvvx. (#10295)
Mail
----
No significant changes.
Words
-----
No significant changes.
Names
-----
No significant changes.
Trial
-----
Bugfixes
~~~~~~~~
- trial.runner.filenameToModule now sets the correct module.__name__ and sys.modules key (#10230)
Deprecated twisted.python.threading.ThreadPool.currentThread() in favor of threading.current_thread(). Switched twisted.python.threading.ThreadPool.cu…
DelayedCall.__repr__ and LoopingCall.__repr__ (#10235)twisted.python.threading.ThreadPool.currentThread() in favor of threading.current_thread().
Switched twisted.python.threading.ThreadPool.currentThread() and twisted.python.threadable.getThreadID() to use `threading.current_thread()to avoid the deprecation warnings introduced forthreading.currentThread()`` in Python 3.10. (#10273)Type hinting was added to twisted.internet.defer, making this is the first release of Twisted where you might reasonably be able to use mypy without y
DelayedCall.__repr__ and LoopingCall.__repr__ from
21.7.0.rc1 were reverted as the wrong assumption that __qualname__ is
available on all the supported Python versions.
(#10235)module.__name__ and sys.modules key (#10230)Misc
- #10097
Web
---
Features
Bugfixes
- The server-side HTTP/1.1 chunking implementation no longer performs quadratic work when input arrives in small chunks, preventing CPU exhaustion. (#3795)
- twisted.web.http's chunked encoding support now rejects chunk sizes that are invalid because they look like negative hexadecimal integers. (#10130)
- The type hint of twisted.web.server.Request.postpath is now correctly listed as Optional[List[bytes]]. This was incorrect in Twisted v21.2.0. (#10136)
- The server-side HTTP/1.1 chunking implementation now rejects invalid chunk boundaries, preventing unbounded buffering. (#10137)
- The server-side HTTP/1.1 chunking implementation now limits the length of the chunk size line (which includes chunk extensions) to twisted.web.http.maxChunkSizeLineLength — 1 KiB — so that it may not consume an unbounded amount of memory. (#10144)
- Calling twisted.web.server.Site now registers its expiration timeout using the reactor associated with its twisted.web.server.Site. Site now a reactor attribute via its superclass, twisted.web.http.HTTPFactory. (#10177)
Misc
~~~~
- #9659, #10100, #10154, #10186
Mail
----
No significant changes.
Words
-----
No significant changes.
Names
-----
No significant changes.
Twisted 21.7.0.rc3 (2021-07-23)
DelayedCall.__repr__ and LoopingCall.__repr__ from
21.7.0.rc1 were reverted as the wrong assumption that __qualname__ is
available on all the supported Python versions.
(#10235)Twisted 21.7.0.rc2 (2021-07-20)
module.__name__ and sys.modules key (#10230)Twisted 21.7.0.rc1 (2021-07-10)
Features
- twisted.web.template.renderElement() now accepts any IRequest implementer instead of only twisted.web.server.Request.
Add type hints to twisted.web.template. (#10184)
Bugfixes
One column per quarter.