Skip to content

Update readwrite docstrings for the path parameter - #7835

Merged
rossbar merged 2 commits into
networkx:mainfrom
eriknw:readwrite_path_docs
Feb 8, 2025
Merged

rossbar merged 2 commits into
networkx:mainfrom
eriknw:readwrite_path_docs

Conversation

@eriknw

@eriknw eriknw commented Feb 6, 2025

Copy link
Copy Markdown
Contributor

Some read functions said "write", and some didn't describe the ability to compress or decompress. Also, I prefer "decompressed" over "uncompressed".

Some read functions said "write", and some didn't describe the ability to compress or decompress.
Also, I prefer "decompressed" over "uncompressed".

@dschult dschult left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Adding the one-line description about how it handles compressed files is really helpful -- otherwise auto-(de)compression is a hidden feature.
And, of course, definitely good to correct the read/write as needed.
I agree with you about "decompressed". "uncompressed" is an adjective describing a file. "decompressed" is a verb describing what is going to happen to the file.

@rossbar rossbar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @eriknw !

@rossbar
rossbar merged commit 6d7aeb6 into networkx:main Feb 8, 2025
@jarrodmillman jarrodmillman added this to the 3.5 milestone May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants