Re: python.org downtime (was Re: is it possible to overload operator "^"?)

2009-08-08 Thread Xavier Ho
On Sun, Aug 9, 2009 at 6:37 AM, Aahz wrote: > www.python.org is currently having hardware problems > So what I'm seeing is an illusion? It works as of now. - Xavier -- http://mail.python.org/mailman/listinfo/python-list

python.org downtime (was Re: is it possible to overload operator "^"?)

2009-08-08 Thread Aahz
In article , dmitrey wrote: > >To Diez: >yes, but I haven't paid attention to xor. BTW the url is currently >unavailable (Network Timeout. The server at docs.python.org is taking >too long to respond.). www.python.org is currently having hardware problems -- Aahz (a...@pythoncraft.com)

Re: is it possible to overload operator "^"?

2009-08-08 Thread Diez B. Roggisch
dmitrey schrieb: the operator precedence will seem wrong So, are there any ways to change operator precedence (for my class)? No. Those are built-in. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: is it possible to overload operator "^"?

2009-08-08 Thread dmitrey
> the operator precedence will seem wrong So, are there any ways to change operator precedence (for my class)? To Diez: yes, but I haven't paid attention to xor. BTW the url is currently unavailable (Network Timeout. The server at docs.python.org is taking too long to respond.). On Aug 8, 12:06 p

Re: is it possible to overload operator "^"?

2009-08-08 Thread Diez B. Roggisch
dmitrey schrieb: hi all, is it possible to overload operator "^"? (AFAIK __pow__ overloads ** instead of ^) Thank you in advance, D. Did you read the link I gave you for your last question? It shows __xor__ as special method. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: is it possible to overload operator "^"?

2009-08-08 Thread Gary Herron
dmitrey wrote: hi all, is it possible to overload operator "^"? (AFAIK __pow__ overloads ** instead of ^) Thank you in advance, D. The ^ operator is not an exponentiation, but rather the xor operator. Thus you can override it with the __xor__ method. Beware, if you are thinki

is it possible to overload operator "^"?

2009-08-08 Thread dmitrey
hi all, is it possible to overload operator "^"? (AFAIK __pow__ overloads ** instead of ^) Thank you in advance, D. -- http://mail.python.org/mailman/listinfo/python-list