Path: csiph.com!tncsrv06.tnetconsulting.net!weretis.net!feeder6.news.weretis.net!feeder5.news.weretis.net!news.tota-refugium.de!.POSTED!gate.homenet!not-for-mail From: Thomas Orgelmacher Newsgroups: de.comp.lang.python Subject: =?UTF-8?Q?Re=3a_=5bPython-de=5d_von_der_command-line_aus_befehle_de?= =?UTF-8?Q?r_interaktiven_help_ausf=c3=bchren?= Date: Wed, 13 Nov 2019 19:21:54 +0100 Organization: Organization? What Organization? Lines: 27 Message-ID: <27ut9g-bh4.ln1@gate.homenet> References: <4c074bfe-e3d7-f1a2-9915-f31247a391bd@gmx.de> Reply-To: news10@odbs.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: tota-refugium.de 1573669802 7192 127.0.0.43 (13 Nov 2019 18:30:02 GMT) X-Complaints-To: abuse@news.tota-refugium.de NNTP-Posting-Date: Wed, 13 Nov 2019 18:30:02 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 Content-Language: de-DE X-User-ID: eJwFwQkBwDAIA0BL5QlQOTQM/xJ2BwsJpgfCsdiSuDlynj7yWCfL3nd60lGyRhkyr2+6plZ/A9MJRetSHn5QfBWF Cancel-Lock: sha1:08OK88bkGzrX5quRVwLjxvmlLek= In-Reply-To: Xref: csiph.com de.comp.lang.python:5593 Moin! Am 11.11.19 um 18:24 schrieb Patrick Frank: > > von der interaktiven Hilfe kann ich ja zunächst mit "help()" und dann > mit "modules" eine lange Liste mit den Namen der verfügbaren Module > anfordern. Ich würde gerne (automatisiert) von jedem Modul die kurze > Beschreibung abrufen und diese in einer Datei speichern. > > Mit dem folgenden Befehl kam ich bisher nicht weiter: > > for I in $(cat python-modules-list); do echo "python3 -c 'modules $I' > > module.$I"; done > python-modules-exec for i in string math requests ; do python3 -c "help('"$i"')" | > "module.$i" ; done So in etwa (hatte jetzt kein python-modules-list zur Hand)? Thomas -- I have seen things you lusers would not believe. I've seen Sun monitors on fire off the side of the multimedia lab. I've seen NTU lights glitter in the dark near the Mail Gate. All these things will be lost in time, like the root partition last week.