Message114432
| Author |
terry.reedy |
| Recipients |
Volodymyr.Kostyrko, terry.reedy |
| Date |
2010年08月20日.17:14:35 |
| SpamBayes Score |
8.839054e-09 |
| Marked as misclassified |
No |
| Message-id |
<1282324478.23.0.144205496309.issue9591@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I presume the first example should have been
# cat file | ./test.py
or seceond should have been
# ./test.py < test.py
so that test.py gets same input on stdin in either case.
For other readers: kqueue and kevent are bsd-specific functions and classes in the select module. In the first output, 32786 (== 1 << 15) is the EOF flag missing in the second output.
I wonder is this is really a python issue. I would expect that kqueue and kevent are thin wrappers for the os calls and objects and that python should be indifferent to the source of stdin data. You could check the C source. I do not know if there are any developers currently familiar with the innards of bsd. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年08月20日 17:14:38 | terry.reedy | set | recipients:
+ terry.reedy, Volodymyr.Kostyrko |
| 2010年08月20日 17:14:38 | terry.reedy | set | messageid: <1282324478.23.0.144205496309.issue9591@psf.upfronthosting.co.za> |
| 2010年08月20日 17:14:37 | terry.reedy | link | issue9591 messages |
| 2010年08月20日 17:14:36 | terry.reedy | create |
|