Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
test.test_iterlen.BadLen Class Reference

-- Check to make sure exceptions are not suppressed by length_hint() More...

Inheritance diagram for test.test_iterlen.BadLen:
Inheritance graph
[legend]
Collaboration diagram for test.test_iterlen.BadLen:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __iter__
def __len__

Public Attributes

_PyObject_HEAD_EXTRA Py_ssize_t ob_refcnt
struct _typeobjectob_type

Detailed Description

-- Check to make sure exceptions are not suppressed by length_hint()

Definition at line 201 of file test_iterlen.py.


Member Function Documentation

Definition at line 202 of file test_iterlen.py.

00202 
    def __iter__(self): return iter(range(10))

Definition at line 203 of file test_iterlen.py.

00203 
00204     def __len__(self):
00205         raise RuntimeError('hello')


Member Data Documentation

Definition at line 107 of file object.h.

struct _typeobject* _object::ob_type [inherited]

Definition at line 108 of file object.h.


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