Comments (8)
sys.builtin_module_names
gives a list of compiled built-in modules. On my machine, that is
('_ast',
'_bisect',
'_blake2',
'_codecs',
'_collections',
'_datetime',
'_elementtree',
'_functools',
'_heapq',
'_imp',
'_io',
'_locale',
'_md5',
'_operator',
'_pickle',
'_posixsubprocess',
'_random',
'_sha1',
'_sha256',
'_sha3',
'_sha512',
'_signal',
'_socket',
'_sre',
'_stat',
'_string',
'_struct',
'_symtable',
'_thread',
'_tracemalloc',
'_warnings',
'_weakref',
'array',
'atexit',
'binascii',
'builtins',
'errno',
'faulthandler',
'fcntl',
'gc',
'grp',
'itertools',
'marshal',
'math',
'posix',
'pwd',
'pyexpat',
'select',
'spwd',
'sys',
'syslog',
'time',
'unicodedata',
'xxsubtype',
'zipimport',
'zlib')
This is missing things like argparse
, datetime
etc. Hm.
from tuna.
I've simply hardcoded the list of built-in modules now. Hopefully, we'll find a more aesthetically pleasing solution in the future.
from tuna.
That list is missing _ctypes
, _bz2
, posixpath
, genericpath
, ntpath
, and a few others. Could potentially depend on https://pypi.org/project/stdlib-list/, but that adds the need for network access.
from tuna.
It appears that https://pypi.org/project/stdlib-list is unmaintained. Crucially, Python 3.7 isn't supported (yet?). I guess there's no way around us maintaining our own lists unfortunately. And I'm not too sure what to think about adding private modules to the list...
from tuna.
@nschloe: I doubt it needs any maintenance - all it seems to do is scrape the sphinx data from the python docs. As long as the sphinx urls remain the same, it should work for all future python versions
from tuna.
Ah, I'd been looking at https://github.com/jackmaney/python-stdlib-list/tree/master/stdlib_list/lists.
from tuna.
Hmm, I think you're right. Looks like the sphinx script is just used to generate those lists at commit-time. Probably fairly straightforward to rerun fetch
, and create a PR with the 3.7 defs.
from tuna.
Probably fairly straightforward to rerun fetch, and create a PR with the 3.7 defs.
I think so. I've submitted an issue, let's see if the developer shows up sometime.
from tuna.
Related Issues (20)
- Broken Pipe HOT 10
- How to properly close tuna HOT 1
- pytest integration HOT 1
- Crash when the favicon does not exists HOT 3
- Dependency Dashboard
- assert mimetype is not None
- Add disclaimer: Tuna cannot deal with captured output of every type of terminal HOT 3
- Run failed on Mac OS Monterey M1 Chip HOT 1
- almost empty profile? HOT 2
- Alternate port HOT 2
- Feature request: Watch for file change HOT 7
- Call stack depth is limited? HOT 9
- Is there any plan to support a line and cell magics for Jupyter/Lab notebook? HOT 4
- Exception occurred when running tuna program.prof HOT 11
- favicon.ico missing error HOT 2
- Visualization in Tuna HOT 1
- tuna 0.4.5 ipython magic fails to load with "The tuna module is not an IPython extension" HOT 3
- total execution time is wrong (handling of imports) HOT 5
- crash when parsing profile HOT 2
- IPython magics broken in tuna >=5.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tuna.