no module named exceptions?

Tommy Grav tgrav at mac.com
Thu Apr 1 13:37:01 EDT 2010


This is what he is expecting. Importing exceptions works fine in 2.6.4, not so
in python 3.1. 

Python 2.6.4 (r264:75706, Nov  3 2009, 18:12:54) 
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import exceptions
>>> 

Tommy


On Apr 1, 2010, at 1:29 PM, Shashwat Anand wrote:

> There i no module named 'exceptions' in python 2.6 as well as python 3.1 What are you expecting ?
> 
> On Thu, Apr 1, 2010 at 10:42 PM, Joaquin Abian <gatoygata2 at gmail.com> wrote:
> In python 3.1,
> 
> >>> import exceptions
> Traceback (most recent call last):
>  File "<pyshell#6>", line 1, in <module>
>    import exceptions
> ImportError: No module named exceptions
> 
> in 2.6 no exception is raised
> It should be the same in 3.1, isnt it?
> 
> Joaquin
> --
> http://mail.python.org/mailman/listinfo/python-list
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100401/58b48fd1/attachment-0001.html>


More information about the Python-list mailing list