How Does requests.get Work?
Abdur-Rahmaan Janhangeer
arj.python at gmail.com
Thu Apr 2 02:11:05 EDT 2020
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
Kind Regards,
Abdur-Rahmaan Janhangeer
https://www.compileralchemy.com
https://www.github.com/Abdur-RahmaanJ
Mauritius
sent from gmail client on Android, that's why the signature is so ugly.
On Thu, 2 Apr 2020, 01:33 Juergen Brendel, <juergen at brendel.com> wrote:
>
> Hello!
>
> Can you elaborate on what you mean by "use directly"?
>
> Juergen
>
>
> On Thu, 2020-04-02 at 01:12 +0400, Abdur-Rahmaan Janhangeer wrote:
> > Greetings list,
> >
> > I was viewing requests https://github.com/psf/requests
> >
> > I know we can do `requests.get`
> >
> > Found `get` defined in api.py
> >
> > I would appreciate an explanation as to how to configure the package
> > so
> > that we can use get directly. Thanks.
> >
> > Kind Regards,
> >
> > Abdur-Rahmaan Janhangeer
> > compileralchemy.com <https://www.compileralchemy.com> | github
> > <https://github.com/Abdur-rahmaanJ/>
> > Mauritius
>
>
More information about the Python-list
mailing list