[Python-ideas] Possible PEP regarding the use of the continue keyword in try/except blocks
barry at barrys-emacs.org
Mon Jan 7 15:38:28 EST 2019
> On 7 Jan 2019, at 03:06, Richard Damon <Richard at damon-family.org> wrote:
> For something like reading options from a config file, I would use a
> call that specifies the key and a value to use if the key isn't present,
> and inside that function I might use a try to handle any exception
> caused when processing the key, and it could return the default.
Most config file APIs I have used have has_section and has_key type functions that remove the need to catch exceptions.
What config file API are you using htat is missing this?
More information about the Python-ideas