-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enhance compatibility of os.pathconf_names #4494
Comments
Here is the approach: I'd want the code to iterate through Enum creating the data and create the string and the integer value to build the dictionary. I initially looked at a proc_macro to do this, but then saw that pathconf uses a create strum_macro::EnumString to the variatnt name as string and there is another option EnumVariantNames which already support iterating through the different variants as str references (&&str). And the code will look like this (I followed the os.envion dictionary as an example):
|
#4508 implemented linux version of this function. |
I will take this issue |
Env: macOS11.5.2( Big Sur ), Intel CPU
|
On macOS, CPython result:
RustPython result:
|
This comment is useful to understand missing variables. #4571 (comment) |
Placeholder to track the implmentation of os.pathconf_names -- additional detail to follow
(related to Extend the os module #1175)
The text was updated successfully, but these errors were encountered: