[Python-ideas] Is there a good reason to use * for multiplication?
Sturla Molden
sturla at molden.no
Sat Oct 13 20:29:57 CEST 2012
Den 13. okt. 2012 kl. 06:44 skrev Devin Jeanpierre <jeanpierreda at gmail.com>:
>
> Python has cleverly left the $ symbol unused.
>
> We can use it as a quasiquote to embed executable TeX.
>
> for x in xrange($b \cdot \sum_{i=1}^n \frac{x^n}{n!}$):
> ...
>
> No need to wait for that new language, we can have a rich set of math
> operators today!
>
LOL :D
But hey, this is valid Python :D :D
for x in texrange(r"$b \cdot \sum_{i=1}^n \frac{x^n}{n!}$"): pass
Sturla
More information about the Python-ideas
mailing list