Ticket #5945 task assigned
Deprecate __getstate__ and __setstate__ implementations across the board
| Reported by: | teratorn | Owned by: | canibanoglu |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Keywords: | |
| Cc: | thijs | Branch: | |
| Author: | Launchpad Bug: |
Description (last modified by exarkun) (diff)
It would seem there is no extant reason for keeping these methods around, except for backwards-compatibility with poorly-written, legacy Twisted-using code.
TAP (Twisted Application PICKLE) support, now gone, was what was depending on these methods, AFAIK.
There are 77 occurences in 32 files:
application/internet.py application/service.py cred/checkers.py enterprise/adbapi.py internet/protocol.py internet/ssl.py internet/_sslverify.py mail/relaymanager.py mail/smtp.py manhole/service.py manhole/telnet.py names/authority.py names/cache.py names/client.py news/database.py persisted/aot.py persisted/styles.py python/failure.py python/filepath.py python/logfile.py python/threadpool.py runner/procmon.py runner/test/test_procmon.py spread/jelly.py spread/publish.py test/test_jelly.py test/test_persisted.py test/test_sslverify.py web/distrib.py web/server.py words/im/basesupport.py words/protocols/irc.py
What are the action items for this ticket?
- Add news file deprecating these implementations.
- Emit a deprecation warning on the use of these methods
- Come back in a few releases and remove the implementations (the interval is defined by CompatibilityPolicy)
Anything else?
Change History
Note: See
TracTickets for help on using
tickets.
