kurze python-frage
Verfasst: Samstag 28. Oktober 2006, 19:18
wo speiechert python nochmal fehlermeldungen?
also suche das was in perl $! entspricht
danke
also suche das was in perl $! entspricht
danke
Seit 2002 Diskussionen rund um die Programmiersprache Python
https://www.python-forum.de/
Code: Alles auswählen
try:
#...
except <error>, <errormsg>
print <errormsg>
Code: Alles auswählen
if (!open(FH, "abc")) {
print "$!\n";
print $!+1;
print "\n";
}
perldoc perlvar hat geschrieben:$!: If used numerically, yields the current value of the C "errno" variable,
...
If used as a string, yields the corresponding system error string.