Pyry Pakkanen added the comment:
Oh, I was sure it had to do with binding issues. I just couldn't put my finger
on it because the behavior seemed so counterintuitive.
Thanks for clearing things up. I can now work around this feature.
--
___
P
New submission from Pyry Pakkanen :
The following self-referencing generator has incorrect output:
def ab_combinations():
#'', 'a', 'b', 'aa', 'ab', 'ba', 'bb', 'aaa', ...
def _deferred_output():
New submission from Pyry Pakkanen :
Running the following results in a Segmentation fault on Ubuntu 11.10 64-bit
with both python and python3.
from itertools import *
c = count()
a,b = tee(c)
for i in range(1000):
next(a)
del(b)
--
messages: 148124
nosy: PyryP
priority: normal
New submission from Pyry Pakkanen <[EMAIL PROTECTED]>:
I was expecting that the API function PyArg_ParseTuple(args, "y#:foo",
&cp, &size) would accept a bytearray and implicitly convert it to bytes.
Currently it throws the error:
TypeError: foo() argument 1 must be bytes
New submission from Pyry Pakkanen <[EMAIL PROTECTED]>:
>>> class test:
... def __radd__(self,other):
... return '__radd__ called'
...
>>> t = test()
>>> 1 + t
'__radd__ called'
>>> t + t
Traceback (most recent cal