Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

I rather like the discussion in [How do I write a function with output 
parameters].  Some variant of each of those solutions arise in code reviews 
over and over again.  Rarely do the occur in simplistic examples, but they do 
occur.  The simple examples given are the easiest way to learn about the 
anti-patterns.

In the section [How do I use strings to call functions/methods?], let's 
eliminate the eval() variant which isn't really helpful.  The locals() 
technique does occur in practice and is worth showing.

In the section [How can I sort one list by values from another list], I concur 
that we can completely eliminate "alternative" and its explanatory text.

----------
nosy: +rhettinger

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40341>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to