You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing stubs in Python 3.6 standard library #1019
Most of the public check-marks on this issue seem to be complete. On my local machine, the current list of missing packages (Windows 10, Python 3.6.9, unfiltered):
__phello__.foo - Only used for testing the __hello__ frozen module
msilib is a public windows-specific module, in the original post I believe the _sysconfigdata_* module is both private and os-specific. typeshed-completion also seems to list a number of packages as 'missing' that are now in typeshed.
I recently contributed support for tkinter.font, and seems like it never was on any of the checkbox lists here. There is tkinter/font.py in the standard library, but it seems like the standard library never imports tkinter.font except in Lib/tkinter/test/test_tkinter.
Maybe someone should check if there are other modules missing from the list.
Should there be stubs for idlelib? It's the implementation of IDLE, and it's not supposed to be used for other projects (even though there are some stackoverflow answers that use it).
Also, I think we should leave out undocumented modules from this list. (But we can do that in the new issue.) While it's fine to add such a module, if someone cares to annotate it, our general policy is to add such undocumented features only on request, so I don't think we need to keep an issue around for those.
Activity
JelleZijlstra commentedon Mar 18, 2017
Added statistics in #1021.
JukkaL commentedon Mar 18, 2017
These modules seem to be internal to CPython and thus not a priority:
_.genericpath(used throughos.path)sre_compilesre_constantssre_parseStub for tty
JelleZijlstra commentedon Mar 19, 2017
Just realized this is missing modules implemented in C.
Stub for tty (#1038)
Dushistov commentedon Apr 7, 2017
Also https://docs.python.org/3/library/internet.html is missing,
in particular xmlrpc
matthiaskramm commentedon Apr 7, 2017
This list is a good idea. I'm going to do something similar for Python 2
srittau commentedon Oct 21, 2018
I will also use this bug report to plug typeshed-completion, which tries to document the completion status of the standard library.
CraftSpider commentedon Dec 6, 2019
Most of the public check-marks on this issue seem to be complete. On my local machine, the current list of missing packages (Windows 10, Python 3.6.9, unfiltered):
__phello__.foo- Only used for testing the__hello__frozen module_collections_abc- pending Add _collections_abc module #4000_pyio_sitebuiltins_strptimeidlelibpydoc_dataturtledemomsilib is a public windows-specific module, in the original post I believe the
_sysconfigdata_*module is both private and os-specific. typeshed-completion also seems to list a number of packages as 'missing' that are now in typeshed.2 remaining items
martinburchell commentedon Jan 2, 2020
Should xml.dom be in this list?
petsuter commentedon Feb 26, 2020
Also winreg?
CraftSpider commentedon May 29, 2020
@JelleZijlstra Mind if I update your checklist to match all the stub files now in typeshed? All the non-private modules have been completed
JelleZijlstra commentedon May 29, 2020
Yes, feel free to edit the message (I think you should have permission to do that now?).
Akuli commentedon Jul 22, 2020
I recently contributed support for
tkinter.font, and seems like it never was on any of the checkbox lists here. There istkinter/font.pyin the standard library, but it seems like the standard library never importstkinter.fontexcept inLib/tkinter/test/test_tkinter.Maybe someone should check if there are other modules missing from the list.
petsuter commentedon Jul 23, 2020
xml:
xml.etree.ElementTree: the ElementTree API, a simple and lightweight XML processorxml.dom: the DOM API definitionxml.dom.minidom: a minimal DOM implementationxml.dom.pulldom: support for building partial DOM treesxml.sax: SAX2 base classes and convenience functionsxml.parsers.expat: the Expat parser binding(see #3787)
Akuli commentedon Jul 23, 2020
pydoc_datasupport was added recently in #4351Should there be stubs for
idlelib? It's the implementation of IDLE, and it's not supposed to be used for other projects (even though there are some stackoverflow answers that use it).hauntsaninja commentedon Aug 16, 2020
We're also missing various submodules (eg, just got bitten by asyncio.sslproto)
srittau commentedon Sep 10, 2020
@JelleZijlstra Should we close this? The only open stubs are private and this would probably need to be updated for 3.9 anyways.
JelleZijlstra commentedon Sep 10, 2020
Sounds good. We should do something about the missing submodules though (like asyncio.sslproto and various xml things mentioned above).
hauntsaninja commentedon Sep 12, 2020
Pulled a list of missing submodules in Python 3.8 on darwin (after filtering out anything with the word test in it):
(Also I was wrong about asyncio.sslproto. We have it, I just got bitten by implicit reexport).
Details
List filtered to things that could maybe help people:
Details
srittau commentedon Sep 16, 2020
@hauntsaninja Do you want to open a new ticket for 3.8, so we could get a fresh start?
srittau commentedon Sep 16, 2020
Also, I think we should leave out undocumented modules from this list. (But we can do that in the new issue.) While it's fine to add such a module, if someone cares to annotate it, our general policy is to add such undocumented features only on request, so I don't think we need to keep an issue around for those.
hauntsaninja commentedon Sep 16, 2020
Sure!