
Jan. 12, 2021
10:04 p.m.
Paul Sokolovsky wrote:
Ok, let's take "module attribute" as an example. Why do you think there's anything wrong with this code: ====== import config from .types import * if config.SUPPORT_BIGINT: var: bigint = 1 else: var: int64 = 1
"Wrong" is too strong, but it would be better as mybigint = bigint if config.SUPPORT_BIGINT else int64 ... var:mybigint = 1 so asking people to rewrite it that way over the course of a major release is probably an acceptable price. -jJ