In the twilio python library, we have this feature to create messages:
from twilio.rest import TwilioRestClient
and we can write:
msg = TwilioRestClient.messages.create(body=myMsgString, from_=myNumber, to=yourNumber)
My question is simple: why does an underscore follow the from
parameter? Or why is that the parameter name? Is it because from
is otherwise a keyword in Python and we differentiate variables from keywords with an underscore suffix? Is that actually necessary in this case?