Skip to content

Conversation

@srittau
Copy link
Contributor

@srittau srittau commented Aug 15, 2023

sendfile and statvfs are only defined when they are defined in the os module, i.e. not on win32. But they were added to __all__ unconditionally.

`sendfile` and `statvfs` are only defined when they are defined
in the `os` module, i.e. not on win32. But they were added to
`__all__` unconditionally.
@srittau
Copy link
Contributor Author

srittau commented Aug 15, 2023

For reference, I noticed this when updating the typeshed stubs, cf. python/typeshed#10584.

@Tinche
Copy link
Owner

Tinche commented Aug 15, 2023

Cool, thanks. Can you add a small history entry too?

@Tinche
Copy link
Owner

Tinche commented Aug 15, 2023

Thanks!

@Tinche Tinche merged commit 1456aa9 into Tinche:main Aug 15, 2023
@srittau srittau deleted the os_all branch August 15, 2023 17:07
@srittau
Copy link
Contributor Author

srittau commented Aug 15, 2023

Thank you for the quick review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants