TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PEP 591 – Adding a final qualifier to typing

2 pointsby lunchladydorisover 5 years ago

1 comment

ktpsnsover 5 years ago
I don&#x27;t like <i>final</i>. If I do, I don&#x27;t do crazy subclassing and monkey-patching for fun but to achieve something in a restricted environment, for instance because I cannot use the latest version of the patched library.<p>Python excels at this kind of code patching and introspection. Even &quot;private&quot; methods can be called or overwritten. That&#x27;s good. Adding @final only makes it harder to deactivate this flag before applying some &quot;runtime patch&quot;.