New submission from Clément Boyer :
I use a class to write easily json when having generator.
```python
class StreamArray(list):
def __init__(self, generator):
super().__init__()
self.generator = generator
def __iter__(self):
return self.generator
def __len__
Clément added the comment:
Thanks Martin for the clarification! I'll leave it to you to decide whether
there is something to fix here (I'll admit to not understanding much of that
code).
--
___
Python tracker
<http://bugs.python.o
Clément added the comment:
Could this commit be the reason why the attached code behaves differently in
2.7 and 3.5.2? This is the code used by Emacs' default Python mode to do
completion; with it (python -i completion.py), pressing "tab" on a plain prompt
offers candidates in
New submission from Clément:
Line numbers reported by the doctest module are wrong when a function does not
include a docstring. With the attached example file, running
python -c "import doctest, example;
print(doctest.DocTestFinder(exclude_empty=False).find(example))"
New submission from Clément:
>From https://docs.python.org/3/howto/unicode.html:
> For a while people just wrote programs that didn’t display accents.
> In the mid-1980s an Apple II BASIC program written by a French
> speaker might have lines like these:
>
> PRINT &qu