Commit Graph

904 Commits

Author SHA1 Message Date
Georg Brandl 347fe5ce3c Encoding fix. 2010-10-27 07:21:54 +00:00
Georg Brandl 123015e10a faqwiz is removed. 2010-10-26 10:42:16 +00:00
Georg Brandl f19ff1ea7d Work a bit more on tkinter demos. 2010-10-26 10:39:14 +00:00
Georg Brandl 856023a098 #3018: tkinter demo fixes for py3k. 2010-10-25 17:50:20 +00:00
Benjamin Peterson aa96592a59 remove obselete import implementation #7287 2010-10-13 21:59:36 +00:00
Victor Stinner 16004ace5b Use os.fsencode() to support surrogates 2010-09-29 16:59:18 +00:00
Georg Brandl a52bae7521 Remove usage of rexec in tkinter demo. 2010-08-21 23:20:01 +00:00
Georg Brandl 0db85e5d46 Fix-up some tkinter demos. 2010-08-02 23:30:09 +00:00
Georg Brandl 36f72d3396 Remove reference to removed faqwiz tool. 2010-08-02 23:18:35 +00:00
Georg Brandl 68642f5ed0 Remove obsolete pdist demo. 2010-08-02 23:17:21 +00:00
Georg Brandl 2db2b8a17d Another demo that at least runs again. 2010-08-02 23:15:58 +00:00
Georg Brandl fb3b12d0c0 Make minigzip work again. 2010-08-02 23:13:24 +00:00
Georg Brandl 5ec5fed487 Update Demo README. 2010-08-02 23:13:12 +00:00
Georg Brandl 6faacd3bba Update README, remove obsolete script. 2010-08-02 22:55:17 +00:00
Georg Brandl 272fc1023a #6439: fix argument type for PySys_SetArgvEx() and Py_SetProgramName() in Demo/embed code. 2010-08-01 14:25:22 +00:00
Alexander Belopolsky 31c2740760 "Modernized" the demo a little. 2010-07-05 21:44:05 +00:00
Georg Brandl 5ada7c7315 Update Vec class constructor, remove indirection via function, use operator module. 2010-07-05 20:13:41 +00:00
Georg Brandl dc00a2a249 Remove Dbm. 2010-07-05 20:13:06 +00:00
Mark Dickinson 6a4e3c5f12 Make Demo/parser/test_parser.py run. 2010-07-04 18:49:18 +00:00
Alexander Belopolsky 7cb6f2fe10 Fixed the test 2010-07-04 17:47:30 +00:00
Alexander Belopolsky 06360405dc Fixed doctests 2010-07-04 17:38:32 +00:00
Georg Brandl be7a7553cd Remove old and unsafe Dbm demo class. 2010-07-04 07:25:18 +00:00
Alexander Belopolsky 74135d0ad9 Made minimal modifications to pass included tests 2010-07-03 22:36:06 +00:00
Alexander Belopolsky 401d856309 Issue #9151: Demo/classes/Dates.py does not work in 3.x Converted
descriptive comment into a docstring.  Cast attributes to int in
__init__.  Use __new__ instead of deleting attributes to
"uninitialize".
2010-07-03 22:05:41 +00:00
Alexander Belopolsky bb3565d412 Issue #9151: Demo/classes/Dates.py does not work in 3.x
Made minimal changes to make included test pass.
2010-07-03 21:42:47 +00:00
Mark Dickinson cba8c10b5c Unparse infinite imaginary literals correctly. Add some more numeric tests. 2010-06-30 11:45:53 +00:00
Mark Dickinson abe52d749c Revert accidental extra changes included in r82391. 2010-06-30 11:14:30 +00:00
Mark Dickinson 50b79a80bd Issue #9011: Tests for Python 3.2's treatment of negated imaginary literals. 2010-06-30 11:13:36 +00:00
Mark Dickinson af0e1544bf Remove backtick syntax for repr. 2010-06-30 09:14:43 +00:00
Mark Dickinson b67e15c53c Better solution for attribute access on integer literals. 2010-06-30 09:05:47 +00:00
Mark Dickinson 81ad8ccdfb Output try-except-finally statements where appropriate. 2010-06-30 08:46:53 +00:00
Mark Dickinson 8d6d760422 Collapse else: if: ... into elif: 2010-06-30 08:32:11 +00:00
Mark Dickinson 578aa56f9a Fix typo in unparsing of a class definition. 2010-06-29 18:38:59 +00:00
Mark Dickinson d751c2eafc test_unparse.py: Do roundtrip testing for all Python files in Lib and Lib/test. 2010-06-29 14:08:23 +00:00
Mark Dickinson 8042e28192 More unparse.py fixes:
- parenthesize lambdas, to avoid turning (lambda : int)() into lambda: int()
 - unparse an infinite float literals in the AST as an overflowing finite value

unparse.py now successfully round-trips on all valid Lib/*.py and Lib/test/*.py files.
2010-06-29 10:01:48 +00:00
Mark Dickinson 3eb0290346 Add parentheses around numeric literals, to avoid turning 3 .bit_length() into 3.bit_length(). 2010-06-29 08:52:36 +00:00
Mark Dickinson 82c8d93357 unparse.py: respect coding cookie in input files 2010-06-29 07:48:23 +00:00
Brian Curtin 3778db7b51 Update md5driver.py for 3.x.
Changed an import, replaced md5.new() with md5(), and added an encode where needed.
2010-06-29 00:14:28 +00:00
Mark Dickinson 3d1bfbf9a6 unparse.py: Typo fix. 2010-06-28 21:39:51 +00:00
Mark Dickinson fa2e4e9d04 Update Demo/parser/unparse.py to current Python 3.x syntax. Additions:
- relative imports
 - keyword-only arguments
 - function annotations
 - class decorators
 - raise ... from ...
 - except ... as ...
 - nonlocal
 - bytes literals
 - set literals
 - set comprehensions
 - dict comprehensions
Removals:
 - print statement.

Some of this should be backported to 2.x.
2010-06-28 21:14:17 +00:00
Mark Dickinson f5451e546a Merged revisions 82345 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82345 | mark.dickinson | 2010-06-28 20:54:19 +0100 (Mon, 28 Jun 2010) | 1 line

  unparse.py:  fix mispaced parentheses in chained comparisons
........
2010-06-28 20:09:18 +00:00
Mark Dickinson ae1000533a Merged revisions 82338,82340-82341 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r82338 | mark.dickinson | 2010-06-28 20:31:41 +0100 (Mon, 28 Jun 2010) | 9 lines

  Fix some shallow bugs in Demo/parser/unparse.py, and add tests:

    - insert commas between entries in del statement
    - left and right shifts were represented as >> and << (respectively); reverse
    - unindent properly after for: else:  or while: else:
    - add parens around the result of an unary operation
    - add parens around negative numbers, to avoid turning (-1)**2 into -1**2.
........
  r82340 | mark.dickinson | 2010-06-28 20:34:15 +0100 (Mon, 28 Jun 2010) | 1 line

  Fix typo in test_unparse.py.
........
  r82341 | mark.dickinson | 2010-06-28 20:38:19 +0100 (Mon, 28 Jun 2010) | 1 line

  Set svn:eol-style on test_unparse.py.
........
2010-06-28 19:44:20 +00:00
Benjamin Peterson 68d83d1c7f Merged revisions 81880 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81880 | andrew.kuchling | 2010-06-10 19:14:34 -0500 (Thu, 10 Jun 2010) | 1 line

  Edit comments for current Python; bump version number of Python
........
2010-06-27 23:21:13 +00:00
Benjamin Peterson 2ebf8ce488 Merged revisions 81881-81882 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81881 | andrew.kuchling | 2010-06-10 19:16:08 -0500 (Thu, 10 Jun 2010) | 1 line

  #5753: update demo.c to use PySys_SetArgvEx(), and add a comment
........
  r81882 | andrew.kuchling | 2010-06-10 19:23:01 -0500 (Thu, 10 Jun 2010) | 1 line

  #5753: Suggest PySys_SetArgvEx() instead of PySys_SetArgv()
........
2010-06-27 21:48:35 +00:00
Antoine Pitrou f95a1b3c53 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.
........
2010-05-09 15:52:27 +00:00
Ronald Oussoren 94f25283c9 Remove traces of MacOS9 support.
Fix for issue #7908
2010-05-05 19:11:21 +00:00
Benjamin Peterson 9c6bd77e39 Merged revisions 78779 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r78779 | benjamin.peterson | 2010-03-07 20:11:06 -0600 (Sun, 07 Mar 2010) | 1 line

  remove svn:executable from scripts without a shebang line
........
2010-03-21 22:42:02 +00:00
Benjamin Peterson 852f3cc0d1 fix demo/doc eol 2010-03-19 20:58:52 +00:00
Benjamin Peterson 90f5ba538b convert shebang lines: python -> python3 2010-03-11 22:53:45 +00:00
Benjamin Peterson f6489f941c Merged revisions 75264,75268,75293,75318,75391-75392,75436,75478,75971,76003,76058,76140-76141,76231,76380,76428-76429 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75264 | andrew.kuchling | 2009-10-05 17:30:22 -0500 (Mon, 05 Oct 2009) | 1 line

  Add various items
........
  r75268 | andrew.kuchling | 2009-10-05 17:45:39 -0500 (Mon, 05 Oct 2009) | 1 line

  Remove two notes
........
  r75293 | kristjan.jonsson | 2009-10-09 09:32:19 -0500 (Fri, 09 Oct 2009) | 2 lines

  http://bugs.python.org/issue7029
  a non-default timer wasn't actually used by the individual Tests.
........
  r75318 | benjamin.peterson | 2009-10-10 16:15:58 -0500 (Sat, 10 Oct 2009) | 1 line

  remove script which uses long gone module
........
  r75391 | andrew.kuchling | 2009-10-13 10:49:33 -0500 (Tue, 13 Oct 2009) | 1 line

  Link to PEP
........
  r75392 | andrew.kuchling | 2009-10-13 11:11:49 -0500 (Tue, 13 Oct 2009) | 1 line

  Various link, textual, and markup fixes
........
  r75436 | benjamin.peterson | 2009-10-15 10:39:15 -0500 (Thu, 15 Oct 2009) | 1 line

  don't need to mess up sys.path
........
  r75478 | senthil.kumaran | 2009-10-17 20:58:45 -0500 (Sat, 17 Oct 2009) | 3 lines

  Fix a typo.
........
  r75971 | benjamin.peterson | 2009-10-30 22:56:15 -0500 (Fri, 30 Oct 2009) | 1 line

  add some checks for evaluation order with parenthesis #7210
........
  r76003 | antoine.pitrou | 2009-10-31 19:30:13 -0500 (Sat, 31 Oct 2009) | 6 lines

  Hopefully fix the buildbot problems on test_mailbox, by computing
  the maildir toc cache refresh date before actually refreshing the cache.

  (see #6896)
........
  r76058 | benjamin.peterson | 2009-11-02 10:14:19 -0600 (Mon, 02 Nov 2009) | 1 line

  grant list.index() a more informative error message #7252
........
  r76140 | nick.coghlan | 2009-11-07 02:13:55 -0600 (Sat, 07 Nov 2009) | 1 line

  Add test for runpy.run_module package execution and use something other than logging as the example of a non-executable package
........
  r76141 | nick.coghlan | 2009-11-07 02:15:01 -0600 (Sat, 07 Nov 2009) | 1 line

  Some minor cleanups to private runpy code and docstrings
........
  r76231 | benjamin.peterson | 2009-11-12 17:42:23 -0600 (Thu, 12 Nov 2009) | 1 line

  this main is much more useful
........
  r76380 | antoine.pitrou | 2009-11-18 14:20:46 -0600 (Wed, 18 Nov 2009) | 3 lines

  Mention Giampolo R's new FTP TLS support in the what's new file
........
  r76428 | benjamin.peterson | 2009-11-19 20:15:50 -0600 (Thu, 19 Nov 2009) | 1 line

  turn goto into do while loop
........
  r76429 | benjamin.peterson | 2009-11-19 20:56:43 -0600 (Thu, 19 Nov 2009) | 2 lines

  avoid doing an uneeded import in a function
........
2009-11-25 17:46:26 +00:00