Danke für die Info.BlackJack hat geschrieben:Na klar. ``print`` ist eben ein Schlüsselwort und das als Parameter für einen Funktionsaufruf eben syntaktisch an der falschen Stelle. Versuch's mal mit ``help('print')`` (man beachte die Anführungszeichen).Francesco hat geschrieben: Strange BTW:Code: Alles auswählen
>>> help (dir) ...
Code: Alles auswählen
>>> help (print) File "<input>", line 1 help (print) ^ SyntaxError: invalid syntax >>
Can someone duplicate this?
Vorschlag fürs Wiki
It is annoying, though.Francesco hat geschrieben: This forum isn't intended to start endless discussions. Ok.
But I for me simple ignore it (with this post I make an exception).
Nobody is forced to follow it.
help on any keyword or topic brings up the following message when typed into the interactive help:Francesco hat geschrieben: ====
Strange BTW:Code: Alles auswählen
>>> help (dir) ...
Code: Alles auswählen
>>> help (print) File "<input>", line 1 help (print) ^ SyntaxError: invalid syntax >>
Can someone duplicate this?
It works with functions but I couldn't get it to work with keywords or topics. Setting the variable doesn't help at all.Sorry, topic and keyword documentation is not available because the Python
HTML documentation files could not be found. If you have installed them,
please set the environment variable PYTHONDOCS to indicate their location.
Es gibt für alles eine rationale Erklärung.
Außerdem gibt es eine irrationale.
Wie man Fragen richtig stellt
Außerdem gibt es eine irrationale.
Wie man Fragen richtig stellt
Welchen Wert hat die Umgebungsvariable bei dir?It works with functions but I couldn't get it to work with keywords or topics. Setting the variable doesn't help at all.Sorry, topic and keyword documentation is not available because the Python
HTML documentation files could not be found. If you have installed them,
please set the environment variable PYTHONDOCS to indicate their location.
Bei mir ist es (auf Windows):
Console öffnen
Code: Alles auswählen
set
...
PYTHONDOCS=C:\Python24\Doc\
@Francesco: Genau wie bei mir. Vielleicht mal bei Gelegenheit neu starten. :-/
Es gibt für alles eine rationale Erklärung.
Außerdem gibt es eine irrationale.
Wie man Fragen richtig stellt
Außerdem gibt es eine irrationale.
Wie man Fragen richtig stellt