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.

Python 3.9.0

15 pointsby s3cur3over 4 years ago

2 comments

s3cur3over 4 years ago
I&#x27;m excited for the dict merge operator.<p><pre><code> &gt;&gt;&gt; d = {&#x27;spam&#x27;: 1, &#x27;eggs&#x27;: 2, &#x27;cheese&#x27;: 3} &gt;&gt;&gt; e = {&#x27;cheese&#x27;: &#x27;cheddar&#x27;, &#x27;aardvark&#x27;: &#x27;Ethel&#x27;} &gt;&gt;&gt; d | e {&#x27;spam&#x27;: 1, &#x27;eggs&#x27;: 2, &#x27;cheese&#x27;: &#x27;cheddar&#x27;, &#x27;aardvark&#x27;: &#x27;Ethel&#x27;} &gt;&gt;&gt; e | d {&#x27;aardvark&#x27;: &#x27;Ethel&#x27;, &#x27;spam&#x27;: 1, &#x27;eggs&#x27;: 2, &#x27;cheese&#x27;: 3}</code></pre>
chrome_defenderover 4 years ago
Awesome: when Python is initialized multiple times in the same process, it does not leak memory anymore