Logo
Explore Help
Sign In
greg/cpython
1
0
Fork 0
You've already forked cpython
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
3dab11f888fda34c02734e4468d1acd4c36927fe
cpython/Lib/pathlib/_local.py

13 lines
262 B
Python
Raw Normal View History

GH-133789: Fix unpickling of pathlib objects pickled in Python 3.13 (#133831) In Python 3.13 (but not 3.12 or 3.14), pathlib classes are defined in `pathlib._local` rather than `pathlib`. In hindsight this was a mistake, but it was difficult to predict how the abstract/local split would pan out. In this patch we re-introduce `pathlib._local` as a stub module that re-exports the classes from `pathlib`. This allows path objects pickled in 3.13 to be unpicked in 3.14+
2025-10-17 22:57:51 +01:00
"""
This module exists so that pathlib objects pickled under Python 3.13 can be
unpickled in 3.14+.
"""
from pathlib import *
__all__ = [
"UnsupportedOperation",
"PurePath", "PurePosixPath", "PureWindowsPath",
"Path", "PosixPath", "WindowsPath",
]
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.2 Page: 643ms Template: 9ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API