AndreaCrotti / yasnippet-snippets

a collection of yasnippet snippets for many languages
GNU General Public License v3.0
1.16k stars 461 forks source link

python-mode: Adding missing __next__ special method. #501

Closed JulienPalard closed 4 months ago

JulienPalard commented 4 months ago

Looks like there's not a lot of missing methods:

$ grep '^\.\. method:: [a-z]*\.__' ~/src/python/cpython/Doc/reference/datamodel.rst | cut -d. -f4 | cut -d '(' -f1| while read -r dunder; do if ! [[ -f "snippets/python-mode/$dunder" ]] ; then echo "Missing $dunder"; fi; done
Missing __mro_entries__
Missing __buffer__
Missing __release_buffer__

but __next__ was not spotted by this grep... usage will tell us more hopefully :)