[issue33850] Json.dump() bug when using generator

2018-06-13 Thread Clément Boyer
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__

[issue25660] tabs don't work correctly in python repl

2016-10-29 Thread Clément
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

[issue25660] tabs don't work correctly in python repl

2016-10-26 Thread Clément
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

[issue28249] doctest.DocTestFinder reports incorrect line numbers with exclude_empty=False

2016-09-22 Thread Clément
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))"

[issue23109] French quotes in the documentation are often ungrammatical

2014-12-24 Thread Clément
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