- 29 Jan, 2016 2 commits
-
-
Martin Panter authored
-
Martin Panter authored
Also add some more tests. Based on patch by Sye van der Veen.
-
- 28 Jan, 2016 5 commits
-
-
Berker Peksag authored
-
Berker Peksag authored
-
Berker Peksag authored
Most of the docs has already been updated in c3c188a0325a.
-
Berker Peksag authored
Most of the docs has already been updated in c3c188a0325a.
-
Berker Peksag authored
Patch by Raphael Das Gupta.
-
- 29 Jan, 2016 2 commits
-
-
Martin Panter authored
-
Martin Panter authored
-
- 28 Jan, 2016 1 commit
-
-
Berker Peksag authored
Patch by Raphael Das Gupta.
-
- 27 Jan, 2016 6 commits
-
-
Terry Jan Reedy authored
-
Terry Jan Reedy authored
Augment htest to include all major IOBinding functions.
-
Victor Stinner authored
-
Victor Stinner authored
Issue #26217: resize_compact() must set wstr_length to 0 after freeing the wstr string. Otherwise, an assertion fails in _PyUnicode_CheckConsistency().
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
- 26 Jan, 2016 6 commits
-
-
Victor Stinner authored
Mention the name of the invalid type in error message of AST validation for constants. Suggestion made by Joseph Jevnik on a review.
-
Victor Stinner authored
obj2ast_constant() code is baesd on obj2ast_object() which has a special case for Py_None. But in practice, we don't need to have a special case for constants. Issue noticed by Joseph Jevnik on a review.
-
Victor Stinner authored
Issue #26146.
-
Raymond Hettinger authored
-
Senthil Kumaran authored
Remove unnecessary test case comment in urllib.parse.py. These are asserted as test cases.
-
Senthil Kumaran authored
-
- 25 Jan, 2016 3 commits
-
-
Victor Stinner authored
Issue #26146: Add a new kind of AST node: ast.Constant. It can be used by external AST optimizers, but the compiler does not emit directly such node. An optimizer can replace the following AST nodes with ast.Constant: * ast.NameConstant: None, False, True * ast.Num: int, float, complex * ast.Str: str * ast.Bytes: bytes * ast.Tuple if items are constants too: tuple * frozenset Update code to accept ast.Constant instead of ast.Num and/or ast.Str: * compiler * docstrings * ast.literal_eval() * Tools/parser/unparse.py
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
- 24 Jan, 2016 3 commits
-
-
Raymond Hettinger authored
and better generated code (on both GCC and CLang).
-
Raymond Hettinger authored
and for better code generation.
-
Raymond Hettinger authored
* Add comment to the maxlen structure entry about the meaning of maxlen == -1 * Factor-out code common to deque_append(left) and deque_extend(left) * Factor inner-loop in deque_clear() to use only 1 test per loop instead of 2 * Tighten inner-loops for deque_item() and deque_ass_item() so that the compiler can combine the decrement and test into a single step.
-
- 23 Jan, 2016 4 commits
-
-
Victor Stinner authored
-
Victor Stinner authored
* Write one import per line * Sort imports by name * Add an empty line: 2 empty lines between code blocks at the module level (PEP 8)
-
Victor Stinner authored
-
Brett Cannon authored
with no known parent package. Previously SystemError was raised if the parent package didn't exist (e.g., __package__ was set to ''). Thanks to Florent Xicluna and Yongzhi Pan for reporting the issue.
-
- 22 Jan, 2016 8 commits
-
-
Brett Cannon authored
-
Brett Cannon authored
-
Brett Cannon authored
In a previous change, __spec__.parent was prioritized over __package__. That is a backwards-compatibility break, but we do eventually want __spec__ to be the ground truth for module details. So this change reverts the change in semantics and instead raises an ImportWarning when __package__ != __spec__.parent to give people time to adjust to using spec objects.
-
Brett Cannon authored
-
Brett Cannon authored
-
Victor Stinner authored
-
Victor Stinner authored
Issue #25907: Use {% trans %} tags in HTML templates to ease the translation of the documentation. The tag comes from Jinja templating system, used by Sphinx. Patch written by Julien Palard.
-
Victor Stinner authored
-