Tim Peters [Thu, 9 Mar 2006 22:31:45 +0000 (22:31 +0000)]
NodeInfo.__gen_init(): Fiddle so that reindent.py is
happy with the output as-is. This incidentally also
gets rid of "an extra" blank line at the end of the output
block that probably wasn't intended (although it doesn't
matter one way or the other).
Thomas Heller [Thu, 9 Mar 2006 19:40:00 +0000 (19:40 +0000)]
Remove the magic to run an uninstalled ctypes version from a CVS sandbox.
Andrew M. Kuchling [Thu, 9 Mar 2006 19:06:05 +0000 (19:06 +0000)]
Write a section
Thomas Heller [Thu, 9 Mar 2006 18:49:35 +0000 (18:49 +0000)]
Deleted the svn_mime-type application/octet-stream from PCBuild/pcbuild.sln.
Tools/scripts/svneol.py: added the .sln and .vcproj extensions because these are text files.
Ran svneol.py over the source tree.
Thomas Heller [Thu, 9 Mar 2006 17:35:20 +0000 (17:35 +0000)]
Added VC project files to build _ctypes.pyd and _ctypes_test.pyd on Windows.
Settings for 64-bit Windows are missing.
I've left in the 64-bit warnings to remind me to port ctypes to Py_ssize_t.
Andrew M. Kuchling [Thu, 9 Mar 2006 13:57:28 +0000 (13:57 +0000)]
Markup fix
Andrew M. Kuchling [Thu, 9 Mar 2006 13:56:25 +0000 (13:56 +0000)]
Write a section
Georg Brandl [Thu, 9 Mar 2006 13:27:14 +0000 (13:27 +0000)]
Bug #
1442874: handle "<!>", the empty SGML comment
Georg Brandl [Thu, 9 Mar 2006 10:16:42 +0000 (10:16 +0000)]
typo
Thomas Heller [Thu, 9 Mar 2006 09:43:53 +0000 (09:43 +0000)]
Disable the testcase that crashes solaris.
Thomas Heller [Thu, 9 Mar 2006 07:21:33 +0000 (07:21 +0000)]
Replace the trivial ctypes test (did only an import) with the real test suite.
Neal Norwitz [Thu, 9 Mar 2006 05:58:11 +0000 (05:58 +0000)]
Try to be a bit more consistent on all platforms:
python .
python < .
both print a message, return non-zero and do not core dump.
Martin v. Löwis [Thu, 9 Mar 2006 02:20:05 +0000 (02:20 +0000)]
Directly read working copy data to obtain list of properties.
Tim Peters [Thu, 9 Mar 2006 01:59:27 +0000 (01:59 +0000)]
Taught svneol to look at .c and .h files too, and
it found a bunch more in need of svn:eol-style.
Tim Peters [Thu, 9 Mar 2006 01:42:24 +0000 (01:42 +0000)]
Simple utility to add svn:eol-style to text files under
SVN control. Like reindent.py, I expect to run this
mindlessly from time to time, checking in whatever it
happens to do ;-)
Martin v. Löwis [Thu, 9 Mar 2006 01:35:32 +0000 (01:35 +0000)]
Set auto-props
Tim Peters [Thu, 9 Mar 2006 01:15:05 +0000 (01:15 +0000)]
Whitespace normalization.
Tim Peters [Thu, 9 Mar 2006 01:07:25 +0000 (01:07 +0000)]
These text files were all missing the svn:eol-style property.
Hye-Shik Chang [Wed, 8 Mar 2006 23:31:17 +0000 (23:31 +0000)]
Remove .cvsignore and set svn:ignore for *.pyc *.pyo.
Georg Brandl [Wed, 8 Mar 2006 20:59:09 +0000 (20:59 +0000)]
Bug #
1445901: os.path.realpath() is available on Win/Mac too.
Thomas Heller [Wed, 8 Mar 2006 20:38:11 +0000 (20:38 +0000)]
Trivial test for ctypes, more to come
Thomas Heller [Wed, 8 Mar 2006 19:56:54 +0000 (19:56 +0000)]
Copy ctypes-0.9.9.4 Python modules from external into the trunk.
Thomas Heller [Wed, 8 Mar 2006 19:51:58 +0000 (19:51 +0000)]
Changes to build the _ctypes extension module.
Based on a patch from Hye-Shik Chang.
Thomas Heller [Wed, 8 Mar 2006 19:35:11 +0000 (19:35 +0000)]
Copy ctypes-0.9.9.4 sources from external into the trunk.
Georg Brandl [Wed, 8 Mar 2006 18:09:27 +0000 (18:09 +0000)]
Patch #
1434038: property() now uses the getter's docstring if there is
no "doc" argument given. This makes it possible to legitimately use
property() as a decorator to produce a read-only property.
Georg Brandl [Wed, 8 Mar 2006 12:24:33 +0000 (12:24 +0000)]
typo
Georg Brandl [Wed, 8 Mar 2006 09:34:53 +0000 (09:34 +0000)]
Fix pydoc.synopsis() so that it doesn't error out with an unreadable
module.
Neal Norwitz [Wed, 8 Mar 2006 06:36:45 +0000 (06:36 +0000)]
Fix logic error and DECREF reported by Coverity.
Neal Norwitz [Wed, 8 Mar 2006 05:29:18 +0000 (05:29 +0000)]
Move version added tag from PyObject_Length/Size to PyNumber_Index.
Andrew M. Kuchling [Wed, 8 Mar 2006 01:50:20 +0000 (01:50 +0000)]
Add section
Thomas Wouters [Wed, 8 Mar 2006 01:47:19 +0000 (01:47 +0000)]
Clean up _bsddb.c: add a couple dozen missing Py_DECREF()'s, a handful of
missing PyObject_Del()'s, simplify some code by using Py_BuildValue()
instead of creating a tuple with items manually, stop clobbering builtin
exceptions in a few places, and guard against NULL-returning functions some
more.
This fixes 117 of the 780 (!?!#%@#$!!) reference leaks in test_bsddb3. I
ain't not done yet, although this review of 5kloc was just the easy part.
Martin v. Löwis [Tue, 7 Mar 2006 23:59:33 +0000 (23:59 +0000)]
Reformulate 42903 using an if statement.
Tim Peters [Tue, 7 Mar 2006 23:53:32 +0000 (23:53 +0000)]
_hotshot hotshot_profiler(): If write_header() returned
an error code, this let `self` leak. This is a disaster
on Windows, since `self` already points to a newly-opened
file object, and it was impossible for Python code to
close the thing since the only reference to it was in a
blob of leaked C memory.
test_hotshot test_bad_sys_path(): This new test provoked
the C bug above. This test passed, but left an open
"@test" file behind, which caused a massive cascade of
bogus test failures in later, unrelated tests on Windows.
Changed the test code to remove the @test file it leaves
behind, which relies on the change above to close that
file first.
Georg Brandl [Tue, 7 Mar 2006 20:56:02 +0000 (20:56 +0000)]
Fix bug introduced in rev. 42884.
Andrew M. Kuchling [Tue, 7 Mar 2006 20:48:55 +0000 (20:48 +0000)]
Some edits; add empty sections
Guido van Rossum [Tue, 7 Mar 2006 18:54:08 +0000 (18:54 +0000)]
Add note about PEP 357.
Guido van Rossum [Tue, 7 Mar 2006 18:50:55 +0000 (18:50 +0000)]
Checking in the code for PEP 357.
This was mostly written by Travis Oliphant.
I've inspected it all; Neal Norwitz and MvL have also looked at it
(in an earlier incarnation).
Guido van Rossum [Tue, 7 Mar 2006 18:31:44 +0000 (18:31 +0000)]
Address an coverity issue. Coverity was complaining about a line that's fine,
but an earlier line checked for v != NULL unnecessarily.
Andrew M. Kuchling [Tue, 7 Mar 2006 16:16:07 +0000 (16:16 +0000)]
Typo fix
Hye-Shik Chang [Tue, 7 Mar 2006 15:39:21 +0000 (15:39 +0000)]
SF #
1444030: Fix several potential defects found by Coverity.
(reviewed by Neal Norwitz)
Georg Brandl [Tue, 7 Mar 2006 14:57:48 +0000 (14:57 +0000)]
Add additional missing checks for return vals of PyTuple_New().
Normalize coding style.
Thomas Wouters [Tue, 7 Mar 2006 14:14:51 +0000 (14:14 +0000)]
Fix gcc 4.0.x warning about use of uninitialized value.
Thomas Wouters [Tue, 7 Mar 2006 14:13:17 +0000 (14:13 +0000)]
Coverity found bug: test result of PyTuple_New() against NULL before use.
Will backport.
Thomas Wouters [Tue, 7 Mar 2006 14:04:31 +0000 (14:04 +0000)]
Coverity found refleak: need to free 'v' after calling Tkinter_Error().
Will backport to release24.
Georg Brandl [Tue, 7 Mar 2006 13:47:22 +0000 (13:47 +0000)]
Bug #
1440831: fix csv UnicodeWriter example
Thomas Wouters [Tue, 7 Mar 2006 13:38:14 +0000 (13:38 +0000)]
Coverity-found bug: don't use temp->next *before* checking it for NULL. Also
return rather than use it again.
Georg Brandl [Tue, 7 Mar 2006 12:48:03 +0000 (12:48 +0000)]
Bug #
1432525: os.listdir now releases the GIL while calling
readdir().
Martin v. Löwis [Tue, 7 Mar 2006 12:08:51 +0000 (12:08 +0000)]
Change int to Py_ssize_t in several places.
Add (int) casts to silence compiler warnings.
Raise Python exceptions for overflows.
Thomas Wouters [Tue, 7 Mar 2006 11:58:50 +0000 (11:58 +0000)]
Don't DECREF a borrowed reference.
Barry Warsaw [Tue, 7 Mar 2006 09:46:03 +0000 (09:46 +0000)]
SF patch #
1443865; gc.get_count() added and optional argument 'generation'
added to gc.collect(). Updated docs, unit test, and NEWS entry.
(Also, fixed a typo in NEWS.)
Neal Norwitz [Tue, 7 Mar 2006 05:01:00 +0000 (05:01 +0000)]
Add a note about the bug fixes
Neal Norwitz [Tue, 7 Mar 2006 04:48:24 +0000 (04:48 +0000)]
Thanks to Coverity, these were all reported by their Prevent tool.
All of these (except _lsprof.c) should be backported. Particularly
the hotshot change which validates sys.path. Can someone backport?
Neal Norwitz [Mon, 6 Mar 2006 23:31:56 +0000 (23:31 +0000)]
Fix warnings on x86 (32-bit) and support Win64.
Neal Norwitz [Mon, 6 Mar 2006 23:31:27 +0000 (23:31 +0000)]
Fix warnings on x86 (32-bit).
Neal Norwitz [Mon, 6 Mar 2006 23:07:34 +0000 (23:07 +0000)]
Try to cleanup the error handling a bit so there aren't false positives
from static analysis. v was already checked for NULL above, so we don't
need a second check.
Neal Norwitz [Mon, 6 Mar 2006 23:04:04 +0000 (23:04 +0000)]
Ignore leaks from the socket test too. Sigh, this list is getting long. :-(
Walter Dörwald [Mon, 6 Mar 2006 22:39:12 +0000 (22:39 +0000)]
If size is specified, try to read at least size characters.
This is a alternative version of patch #
1379332.
Martin v. Löwis [Mon, 6 Mar 2006 16:32:05 +0000 (16:32 +0000)]
lower-case time_t.
Martin v. Löwis [Mon, 6 Mar 2006 16:30:25 +0000 (16:30 +0000)]
Patch #
1437769: notice that time_t is a 64-bit type in VS2005
Hye-Shik Chang [Mon, 6 Mar 2006 07:51:19 +0000 (07:51 +0000)]
Check NULL if Py_InitModule fails.
Martin v. Löwis [Sun, 5 Mar 2006 16:47:11 +0000 (16:47 +0000)]
Use devenv.com to better obtain output.
Martin v. Löwis [Sun, 5 Mar 2006 16:18:44 +0000 (16:18 +0000)]
Add buildbot support scripts.
Martin v. Löwis [Sun, 5 Mar 2006 14:04:26 +0000 (14:04 +0000)]
Add _msi.pyd.
Add warning on Win9x.
Martin v. Löwis [Sun, 5 Mar 2006 13:52:20 +0000 (13:52 +0000)]
Open dll file in binary.
Martin v. Löwis [Sun, 5 Mar 2006 13:39:10 +0000 (13:39 +0000)]
Update copyright notice.
Martin v. Löwis [Sun, 5 Mar 2006 13:36:04 +0000 (13:36 +0000)]
Import bdist_msi
Martin v. Löwis [Sun, 5 Mar 2006 05:33:54 +0000 (05:33 +0000)]
Use %Id for size_t-ish things on Win64.
Neal Norwitz [Sun, 5 Mar 2006 02:16:12 +0000 (02:16 +0000)]
Backout the last hack and add in this new one.
The failure definitely seems timing related. This change *seems* to work.
Since the failure isn't doesn't occur consistently, it's hard to tell.
Running these tests on Solaris in this order:
test_urllibnet test_operator test_cgi \
test_isinstance test_future test_ast test_logging
generally caused a failure (about 50% of the time) before the sleep.
I couldn't provoke the failure with the sleep.
This should really be cleaned up by using threading.Events or something
so it is not timing dependent and doesn't hang forever on failure.
Neal Norwitz [Sat, 4 Mar 2006 23:56:53 +0000 (23:56 +0000)]
Oops, urllib may or may not already be loaded.
Neal Norwitz [Sat, 4 Mar 2006 23:31:45 +0000 (23:31 +0000)]
Fix SF #
1442937, Bad Coroutine link
Neal Norwitz [Sat, 4 Mar 2006 23:13:41 +0000 (23:13 +0000)]
Fix spurious test failure of test_socket_ssl when run in this order:
test_codecmaps_tw test_importhooks test_socket_ssl
I don't completely understand the cause, but there's a lot of import magic
going on and this is the smallest change which fixes the problem.
Neal Norwitz [Sat, 4 Mar 2006 20:01:53 +0000 (20:01 +0000)]
Make PyGC_Collect() use Py_ssize_t.
Neal Norwitz [Sat, 4 Mar 2006 20:00:59 +0000 (20:00 +0000)]
Oops, forgot to include this in the last checkin.
Actually define Py_RefTotal as a Py_ssize_t.
Neal Norwitz [Sat, 4 Mar 2006 19:58:13 +0000 (19:58 +0000)]
Use Py_ssize_t for _Py_RefTotal.
I tried to handle Win64 properly, but please review.
Neal Norwitz [Sat, 4 Mar 2006 19:01:22 +0000 (19:01 +0000)]
Tabify
Neal Norwitz [Sat, 4 Mar 2006 18:52:26 +0000 (18:52 +0000)]
Get rid of run_err_mod(). It was only used in two places.
One place it wasn't necessary since mod was already checked.
Inline the check that mod != NULL for the other use.
Neal Norwitz [Sat, 4 Mar 2006 18:49:58 +0000 (18:49 +0000)]
Change some sequnce APIs to use Py_ssize_t.
Neal Norwitz [Sat, 4 Mar 2006 18:41:19 +0000 (18:41 +0000)]
Use Py_ssize_t for PySet_Size() like all the other Py*_Size() functions.
Neal Norwitz [Sat, 4 Mar 2006 18:35:47 +0000 (18:35 +0000)]
Remove test for timing (already not built since commented out in setup.py).
Add note to NEWS.
Hye-Shik Chang [Sat, 4 Mar 2006 16:08:19 +0000 (16:08 +0000)]
- Modernize code to use Py_ssize_t more intensively.
- Do some minor code clean-ups.
Barry Warsaw [Sat, 4 Mar 2006 04:55:02 +0000 (04:55 +0000)]
Actually this file should have svn:eol-style CRLF since it's specifically
testing line ending compatibility.
Tim Peters [Sat, 4 Mar 2006 02:57:23 +0000 (02:57 +0000)]
Set eol-style to native -- doesn't appear to be any reason
for it to claim it has mime-type application/octet-stream.
Tim Peters [Sat, 4 Mar 2006 02:43:44 +0000 (02:43 +0000)]
Whitespace normalization.
Neal Norwitz [Fri, 3 Mar 2006 23:11:42 +0000 (23:11 +0000)]
SF #
1442767, docs for os.statvfs miss f_bsize parameter. Will backport.
Neal Norwitz [Fri, 3 Mar 2006 21:53:14 +0000 (21:53 +0000)]
I think the test_logging failure on Solaris is timing related. We don't
want to wait forever if we don't receive the last message. But we also
don't want the test to fail if we shutdown too quickly. I can't reliably
reproduce this failure, so I'm kinda guessing this is the problem.
We'll see if this band-aid helps.
Neal Norwitz [Fri, 3 Mar 2006 20:29:11 +0000 (20:29 +0000)]
SF bug
1442442: LIST_APPEND optimization got lost in the AST merge.
Add it back.
Neal Norwitz [Fri, 3 Mar 2006 20:21:48 +0000 (20:21 +0000)]
Fix compiler breakage related to absolute imports
Neal Norwitz [Fri, 3 Mar 2006 19:13:57 +0000 (19:13 +0000)]
Remove commented code
Neal Norwitz [Fri, 3 Mar 2006 19:12:58 +0000 (19:12 +0000)]
Hopefully this removes all vestiges of CO_GENERATOR_ALLOWED that can
be removed in 2.x.
Thomas Wouters [Fri, 3 Mar 2006 18:16:20 +0000 (18:16 +0000)]
Add support for absolute/relative imports and if/else expressions:
- regenerate ast.py
- add future flags for absolute-import and with-statement so they
(hopefully) properly get set in code-object flags
- try out if/else expressions in actual code for the hell of it.
Seems to generate the same kind of bytecode as the normal compiler.
Thomas Wouters [Fri, 3 Mar 2006 18:11:37 +0000 (18:11 +0000)]
Update for absolute/relative imports and ifelse-expressions.
Neal Norwitz [Fri, 3 Mar 2006 17:25:57 +0000 (17:25 +0000)]
Provide checkin access to Ronald and Bob
Neal Norwitz [Fri, 3 Mar 2006 00:48:46 +0000 (00:48 +0000)]
Stop building timing module, it's old and deprecated
Neal Norwitz [Fri, 3 Mar 2006 00:43:06 +0000 (00:43 +0000)]
Add test_quopri to know spurious leakers
Brett Cannon [Thu, 2 Mar 2006 22:08:16 +0000 (22:08 +0000)]
Text moved to PEP 339.
Brett Cannon [Thu, 2 Mar 2006 22:07:40 +0000 (22:07 +0000)]
Fix minor docstring typo.
Tim Peters [Thu, 2 Mar 2006 21:41:18 +0000 (21:41 +0000)]
Document the purpose of the struct _block members.
Tim Peters [Thu, 2 Mar 2006 21:14:45 +0000 (21:14 +0000)]
Added words about what PyArena_Malloc() does.
Tim Peters [Thu, 2 Mar 2006 21:04:08 +0000 (21:04 +0000)]
Beefed up description of what this does; new XXX.
Tim Peters [Thu, 2 Mar 2006 20:48:25 +0000 (20:48 +0000)]
New XXX pointing out errors in the description of
PyArena_New(); unsure what the intent is.