- 13 Feb, 2016 1 commit
-
-
Martin Panter authored
Some of the inspiration and wording is taken from the text of PEP 498 by Eric V. Smith, and the existing str.format() documentation.
-
- 11 Feb, 2016 9 commits
-
-
Yury Selivanov authored
Microbenchmarks show 2-2.5x improvement. Built-in 'divmod' function is now also ~10% faster. -m timeit -s "x=22331" "x//2;x//-3;x//4;x//5;x//-6;x//7;x//8;x//-99;x//100;" with patch: 0.321 without patch: 0.633 -m timeit -s "x=22331" "x%2;x%3;x%-4;x%5;x%6;x%-7;x%8;x%99;x%-100;" with patch: 0.224 without patch: 0.66 Big thanks to Serhiy Storchaka, Mark Dickinson and Victor Stinner for thorow code reviews and algorithms improvements.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
Different solution from 3.5.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
protocol for the os.scandir() iterator.
-
Serhiy Storchaka authored
no ResourceWarning is emitted.
-
Serhiy Storchaka authored
no ResourceWarning is emitted.
-
Serhiy Storchaka authored
to format short Python version.
-
Serhiy Storchaka authored
PyArg_ParseTupleAndKeywords(). RuntimeError did raised before in some programming bugs.
-
- 10 Feb, 2016 13 commits
-
-
Charles-François Natali authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Serhiy Storchaka authored
if the stack is too deep.
-
Serhiy Storchaka authored
if the stack is too deep.
-
Martin Panter authored
-
Martin Panter authored
-
Martin Panter authored
The original form is incorrect grammar and feels awkward, even though the meaning is clear.
-
Martin Panter authored
Patch by Anish Shah.
-
Martin Panter authored
-
Martin Panter authored
-
Martin Panter authored
-
- 09 Feb, 2016 1 commit
-
-
Raymond Hettinger authored
-
- 10 Feb, 2016 1 commit
-
-
Martin Panter authored
-
- 08 Feb, 2016 14 commits
-
-
Victor Stinner authored
Issue #26204: the compiler doesn't emit SyntaxWarning warnings anymore when constant statements are ignored.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Gregory P. Smith authored
not have a math vocabulary.
-
Gregory P. Smith authored
not have a math vocabulary.
-
Steve Dower authored
-
Steve Dower authored
-
Victor Stinner authored
The compile ignores constant statements and emit a SyntaxWarning warning. Don't emit the warning for string statement because triple quoted string is a common syntax for multiline comments. Don't emit the warning on ellipis neither: 'def f(): ...' is a legit syntax for abstract functions. Changes: * test_ast: ignore SyntaxWarning when compiling test statements. Modify test_load_const() to use assignment expressions rather than constant expression. * test_code: add more kinds of constant statements, ignore SyntaxWarning when testing that the compiler removes constant statements. * test_grammar: ignore SyntaxWarning on the statement "1"
-
Victor Stinner authored
* Constant statements will be ignored and the compiler will emit a SyntaxWarning. * Replace constant statement (ex: "1") with an expression statement (ex: "x=1"). * test_traceback: use context manager on the file. Issue #26204.
-
Victor Stinner authored
* Use ast.parse() to get the AST for a statement * Use str%args syntax for format a line Issue #26204.
-
Serhiy Storchaka authored
when the iteration is finished, but when it was failed with error.
-
Serhiy Storchaka authored
when the iteration is finished, but when it was failed with error.
-
Serhiy Storchaka authored
needed.
-
Serhiy Storchaka authored
-
- 09 Feb, 2016 1 commit
-
-
Martin Panter authored
-