-
-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3.13 support #2306
base: main
Are you sure you want to change the base?
Python 3.13 support #2306
Changes from 1 commit
1a90943
b35f782
d49bb41
aafed6a
1f6586d
99cd8d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from . import all as _all | ||
from . import py2, py3, py27, py36, py37, py38, py39, py310, py311, py312 | ||
from . import py2, py3, py27, py36, py37, py38, py39, py310, py311, py312, py313 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,224 @@ | ||
""" | ||
File contains the standard library of Python 3.13. | ||
DO NOT EDIT. If the standard library changes, a new list should be created | ||
using the mkstdlibs.py script. | ||
""" | ||
|
||
stdlib = { | ||
"_ast", | ||
"_thread", | ||
"_tkinter", | ||
"abc", | ||
"aifc", | ||
"argparse", | ||
"array", | ||
"ast", | ||
"asynchat", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly, this list contains lots of modules that have been removed in 3.12 or earlier. Was this list created using the mkstdlibs.py script? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. all changes to |
||
"asyncio", | ||
"asyncore", | ||
"atexit", | ||
"audioop", | ||
"base64", | ||
"bdb", | ||
"binascii", | ||
"bisect", | ||
"builtins", | ||
"bz2", | ||
"cProfile", | ||
"calendar", | ||
"cgi", | ||
"cgitb", | ||
"chunk", | ||
"cmath", | ||
"cmd", | ||
"code", | ||
"codecs", | ||
"codeop", | ||
"collections", | ||
"colorsys", | ||
"compileall", | ||
"concurrent", | ||
"configparser", | ||
"contextlib", | ||
"contextvars", | ||
"copy", | ||
"copyreg", | ||
"crypt", | ||
"csv", | ||
"ctypes", | ||
"curses", | ||
"dataclasses", | ||
"datetime", | ||
"dbm", | ||
"decimal", | ||
"difflib", | ||
"dis", | ||
"distutils", | ||
"doctest", | ||
"email", | ||
"encodings", | ||
"ensurepip", | ||
"enum", | ||
"errno", | ||
"faulthandler", | ||
"fcntl", | ||
"filecmp", | ||
"fileinput", | ||
"fnmatch", | ||
"fractions", | ||
"ftplib", | ||
"functools", | ||
"gc", | ||
"getopt", | ||
"getpass", | ||
"gettext", | ||
"glob", | ||
"graphlib", | ||
"grp", | ||
"gzip", | ||
"hashlib", | ||
"heapq", | ||
"hmac", | ||
"html", | ||
"http", | ||
"idlelib", | ||
"imaplib", | ||
"imghdr", | ||
"imp", | ||
"importlib", | ||
"inspect", | ||
"io", | ||
"ipaddress", | ||
"itertools", | ||
"json", | ||
"keyword", | ||
"linecache", | ||
"locale", | ||
"logging", | ||
"lzma", | ||
"mailbox", | ||
"mailcap", | ||
"marshal", | ||
"math", | ||
"mimetypes", | ||
"mmap", | ||
"modulefinder", | ||
"msilib", | ||
"msvcrt", | ||
"multiprocessing", | ||
"netrc", | ||
"nis", | ||
"nntplib", | ||
"ntpath", | ||
"numbers", | ||
"operator", | ||
"optparse", | ||
"os", | ||
"ossaudiodev", | ||
"pathlib", | ||
"pdb", | ||
"pickle", | ||
"pickletools", | ||
"pipes", | ||
"pkgutil", | ||
"platform", | ||
"plistlib", | ||
"poplib", | ||
"posix", | ||
"posixpath", | ||
"pprint", | ||
"profile", | ||
"pstats", | ||
"pty", | ||
"pwd", | ||
"py_compile", | ||
"pyclbr", | ||
"pydoc", | ||
"queue", | ||
"quopri", | ||
"random", | ||
"re", | ||
"readline", | ||
"reprlib", | ||
"resource", | ||
"rlcompleter", | ||
"runpy", | ||
"sched", | ||
"secrets", | ||
"select", | ||
"selectors", | ||
"shelve", | ||
"shlex", | ||
"shutil", | ||
"signal", | ||
"site", | ||
"sitecustomize", | ||
"smtpd", | ||
"smtplib", | ||
"sndhdr", | ||
"socket", | ||
"socketserver", | ||
"spwd", | ||
"sqlite3", | ||
"sre", | ||
"sre_compile", | ||
"sre_constants", | ||
"sre_parse", | ||
"ssl", | ||
"stat", | ||
"statistics", | ||
"string", | ||
"stringprep", | ||
"struct", | ||
"subprocess", | ||
"sunau", | ||
"symtable", | ||
"sys", | ||
"sysconfig", | ||
"syslog", | ||
"tabnanny", | ||
"tarfile", | ||
"telnetlib", | ||
"tempfile", | ||
"termios", | ||
"test", | ||
"textwrap", | ||
"threading", | ||
"time", | ||
"timeit", | ||
"tkinter", | ||
"token", | ||
"tokenize", | ||
"tomllib", | ||
"trace", | ||
"traceback", | ||
"tracemalloc", | ||
"tty", | ||
"turtle", | ||
"turtledemo", | ||
"types", | ||
"typing", | ||
"unicodedata", | ||
"unittest", | ||
"urllib", | ||
"usercustomize", | ||
"uu", | ||
"uuid", | ||
"venv", | ||
"warnings", | ||
"wave", | ||
"weakref", | ||
"webbrowser", | ||
"winreg", | ||
"winsound", | ||
"wsgiref", | ||
"xdrlib", | ||
"xml", | ||
"xmlrpc", | ||
"zipapp", | ||
"zipfile", | ||
"zipimport", | ||
"zlib", | ||
"zoneinfo", | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove these.
They were all removed in 3.12:
https://docs.python.org/3/whatsnew/3.12.html#asynchat-and-asyncore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can remove it, but it was added by the scripts. So it will automatically appear on the next run because it's still present in the corresponding documentation: https://docs.python.org/3.12/library/asynchat.html#module-asynchat
Mb it would be better to use stdlibs package or adopt it's approach to modules generation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha, the problem was caused by the docs re-adding module pages which had bee removed, but as stubs:
python/cpython#126622
Yeah, sounds like a good idea to use stdlibs 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated the script to use
stdlibs
and ran it