Issue
Are there any other uses for Python's "from" keyword aside from import
statements?
Solution
No and yes.
According to the official Python 2.7.2 grammar, the only occurrence of the word from
is in the clause import_from
, so no.
In the Python 3.1.3 grammar a new clause
raise_stmt: 'raise' [test ['from' test]]
appears, so yes.
Answered By - Ray Toal
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.