Hygenic Macros

David Pokorny dbpokorny at gmail.com
Tue Oct 18 01:23:43 EDT 2005


Hi,

Just wondering if anyone has considered macros for Python. I have one 
good use case. In "R", the statistical programming language, you can 
multiply matrices with A %*% B (A*B corresponds to pointwise 
multiplication). In Python, I have to type

import Numeric
matrixmultiply(A,B)

which makes my code almost unreadable.

Thanks,
David



More information about the Python-list mailing list