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.
Created on 2010年10月16日 02:04 by orsenthil, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| simple_test.py | orsenthil, 2010年10月16日 02:04 | |||
| Messages (3) | |||
|---|---|---|---|
| msg118852 - (view) | Author: Senthil Kumaran (orsenthil) * (Python committer) | Date: 2010年10月16日 02:04 | |
I am attaching the script which exhibits the problem. wrapping the urllib.request.urlopen, with the support.transient_internet contextmanager exhibits an Unexpected Behavior. Without the context manager, reading the file using the filedescriptor succeeds, but when wrapping it with the context manager, it fails with a TypeError. |
|||
| msg118859 - (view) | Author: Senthil Kumaran (orsenthil) * (Python committer) | Date: 2010年10月16日 08:29 | |
Actually, this is not related to transient_internet call. Just that file handle not behaving as expected due to some delays. |
|||
| msg118932 - (view) | Author: Senthil Kumaran (orsenthil) * (Python committer) | Date: 2010年10月17日 10:54 | |
Fixed in revision 85630. When using fileno attribute of the file-descriptor, the socket had to be in blocking mode. Now the results are consistent. This may resolve the other spurious test failures that were observed too. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:07 | admin | set | github: 54328 |
| 2010年10月17日 10:54:16 | orsenthil | set | status: open -> closed messages: + msg118932 assignee: orsenthil resolution: fixed stage: needs patch -> resolved |
| 2010年10月16日 08:29:40 | orsenthil | set | messages: + msg118859 |
| 2010年10月16日 02:06:33 | orsenthil | set | nosy:
+ michael.foord |
| 2010年10月16日 02:04:37 | orsenthil | create | |