Pull requests

#239 Merged
Repository
techtonik techtonik
Branch
default
Repository
pypy pypy
Branch
default

code-guide: Use `as` in exception handling code. Fix

Author
  1. anatoly techtonik
Reviewers
Description

I wonder if the old style should be eventually deprecated and give warnings?

Comments (5)

  1. Armin Rigo

    I don't think there is any good reason for this. If the reason is only that you cannot run Sphynx in Python 3, when the rest of the project clearly needs Python 2 anyway, then this is not a good reason imho.

  2. anatoly techtonik author

    The primary reason is that the current syntax is a legacy wart, and if rpython can catch multiple exceptions it will become a pain in future, so it is better to deprecate bad practices ASAP.