Are there any other uses for Python’s “from” keyword aside from import statements?
Are there any other uses for Python’s from keyword aside from import statements?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No and yes.
According to the official Python 2.7.2 grammar, the only occurrence of the word
fromis in the clauseimport_from, so no.In the Python 3.1.3 grammar a new clause
appears, so yes.