Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS related file operations (copy, move, delete, rename...) should be placed into one module #73410

Closed
georgefischhofhu mannequin opened this issue Jan 10, 2017 · 3 comments
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@georgefischhofhu
Copy link
Mannequin

georgefischhofhu mannequin commented Jan 10, 2017

BPO 29224
Nosy @vstinner, @george@fischhof.hu

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2017-01-10.14:50:54.246>
created_at = <Date 2017-01-10.14:36:47.104>
labels = ['invalid', 'type-feature', 'library']
title = 'OS related file operations (copy, move, delete, rename...) should be placed into one module'
updated_at = <Date 2017-01-10.15:05:25.709>
user = 'https://github.com/georgefischhofhu'

bugs.python.org fields:

activity = <Date 2017-01-10.15:05:25.709>
actor = 'eryksun'
assignee = 'none'
closed = True
closed_date = <Date 2017-01-10.14:50:54.246>
closer = 'vstinner'
components = ['Library (Lib)']
creation = <Date 2017-01-10.14:36:47.104>
creator = 'georgefischhof'
dependencies = []
files = []
hgrepos = []
issue_num = 29224
keywords = []
message_count = 3.0
messages = ['285115', '285116', '285120']
nosy_count = 2.0
nosy_names = ['vstinner', 'georgefischhof']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue29224'
versions = []

@georgefischhofhu
Copy link
Mannequin Author

georgefischhofhu mannequin commented Jan 10, 2017

Hi There,

OS related file operations (copy, move, delete, rename...) should be placed into one module...
As it quite confusing that they are in two moduls (os and shutil).

I have read that one is higher level than other, but actually to use them I have to think which function can be found in which module.

It is confuse for beginners, and makes the usage more complex instead of make it more simple (as Zen of Python says ;-) )

An alias could good, not to cause incompatibility.

Best regards,
George

@georgefischhofhu georgefischhofhu mannequin added stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels Jan 10, 2017
@vstinner
Copy link
Member

You can design your own "oshutil" module which combines both modules.

They are technical reasons to have two separated modules.

@vstinner
Copy link
Member

As Jim Fasarakis-Hilliard wrote in msg285117, the *bug* tracker is not the best place to propose changes, so I close this issue.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant