Commit Graph

79 Commits

Author SHA1 Message Date
Guido van Rossum
b940e113bf SF patch 1631942 by Collin Winter:
(a) "except E, V" -> "except E as V"
(b) V is now limited to a simple name (local variable)
(c) V is now deleted at the end of the except block
2007-01-10 16:19:56 +00:00
Neal Norwitz
3bd844e695 Get rid of most of the remaining uses of <>. There's still Tools/* thogh. 2006-08-29 04:39:12 +00:00
Thomas Wouters
49fd7fa443 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.
2006-04-21 10:40:58 +00:00
Neal Norwitz
ce96f69d69 Get rid of a bunch more raw_input references 2006-03-17 06:49:51 +00:00
Johannes Gijsbers
7a8c43ee6a Add 'if __name__ == "__main__":' to files already as a usable as a module. 2004-09-11 16:34:35 +00:00
Andrew M. Kuchling
6a507a104d Remove mpzpi demo 2004-08-31 13:42:11 +00:00
Tim Peters
e6ddc8b20b Whitespace normalization. Ran reindent.py over the entire source tree. 2004-07-18 05:56:09 +00:00
Andrew M. Kuchling
0ec0b725ae Fix comment typo 2004-07-17 14:44:17 +00:00
Walter Dörwald
70a6b49821 Replace backticks with repr() or "%r"
From SF patch #852334.
2004-02-12 17:35:32 +00:00
Raymond Hettinger
bbd290ab8d Revert previous change which didn't make sense the next day :-) 2003-12-10 15:22:23 +00:00
Raymond Hettinger
e807da807c Update to use python ints and int/long unification. 2003-12-10 01:58:52 +00:00
Martin v. Löwis
bb640c15a1 Patch #748849: Update to current tools and demos. 2003-06-07 18:46:34 +00:00
Skip Montanaro
2cfc4725d5 add find-uname.py 2003-01-01 20:27:13 +00:00
Skip Montanaro
f2c47114e7 Search for Unicode character names using regular expressions. 2003-01-01 20:26:47 +00:00
Guido van Rossum
3b0a3293c3 Massive changes from SF 589982 (tempfile.py rewrite, by Zack
Weinberg).  This changes all uses of deprecated tempfile functions to
the recommended ones.
2002-08-09 16:38:32 +00:00
Guido van Rossum
1b776a2745 Deleting merge zombie. 2001-07-17 13:57:17 +00:00
Moshe Zadka
273ad453f5 Updated to use new Python features
Reindented
2001-02-20 16:32:24 +00:00
Moshe Zadka
8b6f989815 Fixed to use new Python features and use more commonly accepted style
Reindented
2001-02-20 16:21:35 +00:00
Moshe Zadka
38e083bcc9 Changed to use the fact that str(long) doesn't produce a trailing L
Reindented
2001-02-20 16:13:43 +00:00
Guido van Rossum
4526f2a230 A solution to the classic N queens problem. 2000-11-16 21:25:51 +00:00
Guido van Rossum
d9e5d17407 Fix bug discovered by Klaus-Juergen Wolf -- it runs into infinite recursion! 1999-06-09 19:07:22 +00:00
Guido van Rossum
b55f9ff68c 100 bottles of beer on the wall example.
After a version by Fredrik Lundh that I found on the web somewhere.
(I like mine better, but of course that may have to do with my alcohol
consumption. :-)
1998-12-21 18:30:20 +00:00
Guido van Rossum
4117e5428b nannified 1998-09-14 16:44:15 +00:00
Guido van Rossum
6c3a2cbc52 whrandom -> random 1998-05-20 17:13:01 +00:00
Guido van Rossum
ba179051aa Fix the way the version number is gotten out of the RCS revision. 1997-12-09 19:39:12 +00:00