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 17:45:00 GMT Organization: Stefan Ram Lines: 30 Expires: 1 Jun 2026 11:59:58 GMT Message-ID: References: <87a53kdfpx.fsf@somewhere.edu> <87ms7kbt35.fsf@somewhere.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de 4qaborcLV7y0ibi2uDjD2ApJxaNdiPsItai1Mo4urBthOL Cancel-Lock: sha1:sgdxzv1/OqhY+fuo/AXFJfVBZGY= sha256:4G2I3Hkuq7k6ZTD2z9+rsNzpqIJwtEb3YZ2+2PlGp60= 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-US Xref: csiph.com comp.lang.python:197543 Ethan Carter wrote or quoted: >You're right. There's no written statement. The exercise was suggested >by the teacher while in class. It was something like ``write a program >that copies text files by getting source and destination via the >command-line.'' Well then, I'd think about using "shutil", e.g., "shutil.copy". Check it out in "The Python Library Reference"; it's 11.10.1 in release 3.13.0a0. >But, yeah, if the Python community doesn't do that, it's all what you >say. Community or no community, in Python, you can have: def f( s, S ): return 2*s+S . Should the docs then say, "returns 2*S+S"? >PS. Is it just me or there's just us in this used-to-be-very-active >group? Thanks for being my teacher here. Have a good day! Thanks, you too! On one hand, many people seem to prefer websites for discussions nowadays. On the other hand, if I had not responded, probably someone else would have.