]>
granicus.if.org Git - python/log
Alex Martelli [Wed, 23 Aug 2006 20:42:02 +0000 (20:42 +0000)]
x**2 should about equal x*x (including for a float x such that the result is
inf) but didn't; added a test to test_float to verify that, and ignored the
ERANGE value for errno in the pow operation to make the new test pass (with
help from Marilyn Davis at the Google Python Sprint -- thanks!).
Jeremy Hylton [Wed, 23 Aug 2006 18:37:43 +0000 (18:37 +0000)]
Baby steps towards better tests for tokenize
Andrew M. Kuchling [Tue, 22 Aug 2006 23:13:43 +0000 (23:13 +0000)]
Move functional howto into trunk
Jeremy Hylton [Tue, 22 Aug 2006 20:46:00 +0000 (20:46 +0000)]
Expose column offset information in parse trees.
Neal Norwitz [Tue, 22 Aug 2006 13:56:56 +0000 (13:56 +0000)]
Alexander Belopolsky pointed out that pos is a size_t
Anthony Baxter [Tue, 22 Aug 2006 07:36:59 +0000 (07:36 +0000)]
patch for documentation for recent uuid changes (from ping)
Neal Norwitz [Mon, 21 Aug 2006 23:44:48 +0000 (23:44 +0000)]
Try to get the windows bots working again with the new peephole.c
Neal Norwitz [Mon, 21 Aug 2006 22:21:19 +0000 (22:21 +0000)]
Patch #
1541585 : fix buffer overrun when performing repr() on
a unicode string in a build with wide unicode (UCS-4) support.
This code could be improved, so add an XXX comment.
Neal Norwitz [Mon, 21 Aug 2006 20:16:24 +0000 (20:16 +0000)]
Handle a few more error conditions.
Klocwork 301 and 302. Will backport.
Neal Norwitz [Mon, 21 Aug 2006 19:47:08 +0000 (19:47 +0000)]
Patch #
1542451 : disallow continue anywhere under a finally
I'm undecided if this should be backported to 2.5 or 2.5.1.
Armin suggested to wait (I'm of the same opinion). Thomas W thinks
it's fine to go in 2.5.
Neal Norwitz [Mon, 21 Aug 2006 18:20:10 +0000 (18:20 +0000)]
Fix a couple of ssize-t issues reported by Alexander Belopolsky on python-dev
Neal Norwitz [Mon, 21 Aug 2006 18:01:30 +0000 (18:01 +0000)]
Add assert to make Klocwork happy (#276)
Neal Norwitz [Mon, 21 Aug 2006 17:59:46 +0000 (17:59 +0000)]
Fix bug #
1543303 , tarfile adds padding that breaks gunzip.
Patch #
1543897 .
Will backport to 2.5
Jeremy Hylton [Mon, 21 Aug 2006 16:20:29 +0000 (16:20 +0000)]
Move peephole optimizer to separate file. (Forgot .h in previous checkin.)
Jeremy Hylton [Mon, 21 Aug 2006 16:19:37 +0000 (16:19 +0000)]
Move peephole optimizer to separate file.
Georg Brandl [Sun, 20 Aug 2006 13:15:39 +0000 (13:15 +0000)]
Patch #
1542948 : fix urllib2 header casing issue. With new test.
Neal Norwitz [Sat, 19 Aug 2006 04:52:03 +0000 (04:52 +0000)]
Handle PyString_FromInternedString() failing (unlikely, but possible).
Klocwork #325
(I'm not backporting this, but if someone wants to, feel free.)
Neal Norwitz [Sat, 19 Aug 2006 04:28:55 +0000 (04:28 +0000)]
Move initialization to after the asserts for non-NULL values.
Klocwork 286-287.
(I'm not backporting this, but if someone wants to, feel free.)
Neal Norwitz [Sat, 19 Aug 2006 04:25:29 +0000 (04:25 +0000)]
SF #
1542693 : Remove semi-colon at end of PyImport_ImportModuleEx macro
Neal Norwitz [Sat, 19 Aug 2006 04:23:04 +0000 (04:23 +0000)]
Move assert to after NULL check, otherwise we deref NULL in the assert.
Klocwork #307
Neal Norwitz [Sat, 19 Aug 2006 04:22:33 +0000 (04:22 +0000)]
Move initialization of interned strings to before allocating the
object so we don't leak op. (Fixes an earlier patch to this code)
Klockwork #350
Thomas Heller [Fri, 18 Aug 2006 14:38:46 +0000 (14:38 +0000)]
Add asserts to check for 'impossible' NULL values, with comments.
In one place where I'n not 1000% sure about the non-NULL, raise
a RuntimeError for safety.
This should fix the klocwork issues that Neal sent me. If so,
it should be applied to the release25-maint branch also.
Andrew M. Kuchling [Fri, 18 Aug 2006 13:57:13 +0000 (13:57 +0000)]
Minor edits
Georg Brandl [Fri, 18 Aug 2006 07:35:47 +0000 (07:35 +0000)]
Typo in tp_clear docs.
Anthony Baxter [Fri, 18 Aug 2006 07:30:07 +0000 (07:30 +0000)]
RPM specfile updates
Anthony Baxter [Fri, 18 Aug 2006 07:29:02 +0000 (07:29 +0000)]
Updating IDLE's version number to match Python's (as per python-dev
discussion).
Georg Brandl [Fri, 18 Aug 2006 07:27:59 +0000 (07:27 +0000)]
Bug #
1541682 : Fix example in the "Refcount details" API docs.
Additionally, remove a faulty example showing PySequence_SetItem applied
to a newly created list object and add notes that this isn't a good idea.
Neal Norwitz [Fri, 18 Aug 2006 06:14:52 +0000 (06:14 +0000)]
More version wibble
Neal Norwitz [Fri, 18 Aug 2006 05:41:46 +0000 (05:41 +0000)]
Set version to 2.6a0, seems more consistent.
Neal Norwitz [Fri, 18 Aug 2006 05:39:20 +0000 (05:39 +0000)]
Try to get Unix bots install working again.
Neal Norwitz [Fri, 18 Aug 2006 05:10:00 +0000 (05:10 +0000)]
Try to get Windows bots working again. Take 2
Neal Norwitz [Fri, 18 Aug 2006 04:58:33 +0000 (04:58 +0000)]
Try to get Windows bots working again
Neal Norwitz [Fri, 18 Aug 2006 04:01:38 +0000 (04:01 +0000)]
More post-release wibble
Neal Norwitz [Fri, 18 Aug 2006 03:57:54 +0000 (03:57 +0000)]
Add template for 2.6 on HEAD
Martin v. Löwis [Fri, 18 Aug 2006 03:47:18 +0000 (03:47 +0000)]
Bug #
1541863 : uuid.uuid1 failed to generate unique identifiers
on systems with low clock resolution.
Martin v. Löwis [Thu, 17 Aug 2006 19:19:32 +0000 (19:19 +0000)]
Merge 51340 and 51341 from 2.5 branch:
Leave tk build directory to restore original path.
Invoke debug mk1mf.pl after running Configure.
Neil Schemenauer [Wed, 16 Aug 2006 23:38:05 +0000 (23:38 +0000)]
Fix a bug in the ``compiler`` package that caused invalid code to be
generated for generator expressions.
Kurt B. Kaiser [Wed, 16 Aug 2006 21:45:59 +0000 (21:45 +0000)]
File menu hotkeys: there were three 'p' assignments. Reassign the
'Save Copy As' and 'Print' hotkeys to 'y' and 't'. Change the
Shell menu hotkey from 's' to 'l'.
M Bindings.py
M PyShell.py
M NEWS.txt
Thomas Heller [Wed, 16 Aug 2006 18:02:11 +0000 (18:02 +0000)]
Tutorial:
Clarify somewhat how parameters are passed to functions
(especially explain what integer means).
Correct the table - Python integers and longs can both be used.
Further clarification to the table comparing ctypes types, Python
types, and C types.
Reference:
Replace integer by C ``int`` where it makes sense.
Andrew M. Kuchling [Wed, 16 Aug 2006 17:11:18 +0000 (17:11 +0000)]
Grammar fix
Fredrik Lundh [Wed, 16 Aug 2006 16:47:07 +0000 (16:47 +0000)]
SF#
1534630
ignore data that arrives before the opening start tag
Marc-André Lemburg [Wed, 16 Aug 2006 16:11:01 +0000 (16:11 +0000)]
Add NEWS item mentioning the reverted distutils version number patch.
Thomas Heller [Wed, 16 Aug 2006 15:10:12 +0000 (15:10 +0000)]
Remove the special casing of Py_None when converting the return value
of the Python part of a callback function to C. If it cannot be
converted, call PyErr_WriteUnraisable with the exception we got.
Before, arbitrary data has been passed to the calling C code in this
case.
(I'm not really sure the NEWS entry is understandable, but I cannot
find better words)
Andrew M. Kuchling [Wed, 16 Aug 2006 14:21:14 +0000 (14:21 +0000)]
Wording/typo fixes
Andrew M. Kuchling [Wed, 16 Aug 2006 14:18:23 +0000 (14:18 +0000)]
Update bug/patch counts
Thomas Heller [Wed, 16 Aug 2006 14:07:44 +0000 (14:07 +0000)]
The __repr__ method of a NULL py_object does no longer raise an
exception. Remove a stray '?' character from the exception text
when the value is retrieved of such an object.
Includes tests.
Martin v. Löwis [Wed, 16 Aug 2006 13:58:51 +0000 (13:58 +0000)]
Make cl build step compile-only (/c). Remove libs from source list.
Andrew M. Kuchling [Wed, 16 Aug 2006 13:51:32 +0000 (13:51 +0000)]
Link to docs; remove an XXX comment
Andrew M. Kuchling [Wed, 16 Aug 2006 13:41:52 +0000 (13:41 +0000)]
Bump document version to 1.0; remove pystone paragraph
Andrew M. Kuchling [Wed, 16 Aug 2006 13:22:20 +0000 (13:22 +0000)]
Add UnicodeWarning
Anthony Baxter [Wed, 16 Aug 2006 13:08:25 +0000 (13:08 +0000)]
news entry for 51307
Thomas Heller [Wed, 16 Aug 2006 13:03:11 +0000 (13:03 +0000)]
Add commented assert statements to check that the result of
PyObject_stgdict() and PyType_stgdict() calls are non-NULL before
dereferencing the result. Hopefully this fixes what klocwork is
complaining about.
Fix a few other nits as well.
Martin v. Löwis [Wed, 16 Aug 2006 12:55:10 +0000 (12:55 +0000)]
Build _hashlib on Windows. Build OpenSSL with masm assembler code.
Fixes #
1535502 .
Marc-André Lemburg [Wed, 16 Aug 2006 08:13:26 +0000 (08:13 +0000)]
Revert to having static version numbers again.
Kurt B. Kaiser [Wed, 16 Aug 2006 07:04:17 +0000 (07:04 +0000)]
Get quit() and exit() to work cleanly when not using subprocess.
Ka-Ping Yee [Wed, 16 Aug 2006 07:02:50 +0000 (07:02 +0000)]
Update code and tests to support the 'bytes_le' attribute (for
little-endian byte order on Windows), and to work around clocks
with low resolution yielding duplicate UUIDs.
Anthony Baxter has approved this change.
Kurt B. Kaiser [Wed, 16 Aug 2006 05:01:42 +0000 (05:01 +0000)]
Patch #
1540892 : site.py Quitter() class attempts to close sys.stdin
before raising SystemExit, allowing IDLE to honor quit() and exit().
M Lib/site.py
M Lib/idlelib/PyShell.py
M Lib/idlelib/CREDITS.txt
M Lib/idlelib/NEWS.txt
M Misc/NEWS
Anthony Baxter [Wed, 16 Aug 2006 03:58:37 +0000 (03:58 +0000)]
preparing for 2.5c1 - no, really this time
Anthony Baxter [Wed, 16 Aug 2006 03:42:26 +0000 (03:42 +0000)]
preparing for 2.5c1
Kurt B. Kaiser [Wed, 16 Aug 2006 03:15:26 +0000 (03:15 +0000)]
The 'with' statement is now a Code Context block opener
Thomas Heller [Tue, 15 Aug 2006 13:07:21 +0000 (13:07 +0000)]
Check for NULL return value from new_CArgObject calls.
Neal Norwitz [Tue, 15 Aug 2006 06:29:03 +0000 (06:29 +0000)]
Subclasses of int/long are allowed to define an __index__.
Neal Norwitz [Tue, 15 Aug 2006 04:59:30 +0000 (04:59 +0000)]
Update the docstring to use a version a little newer than 1999. This was
taken from a Debian patch. Should we update the version for each release?
Neal Norwitz [Tue, 15 Aug 2006 04:58:28 +0000 (04:58 +0000)]
Fix the test for SocketServer so it should pass on cygwin and not fail
sporadically on other platforms. This is really a band-aid that doesn't
fix the underlying issue in SocketServer. It's not clear if it's worth
it to fix SocketServer, however, I opened a bug to track it:
http://python.org/sf/
1540386
Neal Norwitz [Tue, 15 Aug 2006 04:14:57 +0000 (04:14 +0000)]
Georg fixed one of my bugs, so I'll repay him with 2 NEWS entries.
Now we're even. :-)
Tim Peters [Tue, 15 Aug 2006 00:25:04 +0000 (00:25 +0000)]
Whitespace normalization.
Georg Brandl [Mon, 14 Aug 2006 22:10:24 +0000 (22:10 +0000)]
Patch #
1511317 : don't crash on invalid hostname info
Georg Brandl [Mon, 14 Aug 2006 22:01:24 +0000 (22:01 +0000)]
Cookie.py shouldn't "bogusly" use string._idmap.
Georg Brandl [Mon, 14 Aug 2006 21:55:28 +0000 (21:55 +0000)]
Patch #
1536071 : trace.py should now find the full module name of a
file correctly even on Windows.
Georg Brandl [Mon, 14 Aug 2006 21:45:32 +0000 (21:45 +0000)]
Add an additional test: BZ2File write methods should raise IOError
when file is read-only.
Georg Brandl [Mon, 14 Aug 2006 21:42:55 +0000 (21:42 +0000)]
Patch #
1535500 : fix segfault in BZ2File.writelines and make sure it
raises the correct exceptions.
Georg Brandl [Mon, 14 Aug 2006 21:34:08 +0000 (21:34 +0000)]
Make tabnanny recognize IndentationErrors raised by tokenize.
Add a test to test_inspect to make sure indented source
is recognized correctly. (fixes #
1224621 )
Georg Brandl [Mon, 14 Aug 2006 20:25:39 +0000 (20:25 +0000)]
Fix refleak introduced in rev. 51248.
Thomas Heller [Mon, 14 Aug 2006 16:20:04 +0000 (16:20 +0000)]
News item for rev 51281.
Thomas Heller [Mon, 14 Aug 2006 16:17:41 +0000 (16:17 +0000)]
Patch #
1536908 : Add support for AMD64 / OpenBSD.
Remove the -no-stack-protector compiler flag for OpenBSD
as it has been reported to be unneeded.
Marc-André Lemburg [Mon, 14 Aug 2006 12:57:27 +0000 (12:57 +0000)]
Correct an accidentally removed previous patch.
Georg Brandl [Mon, 14 Aug 2006 12:36:06 +0000 (12:36 +0000)]
Improve markup in PyUnicode_RichCompare.
Marc-André Lemburg [Mon, 14 Aug 2006 11:44:34 +0000 (11:44 +0000)]
Readd NEWS items that were accidentally removed by r51276.
Thomas Heller [Mon, 14 Aug 2006 11:17:48 +0000 (11:17 +0000)]
Apply the patch #
1532975 plus ideas from the patch #
1533481 .
ctypes instances no longer have the internal and undocumented
'_as_parameter_' attribute which was used to adapt them to foreign
function calls; this mechanism is replaced by a function pointer in
the type's stgdict.
In the 'from_param' class methods, try the _as_parameter_ attribute if
other conversions are not possible.
This makes the documented _as_parameter_ mechanism work as intended.
Change the ctypes version number to 1.0.1.
Marc-André Lemburg [Mon, 14 Aug 2006 10:55:19 +0000 (10:55 +0000)]
Slightly revised version of patch #
1538956 :
Replace UnicodeDecodeErrors raised during == and !=
compares of Unicode and other objects with a new
UnicodeWarning.
All other comparisons continue to raise exceptions.
Exceptions other than UnicodeDecodeErrors are also left
untouched.
Thomas Heller [Mon, 14 Aug 2006 10:02:24 +0000 (10:02 +0000)]
Revert the change that tries to zero out a closure's result storage
area because the size if unknown in source/callproc.c.
Thomas Heller [Mon, 14 Aug 2006 07:50:14 +0000 (07:50 +0000)]
Check for NULL return value of GenericCData_new().
Fixes klockwork issues #188, #189.
Thomas Heller [Mon, 14 Aug 2006 07:14:09 +0000 (07:14 +0000)]
Check for NULL return value from new_CArgObject().
Fixes klockwork issues #183, #184, #185.
Thomas Heller [Mon, 14 Aug 2006 07:13:05 +0000 (07:13 +0000)]
Remove unused, buggy test function.
Fixes klockwork issue #207.
Neal Norwitz [Mon, 14 Aug 2006 01:49:54 +0000 (01:49 +0000)]
Update purify doc some.
Neal Norwitz [Mon, 14 Aug 2006 00:59:03 +0000 (00:59 +0000)]
Can't return NULL from a void function. If there is a memory error,
about the best we can do is call PyErr_WriteUnraisable and go on.
We won't be able to do the call below either, so verify delstr is valid.
Neal Norwitz [Mon, 14 Aug 2006 00:51:15 +0000 (00:51 +0000)]
Ignore pgen.exe and kill_python.exe for cygwin
Neal Norwitz [Sun, 13 Aug 2006 18:41:15 +0000 (18:41 +0000)]
Get rid of compiler warning
Neal Norwitz [Sun, 13 Aug 2006 18:40:39 +0000 (18:40 +0000)]
Handle alloca failures.
Klocwork 225-228
Neal Norwitz [Sun, 13 Aug 2006 18:13:36 +0000 (18:13 +0000)]
Handle malloc failure.
Klocwork 281
Neal Norwitz [Sun, 13 Aug 2006 18:13:02 +0000 (18:13 +0000)]
Really address the issue of where to place the assert for leftblock.
(Followup of Klocwork 274)
Neal Norwitz [Sun, 13 Aug 2006 18:12:45 +0000 (18:12 +0000)]
Handle failure from PyModule_GetDict() (Klocwork 208).
Fix a bunch of refleaks in the init of the module. This would only be found
when running python -v.
Neal Norwitz [Sun, 13 Aug 2006 18:12:26 +0000 (18:12 +0000)]
Handle failures from lookup.
Klocwork 341-342
Neal Norwitz [Sun, 13 Aug 2006 18:12:03 +0000 (18:12 +0000)]
It's very unlikely, though possible that source is not a string. Verify
that PyString_AsString() returns a valid pointer. (The problem can
arise when zlib.decompress doesn't return a string.)
Klocwork 346
Neal Norwitz [Sun, 13 Aug 2006 18:11:43 +0000 (18:11 +0000)]
Handle malloc and fopen failures more gracefully.
Klocwork 180-181
Neal Norwitz [Sun, 13 Aug 2006 18:11:27 +0000 (18:11 +0000)]
Check return result of PyModule_GetDict().
Fix a bunch of refleaks in the init of the module. This would only be found
when running python -v.
Neal Norwitz [Sun, 13 Aug 2006 18:11:08 +0000 (18:11 +0000)]
Fix segfault when doing string formatting on subclasses of long if
__oct__, __hex__ don't return a string.
Klocwork 308
Neal Norwitz [Sun, 13 Aug 2006 18:10:47 +0000 (18:10 +0000)]
cpathname could be NULL if it was longer than MAXPATHLEN. Don't try
to write the .pyc to NULL.
Check results of PyList_GetItem() and PyModule_GetDict() are not NULL.
Klocwork 282, 283, 285
Neal Norwitz [Sun, 13 Aug 2006 18:10:28 +0000 (18:10 +0000)]
Handle a whole lot of failures from PyString_FromInternedString().
Should fix most of Klocwork 234-272.
Neal Norwitz [Sun, 13 Aug 2006 18:10:10 +0000 (18:10 +0000)]
Move/copy assert for tstate != NULL before first use.
Verify that PyEval_Get{Globals,Locals} returned valid pointers.
Klocwork 231-232