Bruno Desthuilliers wrote:
Actuellement, pour rechercher les attributs d'un objet dans l'interpréteur interactif, je fais quelque chose comme ca :
filter(lambda s:s.find('find') != -1, dir(''))
[n for n in dir(str) if 'find' in n.lower()]
Ah, l'opérateur in, je l'oublie toujours celui là !
Des idées pour améliorer mon quotidien de codeur Python ?
http://docs.python.org/lib/module-rlcompleter.html
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496812
Merci beaucoup Bruno, c'est ajouté à mon PYTHONSTARTUP !