MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/ntipjq/pep_661_sentinel_values/h0shonc/
r/Python • u/genericlemon24 • Jun 06 '21
109 comments sorted by
View all comments
Show parent comment
4
Did you look at the motivations section at https://www.python.org/dev/peps/pep-0661/#motivation?
seems theres a lack of consensus, so this is a proposal to move forward with implementation consistency or leave alone.
1 u/frostbaka Jun 06 '21 Yep, I checked this one out. But for me sentinels are so rare and private(not exposed) feature which rarely causes problems. 4 u/lifeeraser Jun 06 '21 It's easy to believe that a feature you never use is "rare". For example, I rarely use Python for data processing, and I have no need for the matrix multiplication operator (@). Yet there are people who clearly need it and Python serves their needs. 2 u/daredevil82 Jun 06 '21 I don't use type annotations that much, and seems like you may not either, based on the feedback on where this would be most useful? 2 u/frostbaka Jun 06 '21 We use type annotations extensively but sentinels are extremely rare case in our code base.
1
Yep, I checked this one out. But for me sentinels are so rare and private(not exposed) feature which rarely causes problems.
4 u/lifeeraser Jun 06 '21 It's easy to believe that a feature you never use is "rare". For example, I rarely use Python for data processing, and I have no need for the matrix multiplication operator (@). Yet there are people who clearly need it and Python serves their needs. 2 u/daredevil82 Jun 06 '21 I don't use type annotations that much, and seems like you may not either, based on the feedback on where this would be most useful? 2 u/frostbaka Jun 06 '21 We use type annotations extensively but sentinels are extremely rare case in our code base.
It's easy to believe that a feature you never use is "rare". For example, I rarely use Python for data processing, and I have no need for the matrix multiplication operator (@). Yet there are people who clearly need it and Python serves their needs.
@
2
I don't use type annotations that much, and seems like you may not either, based on the feedback on where this would be most useful?
2 u/frostbaka Jun 06 '21 We use type annotations extensively but sentinels are extremely rare case in our code base.
We use type annotations extensively but sentinels are extremely rare case in our code base.
View all comments
Show parent comment
4
u/daredevil82 Jun 06 '21
Did you look at the motivations section at https://www.python.org/dev/peps/pep-0661/#motivation?
seems theres a lack of consensus, so this is a proposal to move forward with implementation consistency or leave alone.