1. 06 Nis, 2016 1 kayıt (commit)
  2. 27 Mar, 2016 1 kayıt (commit)
  3. 25 Mar, 2016 1 kayıt (commit)
  4. 20 Mar, 2016 1 kayıt (commit)
  5. 15 Mar, 2016 1 kayıt (commit)
  6. 14 Mar, 2016 1 kayıt (commit)
    • Victor Stinner's avatar
      Add more checks on the GIL · 8a1be618
      Victor Stinner yazdı
      Issue #10915, #15751, #26558:
      
      * PyGILState_Check() now returns 1 (success) before the creation of the GIL and
        after the destruction of the GIL. It allows to use the function early in
        Python initialization and late in Python finalization.
      * Add a flag to disable PyGILState_Check(). Disable PyGILState_Check() when
        Py_NewInterpreter() is called
      * Add assert(PyGILState_Check()) to: _Py_dup(), _Py_fstat(), _Py_read()
        and _Py_write()
      8a1be618
  7. 26 Ock, 2016 1 kayıt (commit)
    • Victor Stinner's avatar
      Issue #26146: remove useless code · 25219f59
      Victor Stinner yazdı
      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.
      25219f59
  8. 25 Ock, 2016 1 kayıt (commit)
    • Victor Stinner's avatar
      Add ast.Constant · f2c1aa16
      Victor Stinner yazdı
      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
      f2c1aa16
  9. 25 Ara, 2015 2 kayıt (commit)
  10. 24 Ara, 2015 1 kayıt (commit)
  11. 14 Kas, 2015 1 kayıt (commit)
  12. 06 Kas, 2015 2 kayıt (commit)
  13. 29 Eki, 2015 1 kayıt (commit)
  14. 19 Eyl, 2015 1 kayıt (commit)
  15. 12 Eyl, 2015 1 kayıt (commit)
  16. 06 Eyl, 2015 1 kayıt (commit)
  17. 23 Tem, 2015 1 kayıt (commit)
    • Yury Selivanov's avatar
      Issue #24619: Simplify async/await tokenization. · 96ec934e
      Yury Selivanov yazdı
      This commit simplifies async/await tokenization in tokenizer.c,
      tokenize.py & lib2to3/tokenize.py.  Previous solution was to keep
      a stack of async-def & def blocks, whereas the new approach is just
      to remember position of the outermost async-def block.
      
      This change won't bring any parsing performance improvements, but
      it makes the code much easier to read and validate.
      96ec934e
  18. 22 Tem, 2015 1 kayıt (commit)
    • Yury Selivanov's avatar
      Issue #24619: New approach for tokenizing async/await. · 8fb307cd
      Yury Selivanov yazdı
      This commit fixes how one-line async-defs and defs are tracked
      by tokenizer.  It allows to correctly parse invalid code such
      as:
      
      >>> async def f():
      ...     def g(): pass
      ...     async = 10
      
      and valid code such as:
      
      >>> async def f():
      ...     async def g(): pass
      ...     await z
      
      As a consequence, is is now possible to have one-line
      'async def foo(): await ..' functions:
      
      >>> async def foo(): return await bar()
      8fb307cd
  19. 18 May, 2015 1 kayıt (commit)
  20. 12 May, 2015 1 kayıt (commit)
  21. 06 May, 2015 1 kayıt (commit)
  22. 21 Nis, 2015 1 kayıt (commit)
  23. 03 Nis, 2015 2 kayıt (commit)
  24. 09 Kas, 2014 1 kayıt (commit)
  25. 05 Eyl, 2014 1 kayıt (commit)
  26. 08 Tem, 2014 1 kayıt (commit)
  27. 07 Haz, 2014 1 kayıt (commit)
  28. 10 May, 2014 1 kayıt (commit)
  29. 10 Nis, 2014 1 kayıt (commit)
  30. 28 Şub, 2014 1 kayıt (commit)
  31. 11 Şub, 2014 1 kayıt (commit)
  32. 09 Ock, 2014 2 kayıt (commit)
    • Serhiy Storchaka's avatar
      Do not reset the line number because we already set file position to correct · 1064a13b
      Serhiy Storchaka yazdı
      value.
      
      (fixes error in patch for issue #18960)
      1064a13b
    • Serhiy Storchaka's avatar
      Issue #18960: Fix bugs with Python source code encoding in the second line. · 768c16ce
      Serhiy Storchaka yazdı
      * The first line of Python script could be executed twice when the source
      encoding (not equal to 'utf-8') was specified on the second line.
      
      * Now the source encoding declaration on the second line isn't effective if
      the first line contains anything except a comment.
      
      * As a consequence, 'python -x' works now again with files with the source
      encoding declarations specified on the second file, and can be used again
      to make Python batch files on Windows.
      
      * The tokenize module now ignore the source encoding declaration on the second
      line if the first line contains anything except a comment.
      
      * IDLE now ignores the source encoding declaration on the second line if the
      first line contains anything except a comment.
      
      * 2to3 and the findnocoding.py script now ignore the source encoding
      declaration on the second line if the first line contains anything except
      a comment.
      768c16ce
  33. 21 Ara, 2013 1 kayıt (commit)
  34. 04 Ara, 2013 1 kayıt (commit)
  35. 18 Kas, 2013 2 kayıt (commit)