Navigation
Recherche
|
Reviving None-aware operators for Python
vendredi 17 janvier 2025, 15:53 , par LWN.net
The idea of adding None-aware operators to Python has sprung up once
again. These would make traversing structures with None values in them easier, by short-circuiting lookups when a None is encountered. Almost exactly a year ago, LWN covered the previous attempt to bring the operators to Python, but there have been periodic discussions stretching back to 2015 and possibly before. This time Noah Kim has taken up the cause. After some debate, he eventually settled on redrafting the existing PEP to have a more limited scope, which might finally see it move past the cycle of debate, resurrection, and abandonment that it has been stuck in for most of the last decade.
https://lwn.net/Articles/1004893/
Voir aussi |
56 sources (32 en français)
Date Actuelle
sam. 18 janv. - 00:40 CET
|