1. 02 Kas, 2009 1 kayıt (commit)
    • Benjamin Peterson's avatar
      Merged revisions… · f9e7d542
      Benjamin Peterson yazdı
      Merged revisions 74359,75081,75088,75213,75278,75303,75427-75428,75734-75736,75865,76059-76061 via svnmerge from
      svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
      
      ........
        r74359 | benjamin.peterson | 2009-08-12 17:23:13 -0500 (Wed, 12 Aug 2009) | 1 line
      
        don't pass the deprecated print_function option
      ........
        r75081 | benjamin.peterson | 2009-09-26 22:02:57 -0500 (Sat, 26 Sep 2009) | 1 line
      
        let 2to3 work with extended iterable unpacking
      ........
        r75088 | benjamin.peterson | 2009-09-27 11:25:21 -0500 (Sun, 27 Sep 2009) | 1 line
      
        look on the type only for __call__
      ........
        r75213 | benjamin.peterson | 2009-10-03 10:09:46 -0500 (Sat, 03 Oct 2009) | 5 lines
      
        revert 75212; it's not correct
      
        People can use isinstance(x, collections.Callable) if they expect objects with
        __call__ in their instance dictionaries.
      ........
        r75278 | benjamin.peterson | 2009-10-07 16:25:56 -0500 (Wed, 07 Oct 2009) | 4 lines
      
        fix whitespace problems with fix_idioms #3563
      
        Patch by Joe Amenta.
      ........
        r75303 | benjamin.peterson | 2009-10-09 16:59:11 -0500 (Fri, 09 Oct 2009) | 1 line
      
        port latin-1 and utf-8 cookie improvements
      ........
        r75427 | benjamin.peterson | 2009-10-14 20:35:57 -0500 (Wed, 14 Oct 2009) | 1 line
      
        force floor division
      ........
        r75428 | benjamin.peterson | 2009-10-14 20:39:21 -0500 (Wed, 14 Oct 2009) | 1 line
      
        silence -3 warnings about __hash__
      ........
        r75734 | benjamin.peterson | 2009-10-26 16:25:53 -0500 (Mon, 26 Oct 2009) | 2 lines
      
        warn on map(None, ...) with more than 2 arguments #7203
      ........
        r75735 | benjamin.peterson | 2009-10-26 16:28:25 -0500 (Mon, 26 Oct 2009) | 1 line
      
        remove unused result
      ........
        r75736 | benjamin.peterson | 2009-10-26 16:29:02 -0500 (Mon, 26 Oct 2009) | 1 line
      
        using get() here is a bit pointless
      ........
        r75865 | benjamin.peterson | 2009-10-27 15:49:00 -0500 (Tue, 27 Oct 2009) | 1 line
      
        explain reason for warning
      ........
        r76059 | benjamin.peterson | 2009-11-02 11:43:47 -0600 (Mon, 02 Nov 2009) | 1 line
      
        tuples are no longer used for children
      ........
        r76060 | benjamin.peterson | 2009-11-02 11:55:40 -0600 (Mon, 02 Nov 2009) | 1 line
      
        revert r76059; apparently some fixers rely on Leaf no () for children
      ........
        r76061 | benjamin.peterson | 2009-11-02 12:06:17 -0600 (Mon, 02 Nov 2009) | 1 line
      
        make fix_tuple_params keep the tree valid #7253
      ........
      f9e7d542
  2. 11 Haz, 2009 1 kayıt (commit)
    • Benjamin Peterson's avatar
      Merged revisions… · 6118040b
      Benjamin Peterson yazdı
      Merged revisions 72523,72950-72951,72994,73003,73033,73036-73040,73091-73093,73096,73179-73181,73192,73231,73244,73255-73256,73365 via svnmerge from
      svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
      
      ........
        r72523 | benjamin.peterson | 2009-05-09 14:42:26 -0500 (Sat, 09 May 2009) | 1 line
      
        remove parenthesis
      ........
        r72950 | benjamin.peterson | 2009-05-26 18:19:45 -0500 (Tue, 26 May 2009) | 1 line
      
        remove unused imports
      ........
        r72951 | benjamin.peterson | 2009-05-26 18:27:00 -0500 (Tue, 26 May 2009) | 1 line
      
        this is no longer executable
      ........
        r72994 | benjamin.peterson | 2009-05-28 15:32:54 -0500 (Thu, 28 May 2009) | 1 line
      
        fix test_all_fixers on Windows #6134
      ........
        r73003 | benjamin.peterson | 2009-05-28 21:57:28 -0500 (Thu, 28 May 2009) | 4 lines
      
        make 2to3 test utilities easier to use with other applications (3to2)
      
        Patch by Joe Amenta
      ........
        r73033 | benjamin.peterson | 2009-05-29 16:58:32 -0500 (Fri, 29 May 2009) | 1 line
      
        update grammar for multi with statement
      ........
        r73036 | benjamin.peterson | 2009-05-29 17:33:20 -0500 (Fri, 29 May 2009) | 1 line
      
        simplify fix_unicode
      ........
        r73037 | benjamin.peterson | 2009-05-29 17:53:03 -0500 (Fri, 29 May 2009) | 1 line
      
        add custom error for pattern syntax errors
      ........
        r73038 | benjamin.peterson | 2009-05-29 17:55:00 -0500 (Fri, 29 May 2009) | 1 line
      
        complain if details are attached to a token
      ........
        r73039 | benjamin.peterson | 2009-05-29 18:00:28 -0500 (Fri, 29 May 2009) | 1 line
      
        add a test for whitespace
      ........
        r73040 | benjamin.peterson | 2009-05-29 18:01:17 -0500 (Fri, 29 May 2009) | 1 line
      
        a fix for emacs highlighting
      ........
        r73091 | benjamin.peterson | 2009-05-31 20:55:25 -0500 (Sun, 31 May 2009) | 1 line
      
        deprecate set_prefix() and get_prefix() in favor of a prefix property
      ........
        r73092 | benjamin.peterson | 2009-05-31 21:00:51 -0500 (Sun, 31 May 2009) | 1 line
      
        change hideous java naming scheme
      ........
        r73093 | benjamin.peterson | 2009-05-31 21:01:39 -0500 (Sun, 31 May 2009) | 1 line
      
        remove dated comment
      ........
        r73096 | benjamin.peterson | 2009-05-31 21:40:53 -0500 (Sun, 31 May 2009) | 1 line
      
        group tests
      ........
        r73179 | benjamin.peterson | 2009-06-03 13:09:53 -0500 (Wed, 03 Jun 2009) | 1 line
      
        handle the case where there's multiple trailers #6185
      ........
        r73180 | benjamin.peterson | 2009-06-03 13:18:05 -0500 (Wed, 03 Jun 2009) | 1 line
      
        scrap __main__ section
      ........
        r73181 | benjamin.peterson | 2009-06-03 13:24:48 -0500 (Wed, 03 Jun 2009) | 1 line
      
        remove shebang lines and __main__ sections
      ........
        r73192 | benjamin.peterson | 2009-06-03 19:16:30 -0500 (Wed, 03 Jun 2009) | 4 lines
      
        actually test something here
      
        Thanks to Joe Amenta for noticing.y
      ........
        r73231 | benjamin.peterson | 2009-06-04 13:38:50 -0500 (Thu, 04 Jun 2009) | 1 line
      
        remove unused variable
      ........
        r73244 | benjamin.peterson | 2009-06-05 08:39:25 -0500 (Fri, 05 Jun 2009) | 1 line
      
        allow fixers to give different options in setUp
      ........
        r73255 | benjamin.peterson | 2009-06-06 11:23:46 -0500 (Sat, 06 Jun 2009) | 1 line
      
        fix the except fixer on one line suites #6222
      ........
        r73256 | benjamin.peterson | 2009-06-06 11:27:40 -0500 (Sat, 06 Jun 2009) | 1 line
      
        test one-line else and finally clauses
      ........
        r73365 | benjamin.peterson | 2009-06-11 17:01:32 -0500 (Thu, 11 Jun 2009) | 1 line
      
        normalize whitespace
      ........
      6118040b
  3. 13 Eyl, 2008 1 kayıt (commit)
    • Benjamin Peterson's avatar
      Merged revisions 66191,66418,66438,66445 via svnmerge from · d51e07f9
      Benjamin Peterson yazdı
      svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
      
      ........
        r66191 | benjamin.peterson | 2008-09-03 17:00:52 -0500 (Wed, 03 Sep 2008) | 1 line
      
        update the Grammar file after recent syntax changes
      ........
        r66418 | benjamin.peterson | 2008-09-12 18:49:48 -0500 (Fri, 12 Sep 2008) | 1 line
      
        a trival fix to get a few more print corner cases #2899
      ........
        r66438 | benjamin.peterson | 2008-09-12 21:32:30 -0500 (Fri, 12 Sep 2008) | 5 lines
      
        add Jack Diederich's fixer for metaclass syntax #2366
      
        my contribution to this was adding a few tests and fixing a few bugs
        I also reviewed it (Jack is a committer)
      ........
        r66445 | benjamin.peterson | 2008-09-13 10:50:00 -0500 (Sat, 13 Sep 2008) | 1 line
      
        add a few more tests concerning int literals and weird spacing
      ........
      d51e07f9
  4. 19 Mar, 2008 1 kayıt (commit)
  5. 23 Şub, 2008 1 kayıt (commit)
  6. 18 May, 2007 1 kayıt (commit)
  7. 06 Eyl, 2006 1 kayıt (commit)
  8. 25 May, 2006 1 kayıt (commit)
  9. 12 Nis, 2006 2 kayıt (commit)
  10. 28 Şub, 2006 2 kayıt (commit)
    • Thomas Wouters's avatar
      Make 'as' an actual keyword when with's future statement is used. Not · 8ae1295c
      Thomas Wouters yazdı
      actually necessary for functionality, but good for transition.
      8ae1295c
    • Thomas Wouters's avatar
      SF patch #1438387, PEP 328: relative and absolute imports. · f7f438ba
      Thomas Wouters yazdı
       - IMPORT_NAME takes an extra argument from the stack: the relativeness of
         the import. Only passed to __import__ when it's not -1.
      
       - __import__() takes an optional 5th argument for the same thing; it
         __defaults to -1 (old semantics: try relative, then absolute)
      
       - 'from . import name' imports name (be it module or regular attribute)
         from the current module's *package*. Likewise, 'from .module import name'
         will import name from a sibling to the current module.
      
       - Importing from outside a package is not allowed; 'from . import sys' in a
         toplevel module will not work, nor will 'from .. import sys' in a
         (single-level) package.
      
       - 'from __future__ import absolute_import' will turn on the new semantics
         for import and from-import: imports will be absolute, except for
         from-import with dots.
      
      Includes tests for regular imports and importhooks, parser changes and a
      NEWS item, but no compiler-package changes or documentation changes.
      f7f438ba
  11. 27 Şub, 2006 2 kayıt (commit)
    • Guido van Rossum's avatar
      PEP 343 -- the with-statement. · c2e20744
      Guido van Rossum yazdı
      This was started by Mike Bland and completed by Guido
      (with help from Neal).
      
      This still needs a __future__ statement added;
      Thomas is working on Michael's patch for that aspect.
      
      There's a small amount of code cleanup and refactoring
      in ast.c, compile.c and ceval.c (I fixed the lltrace
      behavior when EXT_POP is used -- however I had to make
      lltrace a static global).
      c2e20744
    • Thomas Wouters's avatar
      PEP 308 implementation, including minor refdocs and some testcases. It · dca3b9c7
      Thomas Wouters yazdı
      breaks the parser module, because it adds the if/else construct as well as
      two new grammar rules for backward compatibility. If no one else fixes
      parsermodule, I guess I'll go ahead and fix it later this week.
      
      The TeX code was checked with texcheck.py, but not rendered. There is
      actually a slight incompatibility:
      
      >>> (x for x in lambda:0)
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      TypeError: iteration over non-sequence
      
      changes into
      
      >>> (x for x in lambda: 0)
        File "<stdin>", line 1
          (x for x in lambda: 0)
                           ^
      SyntaxError: invalid syntax
      
      Since there's no way the former version can be useful, it's probably a
      bugfix ;)
      dca3b9c7
  12. 24 Şub, 2006 1 kayıt (commit)
  13. 18 Ara, 2005 1 kayıt (commit)
  14. 17 Ara, 2005 1 kayıt (commit)
  15. 21 Eki, 2005 1 kayıt (commit)
    • Neal Norwitz's avatar
      Fix SF bug #1167751, Argument genexp corner case · 37c0844b
      Neal Norwitz yazdı
      Incorrect code was generated for:
      
        foo(a = i for i in range(10))
      
      This should have generated a SyntaxError.  Fix the Grammar so
      it raises a SyntaxError and test it.
      
      I'm uncertain whether this should be backported.  It makes
      something that was Syntactically valid invalid.  However,
      the code would either be completely broken or do the wrong thing.
      37c0844b
  16. 02 Agu, 2005 1 kayıt (commit)
  17. 05 Mar, 2005 1 kayıt (commit)
  18. 31 Agu, 2004 1 kayıt (commit)
  19. 17 Agu, 2004 1 kayıt (commit)
    • Michael W. Hudson's avatar
      This is Mark Russell's patch: · 0ccff074
      Michael W. Hudson yazdı
      [ 1009560 ] Fix @decorator evaluation order
      
      From the description:
      
      Changes in this patch:
      
      - Change Grammar/Grammar to require
      newlines between adjacent decorators.
      
      - Fix order of evaluation of decorators
      in the C (compile.c) and python
      (Lib/compiler/pycodegen.py) compilers
      
      - Add better order of evaluation check
      to test_decorators.py (test_eval_order)
      
      - Update the decorator documentation in
      the reference manual (improve description
      of evaluation order and update syntax
      description)
      
      and the comment:
      
      Used Brett's evaluation order (see
      http://mail.python.org/pipermail/python-dev/2004-August/047835.html)
      
      (I'm checking this in for Anthony who was having problems getting SF to
      talk to him)
      0ccff074
  20. 02 Agu, 2004 1 kayıt (commit)
  21. 19 May, 2004 1 kayıt (commit)
    • Raymond Hettinger's avatar
      SF patch #872326: Generator expression implementation · 354433a5
      Raymond Hettinger yazdı
      (Code contributed by Jiwon Seo.)
      
      The documentation portion of the patch is being re-worked and will be
      checked-in soon.  Likewise, PEP 289 will be updated to reflect Guido's
      rationale for the design decisions on binding behavior (as described in
      in his patch comments and in discussions on python-dev).
      
      The test file, test_genexps.py, is written in doctest format and is
      meant to exercise all aspects of the the patch.  Further additions are
      welcome from everyone.  Please stress test this new feature as much as
      possible before the alpha release.
      354433a5
  22. 04 Agu, 2002 1 kayıt (commit)
  23. 24 May, 2002 1 kayıt (commit)
    • Guido van Rossum's avatar
      Disambiguate the grammar for backtick. · 2d3b9864
      Guido van Rossum yazdı
      The old syntax suggested that a trailing comma was OK inside backticks,
      but in fact (due to ideosyncrasies of pgen) it was not.  Fix the grammar
      to avoid the ambiguity.  Fred: you may want to update the refman.
      2d3b9864
  24. 23 May, 2002 1 kayıt (commit)
  25. 15 Eki, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      Very subtle syntax change: in a list comprehension, the testlist in · 1c917072
      Guido van Rossum yazdı
      "for <var> in <testlist> may no longer be a single test followed by
      a comma.  This solves SF bug #431886.  Note that if the testlist
      contains more than one test, a trailing comma is still allowed, for
      maximum backward compatibility; but this example is not:
      
          [(x, y) for x in range(10), for y in range(10)]
                                    ^
      
      The fix involved creating a new nonterminal 'testlist_safe' whose
      definition doesn't allow the trailing comma if there's only one test:
      
          testlist_safe: test [(',' test)+ [',']]
      1c917072
  26. 08 Agu, 2001 1 kayıt (commit)
    • Guido van Rossum's avatar
      Implement PEP 238 in its (almost) full glory. · 4668b000
      Guido van Rossum yazdı
      This introduces:
      
      - A new operator // that means floor division (the kind of division
        where 1/2 is 0).
      
      - The "future division" statement ("from __future__ import division)
        which changes the meaning of the / operator to implement "true
        division" (where 1/2 is 0.5).
      
      - New overloadable operators __truediv__ and __floordiv__.
      
      - New slots in the PyNumberMethods struct for true and floor division,
        new abstract APIs for them, new opcodes, and so on.
      
      I emphasize that without the future division statement, the semantics
      of / will remain unchanged until Python 3.0.
      
      Not yet implemented are warnings (default off) when / is used with int
      or long arguments.
      
      This has been on display since 7/31 as SF patch #443474.
      
      Flames to /dev/null.
      4668b000
  27. 18 Haz, 2001 1 kayıt (commit)
  28. 27 Şub, 2001 1 kayıt (commit)
  29. 24 Agu, 2000 1 kayıt (commit)
  30. 23 Agu, 2000 1 kayıt (commit)
  31. 22 Agu, 2000 1 kayıt (commit)
  32. 21 Agu, 2000 1 kayıt (commit)
  33. 17 Agu, 2000 1 kayıt (commit)
  34. 12 Agu, 2000 1 kayıt (commit)
  35. 28 Mar, 2000 1 kayıt (commit)
    • Jeremy Hylton's avatar
      slightly modified version of Greg Ewing's extended call syntax patch · 7690151c
      Jeremy Hylton yazdı
      executive summary:
      Instead of typing 'apply(f, args, kwargs)' you can type 'f(*arg, **kwargs)'.
      Some file-by-file details follow.
      
      Grammar/Grammar:
          simplify varargslist, replacing '*' '*' with '**'
          add * & ** options to arglist
      
      Include/opcode.h & Lib/dis.py:
          define three new opcodes
              CALL_FUNCTION_VAR
              CALL_FUNCTION_KW
              CALL_FUNCTION_VAR_KW
      
      Python/ceval.c:
          extend TypeError "keyword parameter redefined" message to include
              the name of the offending keyword
          reindent CALL_FUNCTION using four spaces
          add handling of sequences and dictionaries using extend calls
          fix function import_from to use PyErr_Format
      7690151c
  36. 09 Nis, 1998 1 kayıt (commit)
  37. 16 Nis, 1997 1 kayıt (commit)