Bug report
Bug description:
Working my way through some documentation nits for the csv module, I noticed this method definition:
def _validate(self):
try:
_Dialect(self)
except TypeError as e:
# We do this for compatibility with py2.3
raise Error(str(e))
Why should we still try and maintain compatibility with Python 2.3 at this late date? Shouldn't we just let TypeError bubble up to the user?
CPython versions tested on:
3.13
Operating systems tested on:
macOS
Linked PRs