projg2 / python-exec

Wrapper for multi-implementation install of Python scripts and executables
BSD 2-Clause "Simplified" License
13 stars 6 forks source link

Determine implementations at runtime #8

Closed luke-jr closed 2 years ago

mgorny commented 2 years ago

The project deliberately doesn't use heap to be more robust.

luke-jr commented 2 years ago

Would this be accepted if I had it use a static array instead? (Downside of course is a fixed limit on how many it can handle)

mgorny commented 2 years ago

No, I don't think it's a good idea. While arbitrary limit is not that bad by itself, it's a performance hit nevertheless compared to using a hardcoded implementation list, and python-exec is meant to be as thin as possible.