This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bruth
Recipients bruth
Date 2013-03-31.02:45:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364697946.01.0.0961025821714.issue17584@psf.upfronthosting.co.za>
In-reply-to
Content
Consider:

```python
class A(object):
    def __init__(self):
        self.r = iter(range(5))
    def __iter__(self):
        return self
    @property
    def next(self):
        return next(self.r)
```

The `next` method is a property, however:

```python
from collections import Iterator
a = A()
isinstance(a, Iterator) # True
next(a) # TypeError: 'int' object is not callable
```
History
Date User Action Args
2013-03-31 02:45:46bruthsetrecipients: + bruth
2013-03-31 02:45:46bruthsetmessageid: <1364697946.01.0.0961025821714.issue17584@psf.upfronthosting.co.za>
2013-03-31 02:45:45bruthlinkissue17584 messages
2013-03-31 02:45:45bruthcreate