Text markup conventions (was: sys.stderr.write and sys.exit)

2006-11-23 Thread Ben Finney
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > Ben Finney wrote: > > (Note: The underscore '_' is a valid character in Python code, so > > I was quite confused by what you wrote and had to read it several > > times to see that you were intending the underscores not to be > > part of the code. Bet

Re: sys.stderr.write and sys.exit

2006-11-23 Thread GinTon
Thanks Ben Finney. So it's understood very well. Ben Finney ha escrito: > "GinTon" <[EMAIL PROTECTED]> writes: > > > Is the same use >>>>> sys.stderr.write('error message'); sys.exit(1) > > than >>>>> sys.exit('error message') ? > > Code that wants to catch SystemExit will get a different

Re: sys.stderr.write and sys.exit

2006-11-23 Thread Ben Finney
"GinTon" <[EMAIL PROTECTED]> writes: > Is the same use _sys.stderr.write('error message'); sys.exit(1)_ > than _sys.exit('error message')_ ? (Note: The underscore '_' is a valid character in Python code, so I was quite confused by what you wrote and had to read it several times to see that you we

sys.stderr.write and sys.exit

2006-11-23 Thread GinTon
Is the same use _sys.stderr.write('error message'); sys.exit(1)_ than _sys.exit('error message')_ ? Note: help(sys.exit) If the status is omitted or None, it defaults to zero (i.e., success). If the status is numeric, it will be used as the system exit status. If it is another kind of object, it