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 <gatoyga...@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
-- http://mail.python.org/mailman/listinfo/python-list