Re: exception problem

Discussion in 'Python' started by Dennis Lee Bieber, Jun 25, 2012.

  1. On Sun, 24 Jun 2012 15:26:59 -0700, Charles Hixson
    <> declaimed the following in
    gmane.comp.python.general:

    > The code:
    > print ("pre-chunkLine")
    > chunks = []
    > try:
    > chunks = self.chunkLine (l)
    > except:
    > print ("caught exception")
    > print (sys.exc_info()[:2])
    > finally:
    > print ("at finally")
    > print ("chunks =")
    > print (repr(chunks), ".", end = ":")
    > produces this result:


    Impossible... Nothing in the above would produce the "path 3..."
    line in the below text. It should be "at finally\nchunks ="


    > . . ., by
    > pre-chunkLine
    > caught exception
    > at finally
    > path 3...

    --
    Wulfraed Dennis Lee Bieber AF6VN
    HTTP://wlfraed.home.netcom.com/
    Dennis Lee Bieber, Jun 25, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jeff
    Replies:
    0
    Views:
    1,515
  2. jeff
    Replies:
    3
    Views:
    1,672
    Scott
    Jun 26, 2003
  3. Kerri
    Replies:
    2
    Views:
    12,981
    Kevin Spencer
    Oct 27, 2003
  4. Ola
    Replies:
    0
    Views:
    509
  5. Selen
    Replies:
    0
    Views:
    2,662
    Selen
    May 28, 2004
Loading...

Share This Page