[bitc-dev] Implementation of indentation-aware parse

Jonathan S. Shapiro shap at eros-os.com
Thu Feb 26 17:14:18 EST 2009


Does python permit things like:

if x +
  y:
  do_something

That is: can an expression have a newline in it after an operator? How
about after a comma in a parameter list (formal or actual)?

What about:

if x
  + y:
  do_something

Is that allowed?

If it's only allowed after an operator than I mostly know how to make
it work with a lexer kludge.


More information about the bitc-dev mailing list