On Thu, Apr 2, 2020 at 5:12 PM Abdur-Rahmaan Janhangeer
<arj.pyt...@gmail.com> wrote:
>
> When dev a package, if you can do:
>
> >>> from package import x
>
> does not mean you can do
>
> >>> import package
> >>> package.x
>
> for requests i was wondering how requests package can have
>
> >>> requests.get
>
> while requests is defined in api.py
>

Did you have a look at __init__.py?

https://github.com/psf/requests/blob/master/requests/__init__.py

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to