Re: Hack or beauty?
[email protected] (Stefan Ram) 13 May 2026 21:04:59 GMT
| Newsgroups | comp.lang.python |
|---|---|
| Organization | Stefan Ram |
| Message-ID | <[email protected]> |
[email protected] (Stefan Ram) wrote or quoted: >, is fine, but I think what would be a bit clearer might be, >variables = angles if options.angle else comps >for variable in variables: >. Just today, I wrote something similar: if mode == "file": storage_context = FileStorage() elif mode == "database": storage_context = DatabaseStorage( server ) with storage_context as storage: . . . .