r/Python • • Jun 06 '21

News PEP 661 -- Sentinel Values

https://www.python.org/dev/peps/pep-0661/
219 Upvotes

109 comments sorted by

View all comments

Show parent comment

20

u/travelinzac Jun 06 '21

Unpopular opinion: stop lingering on ancient versions of stuff. Bump your deps and stay current.

6

u/frostbaka Jun 06 '21

I maintain a project with 50+ dependencies and maintaining latest version of python requires updating all of them to prevent breaks due to old language features becoming deprecated. Right now we are at python 3.9.1, but this requires alot of effort and unit testing to keep up.

Also you have to replace/fork deps that are no longer maintained.

2

u/zeebrow Jun 06 '21

I'm actually content with using 3.6.8. Makes it easy to justify to security when it's available in pretty much every distro's base repo.

2

u/frostbaka Jun 06 '21

I am locked in a forever chase for execution speed as python processes make up more than 60% of our resources.

Also shiny new features.

2

u/frostbaka Jun 06 '21

Also unpopular opinion: improving what already is a great language is reasonably hard, adding new features is easy. I welcome contributions like better traceback or speed improvements, but stuff like this gives me worries. You can refactor stdlib to be consistent and introduce sentinels in a separate package.