diff options
author | Guido van Rossum <guido@python.org> | 2000-04-10 17:16:12 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-04-10 17:16:12 +0000 |
commit | 2516b39dd35a3e0d815e25ee652cea6c90cc5b28 (patch) | |
tree | 5a1b19588e911510e4515ed08b13704cab962074 /Doc/perl/python.perl | |
parent | b81e70ebdb28246e427249d386518bc03d08c959 (diff) | |
download | cpython-git-2516b39dd35a3e0d815e25ee652cea6c90cc5b28.tar.gz |
Implement suggestion from Lawrence Kesteloot in PR#280, to change the
default list of files from () to None, and explicitly test for None
before defaulting to sys.argv[1:]. This means that if you pass in an
explicit empty list, it will read stdin instead of defaulting to
sys.argv[1:]. This fixes a buglet in the test script (when called
with options but without files, it chokes when it tries to interpret
the options as files).
Lawrence adds: "I suspect that this is a safe change, because I can't
imagine someone actively passing in an empty list when they want
sys.argv used."
I agree.
Diffstat (limited to 'Doc/perl/python.perl')
0 files changed, 0 insertions, 0 deletions