[Python-3000] stdlib as .zip by default, pydoc to view source?
brett at python.org
Sat Jun 21 08:19:57 CEST 2008
On Fri, Jun 20, 2008 at 10:16 PM, Neil Schemenauer <nas at arctrix.com> wrote:
> I wonder if it would make sense to start installing the Python
> standard library as a .zip file by default. Some benefits would be
> a tidier and more compact install and slightly faster startup times.
> One downside is that it becomes more difficult to look at the source
> of modules. That's an important feature of Python, especially for
> people learning the language.
> I think that downside could be mitigated by adding an option to
> pydoc that shows the source of a module. For example, "pydoc -s
> bisect" could show the source for the bisect module.
Or zipimport grows the ability to store source and supplies the
get_source() method as specified in PEP 302. Then pydoc can just use
the loader to get at the source.
More information about the Python-3000