Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_codeccallbacks.PosReturn Class Reference

List of all members.

Public Member Functions

def __init__
def handle

Public Attributes

 pos

Detailed Description

Definition at line 4 of file test_codeccallbacks.py.


Constructor & Destructor Documentation

Definition at line 7 of file test_codeccallbacks.py.

00007 
00008     def __init__(self):
00009         self.pos = 0

Here is the caller graph for this function:


Member Function Documentation

def test.test_codeccallbacks.PosReturn.handle (   self,
  exc 
)

Definition at line 10 of file test_codeccallbacks.py.

00010 
00011     def handle(self, exc):
00012         oldpos = self.pos
00013         realpos = oldpos
00014         if realpos<0:
00015             realpos = len(exc.object) + realpos
00016         # if we don't advance this time, terminate on the next call
00017         # otherwise we'd get an endless loop
00018         if realpos <= exc.start:
00019             self.pos = len(exc.object)
00020         return ("<?>", oldpos)
00021 
# A UnicodeEncodeError object with a bad start attribute

Here is the caller graph for this function:


Member Data Documentation

Definition at line 8 of file test_codeccallbacks.py.


The documentation for this class was generated from the following file: