Commit Graph

36520 Commits

Author SHA1 Message Date
Martin v. Löwis 328c643bcb Bug #2137: Remove test_struct.test_crasher, which was meaningful
only on 32-bit systems.
2008-02-18 17:46:27 +00:00
Martin v. Löwis 42e4124304 Revert 60793 for test_array; on a 64-bit system,
MemoryError was not guaranteed.
2008-02-15 19:52:38 +00:00
Martin v. Löwis 9c04257bf9 Fix deallocation of array objects when allocation ran out of memory. 2008-02-15 19:11:46 +00:00
Fred Drake c7cf36e501 mksourcepkg is not getting the tag right by itself, so recording it in the
Makefile explicitly for now
2008-02-14 14:25:24 +00:00
Fred Drake 3359477228 reverting; wrong tag 2008-02-14 14:09:21 +00:00
Fred Drake a865c67394 mksourcepkg is not getting the tag right by itself, so recording it in the
Makefile explicitly for now
2008-02-14 14:06:09 +00:00
Martin v. Löwis f5808e7397 Tagging for release of Python 2.5.2c1 2008-02-14 12:59:38 +00:00
Martin v. Löwis 62dd70c6e0 Correct 2.5.2c1 uuid. Add IDLE release date. 2008-02-14 12:58:41 +00:00
Martin v. Löwis a859e25acb Preparing for 2.5.2c1. 2008-02-14 12:33:15 +00:00
Martin v. Löwis 73c01d4101 Added checks for integer overflows, contributed by Google. Some are
only available if asserts are left in the code, in cases where they
can't be triggered from Python code.
2008-02-14 11:26:18 +00:00
Kurt B. Kaiser abcb59a1d8 bump: IDLE 1.2.2 2008-02-14 04:57:08 +00:00
Kurt B. Kaiser 38fd069a73 There was an error on exit if no sys.exitfunc was defined. Issue 1647.
Backport r60227
2008-02-14 04:45:30 +00:00
Kurt B. Kaiser 0b45f36c81 Could not open files in .idlerc directory if latter was hidden on Windows.
Issue 1743, Issue 1862.
Backport r60225, r60745
2008-02-14 04:37:26 +00:00
Kurt B. Kaiser f9259d72c8 format_paragraph_event wasn't returning 'break'
Backport r59463
2008-02-14 04:30:55 +00:00
Kurt B. Kaiser 2fbad0e99b Assume that the user knows when he wants to end the line; don't insert
something he didn't select or complete.
Backport r58306
2008-02-14 04:19:41 +00:00
Kurt B. Kaiser 60d9f8df38 Corrected some bugs in AutoComplete. Also, Page Up/Down in ACW implemented;
mouse and cursor selection in ACWindow implemented; double Tab inserts current
selection and closes ACW (similar to double-click and Return); scroll wheel now
works in ACW.  Added AutoComplete instructions to IDLE Help.
Backport of r53679
2008-02-14 04:11:52 +00:00
Kurt B. Kaiser 1df323a196 1. Avoid hang when encountering a duplicate in a completion list. Bug 1571112.
2. Duplicate some old entries from Python's NEWS to IDLE's NEWS.txt
Backport of r53042
2008-02-14 04:02:10 +00:00
Kurt B. Kaiser 6493ade54d Some syntax errors were being caught by tokenize during the tabnanny
check, resulting in obscure error messages.  Do the syntax check
first.  Bug 1562716, 1562719  Backport of r52083
2008-02-14 03:25:59 +00:00
Kurt B. Kaiser b80a194531 Bring NEWS.txt up to date. 2008-02-14 00:08:01 +00:00
Brett Cannon 21af4c0611 Back port of r60765 (fix --enable-universalsdk doc typo). 2008-02-13 19:17:17 +00:00
Guido van Rossum e41f1552c0 In the recursive debug command, pass Pdb arguments (completekey, stdin, stdout)
to the recursive Pdb instance.
2008-02-13 18:41:48 +00:00
Martin v. Löwis e9c996c14d Patch #1966: Break infinite loop in httplib when the servers
implements the chunked encoding incorrectly.
2008-02-12 18:48:23 +00:00
Martin v. Löwis cab74c8398 Backport of r60743:
Patch #1736: Fix file name handling of _msi.FCICreate.
2008-02-12 13:48:06 +00:00
Lars Gustäbel 08303dbd72 Backport the nts() function from the trunk. This fixes problems with
the xstar format that puts extra fields inside the space that POSIX
has reserved for the prefix field.
2008-02-11 18:36:07 +00:00
Nick Coghlan 5ca1cba252 Backport relevant part of issue 2021 fix (r60695): Support with statement properly in tempfile.NamedTemporaryFile 2008-02-11 12:53:42 +00:00
Nick Coghlan 0b5c17a9c3 Backport test_resource fix from trunk to stop it crashing on Ubuntu 2008-02-11 11:31:24 +00:00
Amaury Forgeot d'Arc 3e5f8a6975 issue 2045: Infinite recursion when printing a subclass of defaultdict,
if default_factory is set to a bound method.

Backport of r60663.
2008-02-08 01:05:21 +00:00
Walter Dörwald ec4301e60f Backport r60653:
Fix typo in docstring for Calendar.itermonthdays().
2008-02-07 19:58:37 +00:00
Walter Dörwald 9e5e027aec Backport LaTex version of r60651:
Fix documentation for Calendar.iterweekdays(): firstweekday is a property.
Fixes second part of #2018.
2008-02-07 19:55:47 +00:00
Walter Dörwald 902af8da7c Backport LaTeX version of r60649:
Clarify that the output of TextCalendar.formatmonth() and
TextCalendar.formatyear() for custom instances won't be influenced by calls
to the module global setfirstweekday() function. Fixes #2018.
2008-02-07 19:35:17 +00:00
Thomas Heller 527bf3a826 Fix the way methods are created for the _ctypes.COMError exception
type; this fix is already in the trunk.
2008-02-06 19:58:46 +00:00
Walter Dörwald e69f2bdbe6 Remove month parameter from Calendar.yeardatescalendar(),
Calendar.yeardays2calendar() and Calendar.yeardayscalendar() as the methods
don't have such a parameter. Fixes issue #2017. (2.5 backport of r60618)
2008-02-06 14:39:06 +00:00
Guido van Rossum 6ae66d7300 Backport doc fixes from 2.6. These are all things that were already
supported but weren't in the docs, like conditional backreferences.
2008-02-05 17:31:37 +00:00
Guido van Rossum 9decb70349 In the experimental 'Scanner' feature, the group count was set wrong. 2008-02-05 17:27:23 +00:00
Lars Gustäbel 42993fef1c Issue #1507247, #2004: Use mode 0700 for temporary directories and
default permissions for missing directories.

(backport from r53526, r60588)
2008-02-05 12:00:20 +00:00
Amaury Forgeot d'Arc bc212104e4 No need to emit co_lnotab item when both offsets are zeros.
r60579 broke a test test_compile, which seems to test an "implementation detail" IMO.

Also test that this correction does not impact the debugger.
2008-02-04 23:51:55 +00:00
Brett Cannon dcf84003c1 Turn off a debugging flag. 2008-02-04 23:41:02 +00:00
Amaury Forgeot d'Arc 316f8a8d3c backport of r60575 (issue #1750076): Debugger did not step on every iteration of a while statement.
The mapping between bytecode offsets and source lines (lnotab) did not contain
an entry for the beginning of the loop.

Now it does, and the lnotab can be a bit larger:
in particular, several statements on the same line generate several entries.
However, this does not bother the settrace function, which will trigger only
one 'line' event.

The lnotab seems to be exactly the same as with python2.4.
2008-02-04 22:34:57 +00:00
Guido van Rossum d66e94d0e6 Backport r59862 (issue #712900): make long regexp matches interruptable
by signals.
2008-02-04 22:00:35 +00:00
Brett Cannon 912ba54394 Backport r60537: have order of CPPFLAGS and LDFLAGS be honored. 2008-02-03 09:58:02 +00:00
Gregory P. Smith 143a070fa0 Disable linking against BerkeleyDB 4.6 by default as it has proven to
be a buggy release on many platforms.
2008-02-03 08:10:20 +00:00
Gregory P. Smith 946de92f9b backport r60544 from trunk:
Merge this fix from the pybsddb tree:
r293 | jcea | 2008-01-31 01:08:19 -0800 (Thu, 31 Jan 2008) | 4 lines

Solved memory leak when using cursors with
databases without environment.
2008-02-03 07:26:23 +00:00
Andrew MacIntyre 8af7067a19 Backport 60542:
The wrapper function is supposed to be for spawnvpe() so that's
what we should call [this wrapper only available on OS/2].
2008-02-03 07:20:39 +00:00
Christian Heimes ab8fe4e01f Bug #1234: Fixed semaphore errors on AIX 5.2 2008-01-30 22:54:27 +00:00
Thomas Heller c9b20734f4 Revert rev. 59926, it breaks comtypes (I need to further examine this). 2008-01-28 08:42:22 +00:00
Neal Norwitz 249cbe794e Try harder to provoke the exception since the ia64 buildbot still
doesn't reliably produce an exception.
2008-01-28 01:33:23 +00:00
Neal Norwitz 209ea39d31 Sync up with trunk. Try to flush repeatedly to ensure the exception is raised. 2008-01-27 20:08:04 +00:00
Christian Heimes 0b11c5fdf6 Change isbasestring function as discussed on the cvs list a while ago 2008-01-27 19:01:59 +00:00
Neal Norwitz 6179234803 Backport 60342:
Try to prevent this test from being flaky.  We might need a sleep in here
which isn't as bad as it sounds.  The close() *should* raise an exception,
so if it didn't we should give more time to sync and really raise it.
2008-01-27 05:02:56 +00:00
Neal Norwitz ab577c1b32 Backport r58453:
Let the O/S supply a port if none of the default ports can be used.
This should make the tests more robust at the expense of allowing
tests to be sloppier by not requiring them to cleanup after themselves.
(It will legitamitely help when running two test suites simultaneously
or if another process is already using one of the predefined ports.)

This will hopefully fix test_asynchat.
2008-01-27 01:24:44 +00:00