TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
Python 3.9.0
15 points
by
s3cur3
over 4 years ago
2 comments
s3cur3
over 4 years ago
I'm excited for the dict merge operator.<p><pre><code> >>> d = {'spam': 1, 'eggs': 2, 'cheese': 3} >>> e = {'cheese': 'cheddar', 'aardvark': 'Ethel'} >>> d | e {'spam': 1, 'eggs': 2, 'cheese': 'cheddar', 'aardvark': 'Ethel'} >>> e | d {'aardvark': 'Ethel', 'spam': 1, 'eggs': 2, 'cheese': 3}</code></pre>
chrome_defender
over 4 years ago
Awesome: when Python is initialized multiple times in the same process, it does not leak memory anymore