homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients belopolsky, berker.peksag, ethan.furman, mark.dickinson, pitrou, scoder, serhiy.storchaka, skrah, terry.reedy
Date 2015年04月27日.19:55:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1430164547.91.0.604146912372.issue24053@psf.upfronthosting.co.za>
In-reply-to
Content
> if you use them, your code won't work with long time
> supported CPython versions like 3.4 for the next decade or so.
This would be a generic argument against any new feature. I don't think it is very compelling in this case. For people who develop on a latest version. these constants will pop up in sys.<tab> autocompletion and they will likely use them. If they need to support pre-3.5 versions,
try:
 from sys import exit, EXIT_FAILURE
except ImportError:
 from sys import exit
 EXIT_FAILURE = 1
is not a hard work-around.
You would say, why not just use EXIT_FAILURE = 1 to begin with? To avoid Bob using EXIT_FAILURE = -1, Alice using EX_FAIL = 1 and Karl
giving up and using exit(1) in perpetuity.
History
Date User Action Args
2015年04月27日 19:55:47belopolskysetrecipients: + belopolsky, terry.reedy, mark.dickinson, pitrou, scoder, skrah, ethan.furman, berker.peksag, serhiy.storchaka
2015年04月27日 19:55:47belopolskysetmessageid: <1430164547.91.0.604146912372.issue24053@psf.upfronthosting.co.za>
2015年04月27日 19:55:47belopolskylinkissue24053 messages
2015年04月27日 19:55:47belopolskycreate

AltStyle によって変換されたページ (->オリジナル) /