~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Doc/library/exceptions.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
.. exception:: LookupError
86
86
 
87
 
   The base class for the exceptions that are raised when a key or index used on a
88
 
   mapping or sequence is invalid: :exc:`IndexError`, :exc:`KeyError`.  This can be
89
 
   raised directly by :func:`sys.setdefaultencoding`.
 
87
   The base class for the exceptions that are raised when a key or index used on
 
88
   a mapping or sequence is invalid: :exc:`IndexError`, :exc:`KeyError`.  This
 
89
   can be raised directly by :func:`codecs.lookup`.
90
90
 
91
91
 
92
92
.. exception:: EnvironmentError
281
281
 
282
282
.. exception:: StopIteration
283
283
 
284
 
   Raised by an :term:`iterator`\'s :meth:`next` method to signal that there are
285
 
   no further values.  This is derived from :exc:`Exception` rather than
286
 
   :exc:`StandardError`, since this is not considered an error in its normal
287
 
   application.
 
284
   Raised by an :term:`iterator`\'s :meth:`~iterator.next` method to signal that
 
285
   there are no further values.  This is derived from :exc:`Exception` rather
 
286
   than :exc:`StandardError`, since this is not considered an error in its
 
287
   normal application.
288
288
 
289
289
   .. versionadded:: 2.2
290
290