[Python-3000] Best Practices essays

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Mar 24 11:13:04 CET 2006


Adam DePrince wrote:

> Now, as for your example m * [ n * [0]], I would exclude it from a best
> practices document.

I'm assuming he meant the best-practices document would be
documenting how to do that *right*!

BTW, something I had in mind for the list comprehension
syntax back when it was being developed, but didn't
get around to pursuing, was letting you say

   [0 times n]

or for multidimensional arrays

   [[0 times m] times n]

etc. Not sure if the use cases are frequent enough to
justify it, though.

Greg


More information about the Python-3000 mailing list