Hacker News new | ask | show | jobs
Why use str constants with setuptools?
1 points by sublee 4972 days ago
When we use setuptools for packaging our Python library, why write like this?

    setup(
        name='mymodule',
        version='0.1',
    )
not this?

    import mymodule
    setup(
        name=mymodule.__name__,
        version=mymodule.__version__,
    )
Please answer.