parameters: (src, dst, *, follow_symlinks=True)
return_statement: return dst
docstring: Copy data and mode bits ("cp src dst"). Return the file's destination.
  
      The destination may be a directory.
  
      If follow_symlinks is false, symlinks won't be followed. This
      resembles GNU's "cp -P src dst".
  
      If source and destination are the same file, a SameFileError will be
      raised.
docstring_summary: Copy data and mode bits ("cp src dst"). Return the file's destination.
docstring_tokens: Copy data and mode bits ( cp src dst ) . Return the file s destination .
function: def copy(src, dst, *, follow_symlinks=True):
      """Copy data and mode bits ("cp src dst"). Return the file's destination.
  
      The destination may be a directory.
  
      If follow_symlinks is false, symlinks won't be followed. This
      resembles GNU's "cp -P src dst".
  
      If source and destination are the same file, a SameFileError will be
      raised.
  
      """
      if os.path.isdir(dst):
          dst = os.path.join(dst, os.path.basename(src))
      copyfile(src, dst, follow_symlinks=follow_symlinks)
      copymode(src, dst, follow_symlinks=follow_symlinks)
      return dst
function_tokens: def copy ( src , dst , * , follow_symlinks = True ) : if os . path . isdir ( dst ) : dst = os . path . join ( dst , os . path . basename ( src ) ) copyfile ( src , dst , follow_symlinks = follow_symlinks ) copymode ( src , dst , follow_symlinks = follow_symlinks ) return dst