If a syntax error occurs,SyntaxError 構文エラーが起きた場合、SyntaxError - Python
Returns an abstract syntax tree for the Python source code in buf.The function raises SyntaxError if there is an error in the sourcecode.
buf 中の Python ソースコードから得られた抽象構文木 AST を返します。 ソースコード中にエラーがある場合、この関数は SyntaxError を発生させます。 - Python
The filename specified by filename is used to construct the code object and may appear in tracebacks or SyntaxError exception messages. filenameで指定されるファイル名はコードオブジェクトを構築するために使われ、トレースバックあるいはSyntaxError例外メッセージに出てくる可能性があります。 - Python
Normally, the list contains a single string;however, for SyntaxError exceptions, it contains several lines that (when printed) display detailed information about where the syntax error occurred. 通常、リストは一つの文字列を含んでいます。 しかし、SyntaxError例外に対しては、(出力されるときに)構文エラーが起きた場所についての詳細な情報を示す行をいくつか含んでいます。 - Python
It expects a valid Python expression as input; if the input is not syntactically valid, a SyntaxError will be raised.Other exceptions may be raised if there is an error duringevaluation. 式を評価する際にエラーが生じた場合、他の例外も送出されるかもしれません。 - Python
Warning:This function is not safe from user errors!
警告:この関数はユーザのエラーに対して安全ではありません! この関数では、入力は有効な Python の式であると期待しています; 入力が構文的に正しくない場合、SyntaxError が送出されます。 - Python
Copyright 2001-2004 Python Software Foundation.All rights reserved. Copyright 2000 BeOpen.com.All rights reserved. Copyright 1995-2000 Corporation for National Research Initiatives.All rights reserved. Copyright 1991-1995 Stichting Mathematisch Centrum.All rights reserved.