Message400422
| Author |
Mark.Shannon |
| Recipients |
Mark.Shannon, brett.cannon, eric.snow, gvanrossum, lemburg, ronaldoussoren |
| Date |
2021年08月27日.14:12:31 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1630073551.77.0.300849442543.issue45020@roundup.psfhosted.org> |
| In-reply-to |
| Content |
I don't recall, but...
You can't modify any builtin modules. Freezing modules effectively makes them builtin from a user's perspective. There are plenty of modules that can't be modified:
>>> sys.builtin_module_names
('_abc', '_ast', '_codecs', '_collections', '_functools', '_imp', '_io', '_locale', '_operator', '_signal', '_sre', '_stat', '_string', '_symtable', '_thread', '_tokenize', '_tracemalloc', '_warnings', '_weakref', 'atexit', 'builtins', 'errno', 'faulthandler', 'gc', 'itertools', 'marshal', 'posix', 'pwd', 'sys', 'time', 'xxsubtype')
I don't see why adding a few more modules to that list would be a problem.
Was the objection to feezing *all* modules, not just the core ones? |
|