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
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/FGZ4YK63MIZ6XVLQ4OMVJU7HUJPG73CD/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to