Re: Hack or beauty?

Lawrence D’Oliveiro <[email protected]> Thu, 14 May 2026 01:06:51 -0000 (UTC)
Newsgroups comp.lang.python
Organization A noiseless patient Spider
Message-ID <[email protected]>
On 13 May 2026 21:04:59 GMT, Stefan Ram wrote:

>   Just today, I wrote something similar:
>
> if mode == "file":
>     storage_context = FileStorage()
> elif mode == "database":
>     storage_context = DatabaseStorage( server )

FYI, the “match” statement is now a standard part of all supported
versions of Python.