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
py_compile.compile() does not specify if it can accept a file like object or a bytes like object with the file's data. #71940
Comments
py_compile.compile() does not specify if it can accept a file like object or a bytes like object with the file's data. Although I need something that can allow me to import byte like objects if the object contains valid python script data. Long story short I need a way to import the data returned from the dec_script() function in this: https://bpaste.net/show/694c231c566c |
It says "The source code is loaded from the file name *file*". That seems unambiguous enough to me. |
Maybe in the sentence, name should be named? |
yeah, true and to specify that it cannot be anything but a file. |
Do you care to propose an improved wording? |
Ok, file uploaded. |
I don't see how this is an improvement. Before it clearly said that the first argument must be file name, now it's an oddly confusing statement. Also, typically we don't list all the possibilities of what the arguments must not be. |
New changeset b1e4c8a3e786 by R David Murray in branch '2.7': New changeset c1cc1f616285 by R David Murray in branch '3.5': New changeset dda25c37d02b by R David Murray in branch 'default': |
Agreed, the current wording is correct and complete, except for the name vs named bit. I've fixed that. |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: