Skip to content

Planned Removals and Deprecations

Craig Macdonald edited this page Sep 20, 2024 · 10 revisions

For reference, Python versions

Python Released EOL
3.8 Oct 2019 Oct 2024
3.9 Oct 2020 Oct 2025
3.10 Oct 2021 Oct 2026
Change Where Minimum Version
remove Python version check for loop assignments java.py#L438-L441 3.9
simplify Union typing notation lots 3.10
use typing.Self rather than 'Transformer ' Mostly transformer.py 3.11
Deprecation Where Deprecated Since
old signature for pt.Experiment pipelines.py#L350-L363 Jun 23, 2020
remove support for >> lambda/fn transformer.py#L22-L43 Aug 27, 2022
remove support for .transform(str) in Retriever terrier/retriever.py#L382-L384 Jan 13, 2021
warning for 9 values in rank cutoff ops.py#L186-L187 Oct 21, 2020
pt.init() etc. init.py#L34-L46 0.11 (Aug 2024)
~ operator and pt.cache() transformer.py#L329-L332 and cache.py 0.11.1 (?? 2024)
Old names for retriever https://github.com/terrier-org/pyterrier/blob/master/pyterrier/terrier/__init__.py#L16-L46 0.11 (Aug 2024)
Clone this wiki locally