what does ^ do in python

Matthieu Brucher matthieu.brucher at gmail.com
Tue Mar 25 18:25:59 EDT 2008


Hi,


In most of the languages ^ is used for 'to the power of'.
>

No, not in most languages. In most languages (C, C++, Java, C#, Python,
Fortran, ...), ^ is the xor operator ;)

Matthieu
-- 
French PhD student
Website : http://matthieu-brucher.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080325/2068216c/attachment.html>


More information about the Python-list mailing list