Open nannanav opened 6 years ago
This is also a problem even when you have the recipe ID, particularly with the Python directory being truncated at 1k entries. In particular, the Python 3 docs on random
still references the legacy 576707 recipe page. It appears that GitHub doesn't index directory or file names since a repository search for 575707 returns no results. However, searching for the magic number 43487
or the full title manages to find the desired code.
The end target: https://github.com/ActiveState/code/tree/master/recipes/Python/576707_Long_period_random_number
However, 65207 is not coming (https://github.com/ActiveState/code/tree/master/recipes/Python/65207_Constants_in_Python),
Neither it's "upgrade": https://github.com/ActiveState/code/blob/master/recipes/Python/414140_Constant_types_in_Python/recipe-414140.py
or the fix mentioned in https://gist.github.com/wolfg1969/0b1e53c7862489fef92e (https://stackoverflow.com/questions/5365562/why-is-the-value-of-name-changing-after-assignment-to-sys-modules-name)
Say I want to have enums in my (Python) project and I am searching through the recipes hoping to find something that fits my description. It would be easier for me to search if there was a file depicting what each recipe does (<100 words for each recipe) with 'tags'. Since there are over 4k recipes in Python and many recipes do not have good (easy to understand) names and I have to go through their readme to find what they do. Of course, I can search for recipes with name containing Enum in the Python folder but that may not give the best possible results at all times.