Commit Graph

36511 Commits

Author SHA1 Message Date
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
Neal Norwitz b03528ca20 Backport 60334:
On some systems (e.g., Ubuntu on hppa) the flush()
doesn't (always) cause the exception, but the close() does.
2008-01-27 01:23:50 +00:00
Georg Brandl ee50e3c734 #1940: make it possible to use curses.filter() before curses.initscr()
as the documentation says.
 (backport from rev. 60322)
2008-01-26 14:03:51 +00:00
Thomas Wouters 6bf585e753 Fix typo in constant name. 2008-01-25 21:08:41 +00:00
Thomas Wouters d92272e4a9 Use the right (portable) definition of the max of a Py_ssize_t. 2008-01-25 19:51:24 +00:00
Guido van Rossum ee6bab06d3 Rewrite the list_inline_repeat overflow check slightly differently. 2008-01-25 19:42:36 +00:00
Guido van Rossum 1c4282b41b Silence a compiler warning. 2008-01-25 06:11:53 +00:00
Amaury Forgeot d'Arc f1a7178cd5 #1920: when considering a block starting by "while 0", the compiler optimized the
whole construct away, even when an 'else' clause is present::

    while 0:
        print("no")
    else:
        print("yes")

did not generate any code at all.

Now the compiler emits the 'else' block, like it already does for 'if' statements.

Backport of r60265.
2008-01-24 23:42:08 +00:00
Guido van Rossum d933e0a7d3 News for some crashers I fixed recently.
Also removed three non-ASCII chars at start of file.
2008-01-24 18:28:37 +00:00
Guido van Rossum 1859f5b4d2 Backport r60246.
Fix issue #1303614, test67.py.
2008-01-24 17:59:56 +00:00