Author gvanrossum
Recipients
Date 2007-04-09.23:05:22
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Example:

# x.py
class C:
  @property
  def p(self) -> int:
    return 0

$ ./python -E x.py
python: ../Python/ast.c:724: ast_for_arguments: Assertion `((n)->n_type) == 263 || ((n)->n_type) == 267' failed.
Aborted
$

Removing "@property" or "-> int" from the example avoids the problem.  Adding argument annotations inside the argument list doesn't trigger it.
History
Date User Action Args
2007-08-23 14:53:00adminlinkissue1697248 messages
2007-08-23 14:53:00admincreate