Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: ram@zedat.fu-berlin.de (Stefan Ram) Newsgroups: comp.lang.python Subject: Re: can you improve this text-only beginner copy program? Date: 27 Aug 2025 15:12:24 GMT Organization: Stefan Ram Lines: 15 Expires: 1 Jun 2026 11:59:58 GMT Message-ID: References: <87a53kdfpx.fsf@somewhere.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de OONiTvvXx/R8VPFQ+vaXhg5h0C3Sa3DexJ96HgLSPyyNrw Cancel-Lock: sha1:ZfDLNWS0VUXUXd5GkkEQmL39jVQ= sha256:gDxHnR3hEzY/gxH6ara+83Hjv1ql11cJ6qVWEUoNfSA= X-Copyright: (C) Copyright 2025 Stefan Ram. All rights reserved. Distribution through any means other than regular usenet channels is forbidden. It is forbidden to publish this article in the Web, to change URIs of this article into links, and to transfer the body without this notice, but quotations of parts in other Usenet posts are allowed. X-No-Archive: Yes Archive: no X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some services to mirror the article in the web. But the article may be kept on a Usenet archive server with only NNTP access. X-No-Html: yes Content-Language: en Xref: csiph.com comp.lang.python:197541 Ethan Carter wrote or quoted: >Can you think of anything I'm missing? The correctness of a program as a solution to an assignment depends on the exact wording of the assignment, so it's a bit difficult to say without seeing it. > """Copies text file named S to text file named D.""" This is not entirely clear, since case is significant in Python ("S" is not the same as "s"), and it is ambiguous whether it refers to a file actually named "S" or to a file whose name is provided as a str object bound to the name "s" in the function's source code.