Skip to content

Commits on Mar 23, 2021

  1. bpo-43244: Remove ast.h, asdl.h, Python-ast.h headers (GH-24933)

    These functions were undocumented and excluded from the limited C
    API.
    
    Most names defined by these header files were not prefixed by "Py"
    and so could create names conflicts. For example, Python-ast.h
    defined a "Yield" macro which was conflict with the "Yield" name used
    by the Windows <winbase.h> header.
    
    Use the Python ast module instead.
    
    * Move Include/asdl.h to Include/internal/pycore_asdl.h.
    * Move Include/Python-ast.h to Include/internal/pycore_ast.h.
    * Remove ast.h header file.
    * pycore_symtable.h no longer includes Python-ast.h.
    vstinner committed Mar 23, 2021

Commits on Sep 16, 2020

  1. bpo-41746: Add type information to asdl_seq objects (GH-22223)

    * Add new capability to the PEG parser to type variable assignments. For instance:
    ```
           | a[asdl_stmt_seq*]=';'.small_stmt+ [';'] NEWLINE { a }
    ```
    
    * Add new sequence types from the asdl definition (automatically generated)
    * Make `asdl_seq` type a generic aliasing pointer type.
    * Create a new `asdl_generic_seq` for the generic case using `void*`.
    * The old `asdl_seq_GET`/`ast_seq_SET` macros now are typed.
    * New `asdl_seq_GET_UNTYPED`/`ast_seq_SET_UNTYPED` macros for dealing with generic sequences.
    * Changes all possible `asdl_seq` types to use specific versions everywhere.
    pablogsal committed Sep 16, 2020

Commits on Sep 7, 2016

Commits on Aug 17, 2014

  1. Issue #22207: Fix "comparison between signed and unsigned integers" w…

    …arning in
    
    test checking for integer overflow on Py_ssize_t type: cast explicitly to
    size_t.
    vstinner committed Aug 17, 2014

Commits on Oct 12, 2013

  1. Issue #4555: All exported C symbols are now prefixed with either "Py"…

    … or "_Py".
    
    ("make smelly" now clean)
    pitrou committed Oct 12, 2013

Commits on May 9, 2010

  1. Recorded merge of revisions 81029 via svnmerge from

    svn+ssh://pythondev@svn.python.org/python/trunk
    
    ........
      r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
    
      Untabify C files. Will watch buildbots.
    ........
    pitrou committed May 9, 2010

Commits on Jun 18, 2008

  1. Merged revisions 64114 via svnmerge from

    svn+ssh://pythondev@svn.python.org/python/trunk
    
    ........
      r64114 | gregory.p.smith | 2008-06-11 09:41:16 +0200 (mer., 11 juin 2008) | 6 lines
    
      Merge in release25-maint r60793:
    
       Added checks for integer overflows, contributed by Google. Some are
       only available if asserts are left in the code, in cases where they
       can't be triggered from Python code.
    ........
    amauryfa committed Jun 18, 2008

Commits on Apr 21, 2006

  1. Merge p3yk branch with the trunk up to revision 45595. This breaks a …

    …fair
    
    number of tests, all because of the codecs/_multibytecodecs issue described
    here (it's not a Py3K issue, just something Py3K discovers):
    http://mail.python.org/pipermail/python-dev/2006-April/064051.html
    
    Hye-Shik Chang promised to look for a fix, so no need to fix it here. The
    tests that are expected to break are:
    
    test_codecencodings_cn
    test_codecencodings_hk
    test_codecencodings_jp
    test_codecencodings_kr
    test_codecencodings_tw
    test_codecs
    test_multibytecodec
    
    This merge fixes an actual test failure (test_weakref) in this branch,
    though, so I believe merging is the right thing to do anyway.
    Yhg1s committed Apr 21, 2006

Commits on Feb 28, 2006

  1. Remove asdl_seq_APPEND() and simplify asdl seq implementation.

    Clarify intended use of set_context() and check errors at all call sites.
    jeremyhylton committed Feb 28, 2006

Commits on Dec 17, 2005

  1. Merge from ast-arena. This reduces the code in Python/ast.c by ~300 l…

    …ines,
    
    simplifies a lot of error handling code, and fixes many memory leaks.
    nnorwitz committed Dec 17, 2005

Commits on Nov 14, 2005

  1. Use convenience function

    nnorwitz committed Nov 14, 2005

Commits on Nov 13, 2005

Commits on Oct 20, 2005

  1. Merge ast-branch to head

    This change implements a new bytecode compiler, based on a
    transformation of the parse tree to an abstract syntax defined in
    Parser/Python.asdl.
    
    The compiler implementation is not complete, but it is in stable
    enough shape to run the entire test suite excepting two disabled
    tests.
    jeremyhylton committed Oct 20, 2005