homepage

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 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:29adminlinkissue1503780 messages
2007年08月23日 14:40:29admincreate

AltStyle によって変換されたページ (->オリジナル) /