Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5593

Re: [Python-de] von der command-line aus befehle der interaktiven help ausführen

From Thomas Orgelmacher <trash@odbs.org>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] von der command-line aus befehle der interaktiven help ausführen
Date 2019-11-13 19:21 +0100
Organization Organization? What Organization?
Message-ID <27ut9g-bh4.ln1@gate.homenet> (permalink)
References <4c074bfe-e3d7-f1a2-9915-f31247a391bd@gmx.de> <mailman.20.1573493098.25794.python-de@python.org>

Show all headers | View raw


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.

Back to de.comp.lang.python | Previous | NextPrevious in thread | Find similar


Thread

[Python-de] von der command-line aus befehle der interaktiven help ausführen Patrick Frank <patfr.gnu@gmx.de> - 2019-11-11 18:24 +0100
  Re: [Python-de] von der command-line aus befehle der interaktiven help ausführen Thomas Orgelmacher <trash@odbs.org> - 2019-11-13 19:21 +0100

csiph-web