Benjamin Peterson
a45ab9f37d
NIL => NULL
2008-03-28 23:11:01 +00:00
Amaury Forgeot d'Arc
1725f2470b
One #ifdef too much, and I broke all windows buildbots:
...
in pyconfig.h, NTDDI_WIN2KSP4 is not *yet* defined, but will be at some point on some modules.
Let this line even for older SDKs, they don't use it anyway.
2008-03-28 22:43:38 +00:00
Amaury Forgeot d'Arc
94eba715ad
Repair compilation for Visual Studio 2005.
...
I applied the same changes manually to VS7.1 and VC6 files; completely untested.
(Christian, don't try too hard merging this change into py3k.
It will be easier to do the same work again on the branch)
2008-03-28 21:55:29 +00:00
Benjamin Peterson
41cf50d613
#2498 modernized try, except, finally statements in bdb
2008-03-28 20:56:00 +00:00
Amaury Forgeot d'Arc
69b747b735
Fix a reference leak found by Georg, when compiling a class nested in another class.
...
Now "regrtest.py -R:: test_compile" is satisfied.
Will backport.
2008-03-28 20:30:50 +00:00
Georg Brandl
aa5fbdd71a
Silence compiler warning at the source.
2008-03-28 20:22:56 +00:00
Amaury Forgeot d'Arc
473445c964
Silence a compilation warning
2008-03-28 20:17:51 +00:00
Gregory P. Smith
a98be45f18
These svn adds were forgotten in r62000
2008-03-28 20:11:49 +00:00
Gerhard Häring
2a11c05b9d
Update sqlite3 module to match current version of pysqlite.
2008-03-28 20:08:36 +00:00
Georg Brandl
d289ea6df9
#2502 : add example how to do enum types with named tuples.
2008-03-28 12:58:26 +00:00
Georg Brandl
489343e948
Don't use the confusing term "set membership".
2008-03-28 12:24:51 +00:00
Georg Brandl
8ca6c84b6f
Phase out has_key usage in the tutorial; correct docs for PyMapping_HasKey*.
2008-03-28 12:22:12 +00:00
Georg Brandl
fc8eef3c78
Patch #1810 by Thomas Lee, reviewed by myself:
...
allow compiling Python AST objects into code objects
in compile().
2008-03-28 12:11:56 +00:00
Gregory P. Smith
b9803421d2
Accept patch issue2426 by Paul Kippes (kippesp).
...
Adds sqlite3.Connection.iterdump to allow dumping of databases.
2008-03-28 08:32:09 +00:00
Georg Brandl
621cd26253
#2406 : add examples to gzip docs.
2008-03-28 08:06:56 +00:00
Gregory P. Smith
0001c2ecbc
This patch moves some tests from test_urllib2_net to test_urllib2_localnet.
...
The moved tests use a local server rather than going out to external servers.
Accepts patch from issue2429.
Contributed by Jerry Seutter & Michael Foord (fuzzyman) at PyCon 2008.
2008-03-28 08:00:44 +00:00
Neal Norwitz
ab364c4366
Name the main method correctly so the test is run
2008-03-28 07:36:31 +00:00
Neal Norwitz
70cea58c84
Bug 1503: Get the test to pass on OSX. This should make the test more
...
reliable, but I'm not convinced it is the right solution. We need
to determine if this causes the test to hang on any platforms or do
other bad things.
Even if it gets the test to pass reliably, it might be that we want
to fix this in socket. The socket returned from accept() is different
on different platforms (inheriting attributes or not) and we might
want to ensure that the attributes (at least blocking) is the same
across all platforms.
2008-03-28 06:34:03 +00:00
Neal Norwitz
9fdfaaf9af
Fix compiler warning about finite() missing on Solaris.
2008-03-28 05:34:59 +00:00
Martin v. Löwis
85a896902c
Merged revisions 61825-61989 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r61899 | collin.winter | 2008-03-25 17:53:41 +0100 (Di, 25 Mär 2008) | 1 line
Add a missing explicit fixer to test_all_fixers.
........
r61983 | collin.winter | 2008-03-28 03:19:46 +0100 (Fr, 28 Mär 2008) | 2 lines
Fix http://bugs.python.org/issue2453 : support empty excepts in fix_except.
........
2008-03-28 05:27:44 +00:00
Martin v. Löwis
53dbcd33a9
Run 2to3 tests.
2008-03-28 05:26:10 +00:00
Martin v. Löwis
fac4f095c1
Disable test that depends on #2412 being fixed.
2008-03-28 05:25:36 +00:00
Neal Norwitz
d183bdd6fb
Revert r61969 which added casts to Py_CHARMASK to avoid compiler warnings.
...
Rather than sprinkle casts throughout the code, change Py_CHARMASK to
always cast it's result to an unsigned char. This should ensure we
do the right thing when accessing an array with the result.
2008-03-28 04:58:51 +00:00
Jeffrey Yasskin
36550bdde9
Print more information the next time test_socket throws the wrong exception.
2008-03-28 04:53:10 +00:00
Neal Norwitz
023cd00ccc
Allow use of other ports so the test can pass if 9091 is in use
2008-03-28 04:41:34 +00:00
Jeffrey Yasskin
8b9091fba0
Kill a race in test_threading in which the exception info in a thread finishing
...
up after it was joined had a traceback pointing to that thread's (deleted)
target attribute, while the test was trying to check that the target was
destroyed. Big thanks to Antoine Pitrou for diagnosing the race and pointing
out sys.exc_clear() to kill the exception early. This fixes issue 2496.
2008-03-28 04:11:18 +00:00
Amaury Forgeot d'Arc
7db15fe9d9
test_future3.py is a regular test file, and should be part of the test suite
2008-03-28 00:21:34 +00:00
Amaury Forgeot d'Arc
da0c025a43
Issue2495: tokenize.untokenize did not insert space between two consecutive string literals:
...
"" "" => """", which is invalid code.
Will backport
2008-03-27 23:23:54 +00:00
Georg Brandl
853e44ca8c
The bug for which there was a test in outstanding_bugs.py was agreed not to be a bug.
2008-03-27 13:34:59 +00:00
Georg Brandl
deaf2cafbd
#2248 : return result of QUIT from quit().
2008-03-27 13:27:31 +00:00
Christian Heimes
6c052fd523
Fixed tokenize tests
...
The tokenize module doesn't understand __future__.unicode_literals yet
2008-03-27 11:46:37 +00:00
Christian Heimes
61e4590ec9
Build bots are working again - removing the hack
2008-03-27 10:35:52 +00:00
Eric Smith
23a48ad101
Added test cases for single quoted strings, both forms of triple quotes,
...
and some string concatenations.
Removed unneeded __future__ print_function import.
2008-03-27 09:42:35 +00:00
Christian Heimes
81caa790b6
Quick 'n dirty hack: Increase the magic by 2 to force a rebuild of pyc/pyo files on the build bots
2008-03-27 09:02:33 +00:00
Neal Norwitz
c0a56ff908
Pluralss only need one s, not 2 (intss -> ints)
2008-03-27 06:52:01 +00:00
Neal Norwitz
5802bb2319
Fix compiler warnings
2008-03-27 05:03:11 +00:00
Neal Norwitz
311d071541
Fix test_compiler after adding unicode_literals
2008-03-27 05:02:57 +00:00
Neal Norwitz
231346e23f
Fix warnings about using char as an array subscript. This is not portable
...
since char is signed on some platforms and unsigned on others.
2008-03-27 04:40:50 +00:00
Neal Norwitz
4ebd46a02d
Fix memory leaks
2008-03-27 04:40:07 +00:00
Neal Norwitz
0bcd613e9f
Fix bytes so it works on 64-bit platforms.
...
(Also remove some #if 0 code that is already handled in _getbytevalue.)
2008-03-27 03:49:54 +00:00
Christian Heimes
9a960c6015
Revert commit accident
2008-03-27 01:38:47 +00:00
Christian Heimes
a82e8db5e4
Hopefully added _fileio module to the Windows build system
2008-03-27 01:36:21 +00:00
Benjamin Peterson
8113586723
add commas for introductory clauses
2008-03-27 00:25:33 +00:00
Christian Heimes
3784c6b1af
Use the new unicode literals for the io module
...
use basestring instead of str in Python 2.x
2008-03-26 23:13:59 +00:00
Amaury Forgeot d'Arc
df70e05d22
C89 compliance: Microsoft compilers want variable declarations at the top
2008-03-26 23:07:43 +00:00
Christian Heimes
fa50bad957
I forgot to svn add the future test
2008-03-26 22:55:31 +00:00
Christian Heimes
7f23d86107
Initialize PyCompilerFlags cf_flags with 0
2008-03-26 22:51:58 +00:00
Christian Heimes
342212c52a
Surround p_flags access with #ifdef PY_PARSER_REQUIRES_FUTURE_KEYWORD
2008-03-26 22:20:26 +00:00
Christian Heimes
3c60833e1e
Patch #2477 : Added from __future__ import unicode_literals
...
The new PyParser_*Ex() functions are based on Neal's suggestion and initial patch. The new __future__ feature makes all '' and r'' unicode strings. b'' and br'' stay (byte) strings.
2008-03-26 22:01:37 +00:00
Mark Dickinson
0cb3e86c47
Typo: "objects reference count" -> "object's reference count"
2008-03-26 21:41:36 +00:00