4 ms·
I switched to Python 3 this year and I haven't looked back -there are some niggles, but overall its a great improvement. A great feature that's not really talk
by orf 12y ago
I switched to Python 3 this year and I haven't looked back -there are some niggles, but overall its a great improvement.
A great feature that's not really talked about is the __prepare__ function in metaclasses: you can supply a custom type that stores all class members. You could whip up multiple-dispatch using this (it lets you handle classes with duplicate property names) in conjunction with signature annotations, which I think is pretty neat.
- Sami_Lehtinen 12y agoThis has been one of the reasons why I'm not currently doing anything for Google App Engine, they still lack Python 3 support. It feels awkward to code in Python 2 after Python 3.