Closed mhenrichsen closed 4 months ago
ast
is a module in the standard library. Shadowing commonly used modules will lead to breakages in most Python libraries. This isn't something we can address in Requests, this is a fundamental of the language.
@nateprewitt thanks for letting me know. It was driving me crazy.
When executing a file named ast.py which .get(url) it fails with
AttributeError: partially initialized module 'requests' has no attribute 'get' (most likely due to a circular import)
Expected Result
To fetch the contents.
System Information