On 6/21/2010 1:58 PM, Stephen J. Turnbull wrote:
As for "Think Carefully About It Every Time", that is required only in Porting Programs That Mix Operation On Bytes With Operation On Str.
The 2.x anti-pattern
If you write programs from scratch, however, the decode-process-encode paradigm quickly becomes second nature.
Except in this particular arena, it already should be to anyone reading this list. Decorate-sort-undecorate is another example of the same idea. Transform-compute-untransform is the basis of NP-complete theory. Frequency domain processing sandwiched between forward and reverse Fourier transforms is a third example. And so on.
-- Terry Jan Reedy _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com