<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>This is what he is expecting. Importing exceptions works fine in 2.6.4, not so</div><div>in python 3.1. </div><div><br></div><div>Python 2.6.4 (r264:75706, Nov  3 2009, 18:12:54) </div><div>[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin</div><div>Type "help", "copyright", "credits" or "license" for more information.</div><div>>>> import exceptions</div><div>>>> </div><div><br></div><div>Tommy</div><div><br></div></div><br><div><div>On Apr 1, 2010, at 1:29 PM, Shashwat Anand wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">There i no module named 'exceptions' in python 2.6 as well as python 3.1 What are you expecting ?<br><br><div class="gmail_quote">On Thu, Apr 1, 2010 at 10:42 PM, Joaquin Abian <span dir="ltr"><<a href="mailto:gatoygata2@gmail.com">gatoygata2@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">In python 3.1,<br>
<br>
>>> import exceptions<br>
Traceback (most recent call last):<br>
  File "<pyshell#6>", line 1, in <module><br>
    import exceptions<br>
ImportError: No module named exceptions<br>
<br>
in 2.6 no exception is raised<br>
It should be the same in 3.1, isnt it?<br>
<br>
Joaquin<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>
-- <br><a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br></body></html>