Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #197789

Re: Hack or beauty?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From Lawrence D’Oliveiro <ldo@nz.invalid>
Newsgroups comp.lang.python
Subject Re: Hack or beauty?
Date Thu, 14 May 2026 01:06:51 -0000 (UTC)
Organization A noiseless patient Spider
Lines 11
Message-ID <10u377b$33p49$2@dont-email.me> (permalink)
References <10u2hla$2tnlr$1@dont-email.me> <if-20260513203200@ram.dialup.fu-berlin.de> <loop-20260513220348@ram.dialup.fu-berlin.de>
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Date Thu, 14 May 2026 01:06:52 +0000 (UTC)
Injection-Info dont-email.me; logging-data="3269769"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Y7iLYI0JLJQDi1LYxAZcw"; posting-host="72efe057abf3916b03ca6ee4bf970c26"
User-Agent Pan/0.165 (Kostiantynivka)
Cancel-Lock sha1:M/xnjWDTwgM57KTAaIoG+QMBf2Q= sha256:0WxVIV/XImtDviR1cPiWEBaOJ+/VRtOmWypTd2jdqUE= sha1:DAh5gX6AodYylROn5WYWdihsACA=
Xref csiph.com comp.lang.python:197789

Show key headers only | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Hack or beauty? "Michael F. Stemper" <michael.stemper@gmail.com> - 2026-05-13 13:58 -0500
  Re: Hack or beauty? ram@zedat.fu-berlin.de (Stefan Ram) - 2026-05-13 19:33 +0000
    Re: Hack or beauty? ram@zedat.fu-berlin.de (Stefan Ram) - 2026-05-13 21:04 +0000
      Re: Hack or beauty? Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-05-14 01:06 +0000
    Re: Hack or beauty? "Michael F. Stemper" <michael.stemper@gmail.com> - 2026-05-14 13:25 -0500
  Re: Hack or beauty? Mark Bourne <nntp.mbourne@spamgourmet.com> - 2026-05-13 21:52 +0100
    Re: Hack or beauty? "Michael F. Stemper" <michael.stemper@gmail.com> - 2026-05-14 08:06 -0500
  Re: Hack or beauty? Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-05-13 21:37 +0000

csiph-web