Commit Graph

892 Commits

Author SHA1 Message Date
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
Georg Brandl 495f7b5adb Merged revisions 75365,75394,75402-75403,75418,75459,75484,75592-75596,75600,75602-75607,75610-75613,75616-75617,75623,75627,75640,75647,75696,75795 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75365 | georg.brandl | 2009-10-11 22:16:16 +0200 (So, 11 Okt 2009) | 1 line

  Fix broken links found by "make linkcheck".  scipy.org seems to be done right now, so I could not verify links going there.
........
  r75394 | georg.brandl | 2009-10-13 20:10:59 +0200 (Di, 13 Okt 2009) | 1 line

  Fix markup.
........
  r75402 | georg.brandl | 2009-10-14 17:51:48 +0200 (Mi, 14 Okt 2009) | 1 line

  #7125: fix typo.
........
  r75403 | georg.brandl | 2009-10-14 17:57:46 +0200 (Mi, 14 Okt 2009) | 1 line

  #7126: os.environ changes *do* take effect in subprocesses started with os.system().
........
  r75418 | georg.brandl | 2009-10-14 20:48:32 +0200 (Mi, 14 Okt 2009) | 1 line

  #7116: str.join() takes an iterable.
........
  r75459 | georg.brandl | 2009-10-17 10:57:43 +0200 (Sa, 17 Okt 2009) | 1 line

  Fix refleaks in _ctypes PyCSimpleType_New, which fixes the refleak seen in test___all__.
........
  r75484 | georg.brandl | 2009-10-18 09:58:12 +0200 (So, 18 Okt 2009) | 1 line

  Fix missing word.
........
  r75592 | georg.brandl | 2009-10-22 09:05:48 +0200 (Do, 22 Okt 2009) | 1 line

  Fix punctuation.
........
  r75593 | georg.brandl | 2009-10-22 09:06:49 +0200 (Do, 22 Okt 2009) | 1 line

  Revert unintended change.
........
  r75594 | georg.brandl | 2009-10-22 09:56:02 +0200 (Do, 22 Okt 2009) | 1 line

  Fix markup.
........
  r75595 | georg.brandl | 2009-10-22 09:56:56 +0200 (Do, 22 Okt 2009) | 1 line

  Fix duplicate target.
........
  r75596 | georg.brandl | 2009-10-22 10:05:04 +0200 (Do, 22 Okt 2009) | 1 line

  Add a new directive marking up implementation details and start using it.
........
  r75600 | georg.brandl | 2009-10-22 13:01:46 +0200 (Do, 22 Okt 2009) | 1 line

  Make it more robust.
........
  r75602 | georg.brandl | 2009-10-22 13:28:06 +0200 (Do, 22 Okt 2009) | 1 line

  Document new directive.
........
  r75603 | georg.brandl | 2009-10-22 13:28:23 +0200 (Do, 22 Okt 2009) | 1 line

  Allow short form with text as argument.
........
  r75604 | georg.brandl | 2009-10-22 13:36:50 +0200 (Do, 22 Okt 2009) | 1 line

  Fix stylesheet for multi-paragraph impl-details.
........
  r75605 | georg.brandl | 2009-10-22 13:48:10 +0200 (Do, 22 Okt 2009) | 1 line

  Use "impl-detail" directive where applicable.
........
  r75606 | georg.brandl | 2009-10-22 17:00:06 +0200 (Do, 22 Okt 2009) | 1 line

  #6324: membership test tries iteration via __iter__.
........
  r75607 | georg.brandl | 2009-10-22 17:04:09 +0200 (Do, 22 Okt 2009) | 1 line

  #7088: document new functions in signal as Unix-only.
........
  r75610 | georg.brandl | 2009-10-22 17:27:24 +0200 (Do, 22 Okt 2009) | 1 line

  Reorder __slots__ fine print and add a clarification.
........
  r75611 | georg.brandl | 2009-10-22 17:42:32 +0200 (Do, 22 Okt 2009) | 1 line

  #7035: improve docs of the various <method>_errors() functions, and give them docstrings.
........
  r75612 | georg.brandl | 2009-10-22 17:52:15 +0200 (Do, 22 Okt 2009) | 1 line

  #7156: document curses as Unix-only.
........
  r75613 | georg.brandl | 2009-10-22 17:54:35 +0200 (Do, 22 Okt 2009) | 1 line

  #6977: getopt does not support optional option arguments.
........
  r75616 | georg.brandl | 2009-10-22 18:17:05 +0200 (Do, 22 Okt 2009) | 1 line

  Add proper references.
........
  r75617 | georg.brandl | 2009-10-22 18:20:55 +0200 (Do, 22 Okt 2009) | 1 line

  Make printout margin important.
........
  r75623 | georg.brandl | 2009-10-23 10:14:44 +0200 (Fr, 23 Okt 2009) | 1 line

  #7188: fix optionxform() docs.
........
  r75627 | fred.drake | 2009-10-23 15:04:51 +0200 (Fr, 23 Okt 2009) | 2 lines

  add further note about what's passed to optionxform
........
  r75640 | neil.schemenauer | 2009-10-23 21:58:17 +0200 (Fr, 23 Okt 2009) | 2 lines

  Improve some docstrings in the 'warnings' module.
........
  r75647 | georg.brandl | 2009-10-24 12:04:19 +0200 (Sa, 24 Okt 2009) | 1 line

  Fix markup.
........
  r75696 | georg.brandl | 2009-10-25 21:25:43 +0100 (So, 25 Okt 2009) | 1 line

  Fix a demo.
........
  r75795 | georg.brandl | 2009-10-27 16:10:22 +0100 (Di, 27 Okt 2009) | 1 line

  Fix a strange mis-edit.
........
2009-10-27 15:28:25 +00:00
Georg Brandl bc470d5023 Merged revisions 75358 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75358 | georg.brandl | 2009-10-11 17:06:44 +0200 (So, 11 Okt 2009) | 1 line

  Overhaul of Demo/xml.
........
2009-10-11 15:56:06 +00:00
Georg Brandl 97b0837587 Merged revisions 75356 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75356 | georg.brandl | 2009-10-11 16:49:37 +0200 (So, 11 Okt 2009) | 1 line

  Remove ftpstats script, the daemon whose log files it reads is long gone.
........
2009-10-11 14:50:57 +00:00
Georg Brandl ec8aab6e4c Merged revisions 75354 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75354 | georg.brandl | 2009-10-11 16:23:49 +0200 (So, 11 Okt 2009) | 1 line

  Update lpwatch script.
........
2009-10-11 14:27:51 +00:00
Georg Brandl 41706b3293 Merged revisions 75350 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75350 | georg.brandl | 2009-10-11 14:00:18 +0200 (So, 11 Okt 2009) | 1 line

  Use getopt in script.py demo.
........
2009-10-11 12:04:10 +00:00
Mark Dickinson b243ed2663 Merged revisions 75348 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75348 | mark.dickinson | 2009-10-11 11:01:17 +0100 (Sun, 11 Oct 2009) | 1 line

  Set missing executable property on scripts
........
2009-10-11 10:32:51 +00:00
Mark Dickinson 0caa5766a3 Merged revisions 75346 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75346 | mark.dickinson | 2009-10-11 10:35:57 +0100 (Sun, 11 Oct 2009) | 1 line

  Fix 'primes 0 1'
........
2009-10-11 09:40:17 +00:00
Georg Brandl edbc50cd0e Merged revisions 75344 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75344 | georg.brandl | 2009-10-11 10:48:28 +0200 (So, 11 Okt 2009) | 1 line

  Update primes script.
........
2009-10-11 08:49:57 +00:00
Georg Brandl 5f8814dabd Merged revisions 75342 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75342 | georg.brandl | 2009-10-11 10:45:03 +0200 (So, 11 Okt 2009) | 1 line

  Remove useless script "mkrcs" and update README.
........
2009-10-11 08:46:56 +00:00
Georg Brandl be0ee2b2fd Fix README description. 2009-10-11 08:43:08 +00:00
Georg Brandl 2cbd09ca7e Merged revisions 75339 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75339 | georg.brandl | 2009-10-11 10:39:16 +0200 (So, 11 Okt 2009) | 1 line

  Update markov demo.
........
2009-10-11 08:42:09 +00:00
Georg Brandl e63514b0e3 Merged revisions 75337 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75337 | georg.brandl | 2009-10-11 10:18:44 +0200 (So, 11 Okt 2009) | 1 line

  Update morse script, avoid globals, use iterators.
........
2009-10-11 08:31:41 +00:00