> dir(sys)
> help(sys)
to further elaborate, dir() will tell you what it has, and help() will
dump pretty-printed doc strings for you.
good luck!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2006,2001
http://corepython.com
Orri Ganel wrote:
Another way to do this would be:
|
import sys
for i in range(len(sequence)-1,-1,-1):
| sys.stdout.write(sequence[i])
||
It might be interesting to note that although this *range* works for accessing
the indices, you can't do the same directly in slice notatio
Hello,
Thanks a lot for the pointers, Kent, and the explanations, Michael!
> There is an undocumented hook that lets you change this - the
function > Tk.report_callback_exception() is called to actually report
the error. > You can redefine this function to do what you want. Here
are a couple
Orri Ganel wrote:
Another way to do this would be:
|
import sys
for i in range(len(sequence)-1,-1,-1):
| sys.stdout.write(sequence[i])
||
It might be interesting to note that although this *range* works for accessing
the indices, you can't do the same directly in slice notatio