python - Regarding multiline/docstring comment -


i going through part of multi line comment shown below:

def __init__(self):     """     connect nexus 7     rfcomm port: 4     nexus 7 mac address: 08:60:6e:a5:82:c8     """ 

if not mistaken multi line comment reason python uses multi-line comment establish connection. makes me curious why happens?

you're right, it's comment. it's docstring noted @nightshadequeen.

docstrings functions/etc. used provide contextual hints in ides, in visual studio intellisense.

comments not provide functionality or anything, helpful programmers using or reading code @ later date.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -