[Python-ideas] Welcome to the "Python-ideas" mailing list

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 15 20:32:00 EDT 2016

Richard Prosser wrote:
> For example:
> github_response = requests.get('https://api.github.com/user', auth=('user', 'pass')) 
>  # Derived from http://docs.python-requests.org/en/master.
> The above request returns a |Response| 
> <http://docs.python-requests.org/en/master/api/#requests.Response> object 
> and so the variable has 'response' in its name.

Conventions like that can be useful, but only when they clarify
the code, which they don't always do. Sometimes they just make
it needlessly verbose and hard to read. So I would not like to
see any formal use made of such a convention.


More information about the Python-ideas mailing list