Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #197543

Re: can you improve this text-only beginner copy program?

From ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups comp.lang.python
Subject Re: can you improve this text-only beginner copy program?
Date 2025-08-27 17:45 +0000
Organization Stefan Ram
Message-ID <copy-20250827184207@ram.dialup.fu-berlin.de> (permalink)
References <87a53kdfpx.fsf@somewhere.edu> <copying-20250827160810@ram.dialup.fu-berlin.de> <87ms7kbt35.fsf@somewhere.edu>

Show all headers | View raw


Ethan Carter <ec1828@somewhere.edu> 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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

can you improve this text-only beginner copy program? Ethan Carter <ec1828@somewhere.edu> - 2025-08-27 11:03 -0300
  Re: can you improve this text-only beginner copy program? ram@zedat.fu-berlin.de (Stefan Ram) - 2025-08-27 15:12 +0000
    Re: can you improve this text-only beginner copy program? Ethan Carter <ec1828@somewhere.edu> - 2025-08-27 13:57 -0300
      Re: can you improve this text-only beginner copy program? ram@zedat.fu-berlin.de (Stefan Ram) - 2025-08-27 17:45 +0000
      Re: can you improve this text-only beginner copy program? Piergiorgio Sartor <piergiorgio.sartor.this.should.not.be.used@nexgo.REMOVETHIS.de> - 2025-08-27 22:21 +0200
      Re: can you improve this text-only beginner copy program? Mark Bourne <nntp.mbourne@spamgourmet.com> - 2025-08-28 21:05 +0100
        Re: can you improve this text-only beginner copy program? (Posting On Python-List Prohibited) Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-28 22:17 +0000
  Re: can you improve this text-only beginner copy program? ram@zedat.fu-berlin.de (Stefan Ram) - 2025-08-27 21:09 +0000
    Re: can you improve this text-only beginner copy program? Mark Bourne <nntp.mbourne@spamgourmet.com> - 2025-08-28 21:15 +0100
      Re: can you improve this text-only beginner copy program? ram@zedat.fu-berlin.de (Stefan Ram) - 2025-08-28 20:50 +0000
  Re: can you improve this text-only beginner copy program? (Posting On Python-List Prohibited) Lawrence D’Oliveiro <ldo@nz.invalid> - 2025-08-28 01:36 +0000

csiph-web