You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Create a file named ast.py
x = requests.get('https://w3schools.com')
print(x.status_code)
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.
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
The text was updated successfully, but these errors were encountered: