Message242866
| Author |
behzad.nouri |
| Recipients |
behzad.nouri |
| Date |
2015年05月10日.20:55:34 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1431291334.61.0.842611161748.issue24161@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
- python 2 only, not reproducible on python 3
Attached file makes an extension module which just returns PyIter_Check value on passed object.
Calling the function with an object of type "instance" returns true, even though the object is not iterator:
>>> import spam
>>> class Foo:
... pass
...
>>> foo = Foo()
>>> type(foo)
<type 'instance'>
>>> spam.isiter(foo) # <<<< ?!
1
>>> next(foo)
TypeError: instance has no next() method |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年05月10日 20:55:34 | behzad.nouri | set | recipients:
+ behzad.nouri |
| 2015年05月10日 20:55:34 | behzad.nouri | set | messageid: <1431291334.61.0.842611161748.issue24161@psf.upfronthosting.co.za> |
| 2015年05月10日 20:55:34 | behzad.nouri | link | issue24161 messages |
| 2015年05月10日 20:55:34 | behzad.nouri | create |
|