Mark Dickinson
26c25d9f64
Decimal.sqrt(0) failed when the context was not
...
explicitly supplied.
2008-03-25 14:35:25 +00:00
Amaury Forgeot d'Arc
a79e05097b
#1477 : ur'\U0010FFFF' used to raise in narrow unicode builds.
...
Corrected the raw-unicode-escape codec to use UTF-16 surrogates in
this case, like the unicode-escape codec does.
Backport of r61793 and r61853
2008-03-24 21:16:28 +00:00
Georg Brandl
d9b9d680d5
Issue #2432 : give DictReader the dialect and line_num attributes
...
advertised in the docs.
(backport from r61712)
2008-03-21 20:01:55 +00:00
Sean Reifscheider
4af861cb4e
Back-port of rev 61240 for issue #2238 , fixing: Some syntax errors in *args
...
and **kwargs expressions could give bogus error messages.
2008-03-20 17:39:31 +00:00
Gregory P. Smith
631df7550f
Backport r61450 from trunk:
...
Fix chown on 64-bit linux. It needed to take a long (64-bit on 64bit linux) as
uid and gid input to accept values >=2**31 as valid while still accepting
negative numbers to pass -1 to chown for "no change".
Fixes issue1747858.
2008-03-18 19:21:40 +00:00
Trent Nelson
549171e1ab
The behaviour of winsound.Beep() seems to differ between different versions of Windows when there's either:
...
a) no sound card entirely
b) legacy beep driver has been disabled
c) the legacy beep driver has been uninstalled
Sometimes RuntimeErrors are raised, sometimes they're not. If _have_soundcard() returns False, don't expect winsound.Beep() to raise a RuntimeError, as this clearly isn't the case, as demonstrated by the various Win32 XP buildbots.
2008-03-18 07:32:47 +00:00
Trent Nelson
a6f5bf2387
Ensure this test passes even if there are no soundcards in the system. Backport from trunk r61242.
2008-03-18 03:52:22 +00:00
Vinay Sajip
756c6c8cf4
#1021 : fix a bug to allow basicConfig to accept NOTSET as a level.
2008-03-16 21:33:48 +00:00
Raymond Hettinger
3662c9090d
Backport r61286 adding GC to the grouper for itertools.groupby() fixing Issue 2246.
2008-03-06 22:58:42 +00:00
Georg Brandl
ab61dce0e1
Bug #2220 : handle rlcompleter attribute match failure more gracefully.
...
(backport from r61275)
2008-03-06 07:46:26 +00:00
Martin v. Löwis
0e30555748
Backport of r61263:
...
#1725737 : ignore other VC directories other than CVS and SVN's too.
2008-03-06 07:14:26 +00:00
Martin v. Löwis
bc89897e5f
Patch #2232 : os.tmpfile might fail on Windows if the user has no
...
permission to create files in the root directory.
2008-03-06 06:57:02 +00:00
Martin v. Löwis
2985e30b6e
Add section for 2.5.3.
2008-03-06 06:56:35 +00:00
Andrew M. Kuchling
f1fdda67e6
Remove old expected output for test_resource
2008-02-23 23:29:26 +00:00
Andrew M. Kuchling
310bad077b
#1291 : copy test_resource.py from the 2.6 trunk, to fix a test failure.
...
The 2.6 version also converts to unittest, but it seems to work fine under 2.5.
2008-02-23 21:32:06 +00:00
Andrew M. Kuchling
664553a778
#1389051 , #1092502 : fix excessively large allocations when using read() on a socket
2008-02-23 19:30:59 +00:00
Andrew M. Kuchling
37d4f7bc0c
#1389051 : IMAP module tries to read entire message in one chunk. Patch by Fredrik Lundh.
2008-02-23 19:06:54 +00:00
Andrew M. Kuchling
05a19a507d
#1433694 : minidom's .normalize() failed to set .nextSibling for last element.
...
Fix by Malte Helmert
2008-02-23 17:21:44 +00:00
Martin v. Löwis
bcffd10596
Prepare for 2.5.2.
2008-02-21 10:04:55 +00:00
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
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
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
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
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
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
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
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