[MvL]
> 1. For 2.5.1, rewrite slot_nb_inplace_power to raise an exception
> if the third argument is not None, and then invoke __ipow__ with only one
> argument.
[Raymond]
>> Why would you change Py2.5? There is no bug here.
[MvL]
> There is: slot_nb_inplace has the signature
>
> st
"Guido van Rossum" <[EMAIL PROTECTED]> wrote:
>
> I recently needed to access an HTTP URL with a timeout. I ended up
> monkey-patching httplib.HTTPConnection so that the connect() method
> has an optional second paramer, timeout, defaulting to None; if not
> None, a call to settimeout() is added
[GvR]
>I recently needed to access an HTTP URL with a timeout. I ended up
> monkey-patching httplib.HTTPConnection so that the connect() method
> has an optional second paramer, timeout, defaulting to None; if not
> None, a call to settimeout() is added right after successful creation
> of the sock
I recently needed to access an HTTP URL with a timeout. I ended up
monkey-patching httplib.HTTPConnection so that the connect() method
has an optional second paramer, timeout, defaulting to None; if not
None, a call to settimeout() is added right after successful creation
of the socket.
Does anybo
Martin v. Löwis wrote:
> It is the implementation of
>
> foo **= bar
>
> (and that's its only use), so it ought to be binary.
Maybe it's so that a type can plug the same implementation
into both nb_pow and nb_inplace_pow. Although the same
effect could be achieved by just leaving nb_inplace_pow
On 2/8/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote:
> #1653736 reports that slot_nb_inplace_power has the wrong
> type: it should be a ternary function, but only is a binary.
> The proposed change is to make it ternary, and to invoke __ipow__
> with three arguments.
>
> In researching this, I c
[EMAIL PROTECTED] schrieb:
1. For 2.5.1, rewrite slot_nb_inplace_power to raise an exception
if the third argument is not None, and then invoke __ipow__ with only one
argument.
>
> Why would you change Py2.5? There is no bug here.
There is: slot_nb_inplace has the signature
stat
[MvL]
>>> So here is my proposed change:
>>>
>>> 1. For 2.5.1, rewrite slot_nb_inplace_power to raise an exception
>>> if the third argument is not None, and then invoke __ipow__ with only one
>>> argument.
Why would you change Py2.5? There is no bug here.
Raymond
#1653736 reports that slot_nb_inplace_power has the wrong
type: it should be a ternary function, but only is a binary.
The proposed change is to make it ternary, and to invoke __ipow__
with three arguments.
In researching this, I came to wonder why nb_inplace_power is
ternary in the first place. I