6 ms·
Python 3.11.0 Released
- 6gvONxR4sf7o 4y agoI've been really looking forward to the variadic generics. ML and data code is full of types like "FloatTensor" and "DataFrame" which really don't narrow things down. Hopefully this will make its way into the ecosystem asap.
- mdaniel 4y agoFor anyone who finds this thread later, it seems that https://news.ycombinator.com/item?id=33327896 https://news.ycombinator.com/item?id=33327896 overtook it (216 comments as of right now)
- deck4rd 4y agoNice to finally have TOML support in the stdlib, especially considering pip's dependence on it.
- faizshah 4y agoThere’s a nice article with some code examples here of the new features: https://realpython.com/python311-new-features https://realpython.com/python311-new-features
- stevesimmons 4y agoNow if only Azure Functions would support Python versions newer than 3.9! Come on Microsoft!
- destroy-2A 4y agoSame on AWS iirc, why would they? the speed up will loose them money, whoever implements that is not getting a promotion to L7!
- pamelafox 4y agoHere's a public comment from the Azure Functions team about when they expect 3.10: https://github.com/Azure/azure-functions-python-worker/issues/915#issuecomment-1265916629 https://github.com/Azure/azure-functions-python-worker/issue... (They're hoping for 3.11 support to be available not long after, thanks to a better release system coming soon)
- nomel 4y ago> and it will experience repulsive gravity that will push it back to the original region, but then it will experience the pull from the singularity again and will repeat this process forever. If the observer had a charge, wouldn't this create radio waves, bleeding off energy?
- kcexn 4y agoHasn't radiation from black holes been observed? It's called Hawking radiation I think.
- westurner 4y ago"What’s New In Python 3.11" https://docs.python.org/3.11/whatsnew/3.11.html https://docs.python.org/3.11/whatsnew/3.11.html
- mkaic 4y agoThose new error messages look divine compared to what we've had up until now! They seem like they might have been inspired by Rust's error message format to me, but I'm not sure. I'm just happy that I won't have to split chained operations onto individual lines anymore just to have any ability to debug them with the regular old stacktrace errors.
- deleted 4y ago[deleted]
- feet 4y agoI thought not all features were available in 3.10 yet
- kkirsche 4y agoI believe you may be thinking about a different language? Python only releases a feature release yearly. Features which don’t make it into a release like 3.9, 3.10, and 3.11 are usually agreed upon before the feature freeze window to avoid specifically this.
- cercatrova 4y agoLooking forward to the 1.22x speedup! Been using Nim for a lot of those types of use cases personally.
- mdaniel 4y agoI sure do hope Arbitrary Literal String Type (https://peps.python.org/pep-0675/ https://peps.python.org/pep-0675/) solves the problem they think it does and doesn't drive every typechecker in the world stark-raving mad literal_name: LiteralString expect_literal_string(f"hello {literal_name}") # OK because it is composed from literal strings. Maybe I'm being too cynical and this is laying the groundwork for py4000 where they will type check at runtime
- pkrumins 4y agoI was looking forward this release. The performance improvements in this release are insane! I just created a ticket for my team to upgrade all our production Pythons to this release.
- adamckay 4y agoBrave going onto a .0 release ;)
- pkrumins 4y agoEngineers just postponed the upgrade because of this very reason. I agree. We’ll wait for .1 or .2.
- pknerd 4y agoI am curious what kind of work are you guys doing that you need a sudden upgrade? Some DS/ML Work?
- pkrumins 4y agoThis is for http://www.OnlineTools.com http://www.OnlineTools.com where we do all kinds of image and data conversions.
- qwertox 4y agoThis release sent me down a rabbit hole (it started with the sidenote on physics), which made me wonder what software https://discuss.python.org https://discuss.python.org is running on. I couldn't find a link to GitHub or elsewhere or any project page which could enable me to host such a discussion board on a server. Does it have a name?
- Spiritus 4y agoI'm fairly sure it's Discourse[1]. They switched to it quite recently. [1] https://www.discourse.org https://www.discourse.org
- ciupicri 4y agoFrom the HTML source code: <meta name="generator" content="Discourse 2.9.0.beta10 - https://github.com/discourse/discourse version 0ffd40867466b0f6b6fbcbc08e01d1a62633d915">