Seite 1 von 1

Verfasst: Donnerstag 2. März 2006, 10:42
von Francesco
BlackJack hat geschrieben:
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?
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).
Danke für die Info. :) :oops:

Verfasst: Donnerstag 2. März 2006, 10:43
von N317V
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.
It is annoying, though.
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?
help on any keyword or topic brings up the following message when typed into the interactive help:
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.
It works with functions but I couldn't get it to work with keywords or topics. Setting the variable doesn't help at all.

Verfasst: Donnerstag 2. März 2006, 10:47
von Francesco
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.
It works with functions but I couldn't get it to work with keywords or topics. Setting the variable doesn't help at all.
Welchen Wert hat die Umgebungsvariable bei dir?
Bei mir ist es (auf Windows):

Console öffnen

Code: Alles auswählen

set
...
PYTHONDOCS=C:\Python24\Doc\

Verfasst: Donnerstag 2. März 2006, 10:54
von N317V
@Francesco: Genau wie bei mir. Vielleicht mal bei Gelegenheit neu starten. :-/