Re: Python's Exception, and Capitalization

2005-08-15 Thread Michael Hudson
"Ray" <[EMAIL PROTECTED]> writes: > D H wrote: >> Yeah, the python standard library has been built by lots of different >> people. It wasn't designed by one entity using one standard like the >> java standard library or .NET/Mono class library. > > Um, OK, so is it customary in modern Python prog

Re: Python's Exception, and Capitalization

2005-08-12 Thread Ray
Steve M wrote: > You might find the Python Style Guide to be helpful: > > http://www.python.org/doc/essays/styleguide.html Nice! Thanks Steve. Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's Exception, and Capitalization

2005-08-12 Thread Steve M
You might find the Python Style Guide to be helpful: http://www.python.org/doc/essays/styleguide.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's Exception, and Capitalization

2005-08-12 Thread bruno modulix
Ray wrote: > Hello guys, > > OK, I've been reading some more about Python. There are some things > about Python exception that I haven't been able to grasp: > > 1. This is a small thing, but why is object spelled "object", and the > mother of all exception "Exception" (with capital E)? Why is not

Re: Python's Exception, and Capitalization

2005-08-12 Thread Aahz
In article <[EMAIL PROTECTED]>, Ray <[EMAIL PROTECTED]> wrote: > >2. I'm quite baffled that you either have try/except, or try/finally. >In Java, it is quite common to do this: > >try { >// something >} catch(AException e) { >// handle >} catch(BException e) { >// handle >} catch(CExcep

Re: Python's Exception, and Capitalization

2005-08-12 Thread [EMAIL PROTECTED]
For youtr try, except, finally: you can construct something like this: try: try: print 'egg' + 1 except ValueError, e: print e finally: print 'spam' It results in: py> spam Traceback (most recent call last): File "C:/Martin/test.py", line 3, in -toplevel- print

Re: Python's Exception, and Capitalization

2005-08-12 Thread Ray
D H wrote: > Yeah, the python standard library has been built by lots of different > people. It wasn't designed by one entity using one standard like the > java standard library or .NET/Mono class library. Um, OK, so is it customary in modern Python programs to follow Java convention? then method

Re: Python's Exception, and Capitalization

2005-08-12 Thread D H
Ray wrote: > Hello guys, > > OK, I've been reading some more about Python. There are some things > about Python exception that I haven't been able to grasp: > > 1. This is a small thing, but why is object spelled "object", and the > mother of all exception "Exception" (with capital E)? Why is not

Python's Exception, and Capitalization

2005-08-12 Thread Ray
Hello guys, OK, I've been reading some more about Python. There are some things about Python exception that I haven't been able to grasp: 1. This is a small thing, but why is object spelled "object", and the mother of all exception "Exception" (with capital E)? Why is not object spelled "Object"