Comment

Comment by NoboruWataya

I suspect people will use these comments to share their wishlist of Python features, so let me add that I really wish Python had a safe navigation operator, for when you are dealing with nested objects that could be None. I have been trying to parse a lot of XML and JSON in Python lately and a feature like that could really help reduce boilerplate checks.

https://en.wikipedia.org/wiki/Safe_navigation_operator

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton