Message28762
| Author |
liblit |
| Recipients |
| Date |
2006年06月10日.00:03:35 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
If standard input is redirected from a directory
instead of a regular file, Python crashes quite early
during startup, before running a single line of the
user's script.
I admit that redirecting from a directory is a weird
thing to do, but even so, Python should respond with
something more useful than a segmentation fault. In my
particular case, the ideal behavior would be to not
complain at all unless the Python script actually
attempts to read from stdin.
How to reproduce the problem:
% touch empty.py
% python -V
Python 2.4.1
% python -d -v empty.py
% python -d -v empty.py </
Segmentation fault |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 14:40:29 | admin | link | issue1503780 messages |
| 2007年08月23日 14:40:29 | admin | create |
|