What's the correct way to use 'import requests as' in Python? or Why do some scripts use 'import requ

18 Replies, 1811 Views

Aliasing is like nicknaming your dog—you do it to make life easier, but the dog doesn’t care. *import requests as req* won’t change how the module works.

That said, if you’re working with other devs, avoid weird aliases (*import requests as pizza* = chaos).

For learning, I’d say no alias first, then tweak later if needed.

Messages In This Thread



Users browsing this thread: 1 Guest(s)