Alexander Belopolsky
ea13d9d86b
Issue #10199 : Moved Demo/turtle under Lib/
2010-11-01 17:39:37 +00:00
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