Peter Astrand
7d1d43630e
Bug #1223937 : CalledProcessError.errno -> CalledProcessError.returncode.
2006-07-14 14:04:45 +00:00
Martin v. Löwis
d73168d954
Extend build_ssl to Win64, using VSExtComp.
2006-07-14 09:58:55 +00:00
Andrew M. Kuchling
b7eca839f7
Typo fix
2006-07-13 17:37:26 +00:00
Thomas Heller
6e1ad2eb7d
Fix misleading words.
2006-07-13 17:05:13 +00:00
Thomas Heller
2bdf29ec28
Fix #1521375 . When running with root priviledges, 'gcc -o /dev/null'
...
did overwrite /dev/null. Use a temporary file instead of /dev/null.
2006-07-13 17:01:14 +00:00
Thomas Heller
b4dc2ef5da
A misspelled preprocessor symbol caused ctypes to be always compiled
...
without thread support. Replaced WITH_THREADS with WITH_THREAD.
2006-07-13 09:53:47 +00:00
Georg Brandl
9dceedbb97
Accept long options "--help" and "--version".
2006-07-12 15:31:17 +00:00
Thomas Heller
47d7a069d1
Fix #1467450 : ctypes now uses RTLD_GLOBAL by default on OSX 10.3 to
...
load shared libraries.
2006-07-12 08:43:47 +00:00
Neal Norwitz
a1f1090109
Actually change the MAGIC #. Create a new section for 2.5c1 and mention the impact of changing the MAGIC #.
2006-07-12 07:28:29 +00:00
Neal Norwitz
edef2be4af
Bug #1520864 : unpacking singleton tuples in for loop (for x, in) work again.
2006-07-12 05:26:17 +00:00
Anthony Baxter
93ab5fa191
#1494314 : Fix a regression with high-numbered sockets in 2.4.3. This
...
means that select() on sockets > FD_SETSIZE (typically 1024) work again.
The patch makes sockets use poll() internally where available.
2006-07-11 02:04:09 +00:00
Martin v. Löwis
06c68b800c
Patch #1519566 : Remove unused _tofill member.
...
Make begin_fill idempotent.
Update demo2 to demonstrate filling of concave shapes.
2006-07-10 22:11:28 +00:00
Tim Peters
32a8361f2d
After approval from Anthony, merge the tim-current_frames
...
branch into the trunk. This adds a new sys._current_frames()
function, which returns a dict mapping thread id to topmost
thread stack frame.
2006-07-10 21:08:24 +00:00
Thomas Heller
b9cb84fe96
Moved the ctypes news entries from the 'Library' section into the
...
'Extension Modules' section where they belong, probably.
This destroyes the original order of the news entries, don't know
if that is important or not.
2006-07-10 11:17:37 +00:00
Thomas Heller
7644262aa5
Assigning None to pointer type structure fields possible overwrote
...
wrong fields.
2006-07-10 11:11:10 +00:00
Thomas Heller
7b1da513fd
Fixed a segfault when ctypes.wintypes were imported on
...
non-Windows machines.
2006-07-10 09:31:06 +00:00
Thomas Heller
dda068dee1
Fix bug #1518190 : accept any integer or long value in the
...
ctypes.c_void_p constructor.
2006-07-10 09:10:28 +00:00
Anthony Baxter
70e8e87750
preparing for 2.5b2
2006-07-10 07:41:04 +00:00
Martin v. Löwis
8d65681e94
Introduce DISTUTILS_USE_SDK as a flag to determine whether the
...
SDK environment should be used. Fixes #1508010 .
2006-07-10 07:23:48 +00:00
Neal Norwitz
56640df6c3
Patch #1504046 : Add documentation for xml.etree.
...
/F wrote the text docs, Englebert Gruber massaged it to latex and I
did some more massaging to try and improve the consistency and
fix some name mismatches between the declaration and text.
2006-07-10 02:36:41 +00:00
Neal Norwitz
2a30cd0ef0
Patch #1516912 : improve Modules support for OpenVMS.
2006-07-10 01:18:57 +00:00
Neal Norwitz
ed65755608
Bug #1512814 , Fix incorrect lineno's when code at module scope
...
started after line 256.
2006-07-10 00:04:44 +00:00
Neal Norwitz
28746aba9b
On 64 bit systems, int literals that use less than 64 bits are now ints
...
rather than longs. This also fixes the test for eval(-sys.maxint - 1).
2006-07-09 22:14:42 +00:00
Neil Schemenauer
6ec6ab02c3
Fix SF bug 1441486: bad unary minus folding in compiler.
2006-07-09 21:19:29 +00:00
Neil Schemenauer
0e07b60a4e
Fix AST compiler bug #1501934 : incorrect LOAD/STORE_GLOBAL generation.
2006-07-09 16:16:34 +00:00
Neal Norwitz
fb48afa708
Fix SF bug #1519018 : 'as' is now validated properly in import statements
2006-07-08 05:31:37 +00:00
Martin v. Löwis
388a8c26fa
Properly generate logical file ids. Fixes #1515998 .
...
Also correct typo in Control.mapping.
2006-07-06 19:28:03 +00:00
Nick Coghlan
2d792254ae
Add NEWS entries for the ImportWarning change and documentation update
2006-07-06 13:47:18 +00:00
Thomas Wouters
fc34f6c3f7
NEWS entry for r47267: fixing configure's zlib probing.
2006-07-06 10:48:28 +00:00
Thomas Heller
5becdbee96
Patch #1517790 : It is now possible to use custom objects in the ctypes
...
foreign function argtypes sequence as long as they provide a
from_param method, no longer is it required that the object is a
ctypes type.
2006-07-06 08:48:35 +00:00
Martin v. Löwis
4cbd05c322
Properly quote compileall and Lib paths in case TARGETDIR has a space.
2006-07-06 07:05:21 +00:00
Martin v. Löwis
88ef637777
Add sqlite3.dll to the DLLs component, not to the TkDLLs component.
...
Fixes #1517388 .
2006-07-06 06:55:58 +00:00
Neal Norwitz
a12aa88fd8
Add a NEWS entry for a recent pyexpat fix
2006-07-06 06:45:08 +00:00
Thomas Wouters
add191118f
Fix bug in passing tuples to string.Template. All other values (with working
...
str() or repr()) would work, just not multi-value tuples. Probably not a
backport candidate, since it changes the behaviour of passing a
single-element tuple:
>>> string.Template("$foo").substitute(dict(foo=(1,)))
'(1,)'
versus
'1'
2006-07-05 11:03:49 +00:00
Martin v. Löwis
d5cfa5491a
Put method-wrappers into trashcan. Fixes #927248 .
2006-07-03 13:47:40 +00:00
Martin v. Löwis
ede77f5373
Patch #825417 : Fix timeout processing in expect,
...
read_until. Will backport to 2.4.
2006-07-03 13:01:35 +00:00
Martin v. Löwis
4548239e2b
Bug #1267547 : Put proper recursive setup.py call into the
...
spec file generated by bdist_rpm.
2006-07-03 12:28:58 +00:00
Martin v. Löwis
fcfff0a7fa
Bug #1417699 : Reject locale-specific decimal point in float()
...
and atof().
2006-07-03 12:19:50 +00:00
Martin v. Löwis
2b88f63a3c
Bug #1514693 : Update turtle's heading when switching between
...
degrees and radians.
2006-07-03 10:19:49 +00:00
Martin v. Löwis
4c4300de4e
Reimplement turtle.circle using a polyline, to allow correct
...
filling of arcs. Also fixes #1514693 .
2006-07-03 10:05:30 +00:00
Martin v. Löwis
bd39c03c9f
Only setup canvas when it is first created.
...
Fixes #1514703
2006-07-03 09:44:00 +00:00
Martin v. Löwis
ee1e06d497
Correct arithmetic in access on Win32. Fixes #1513646 .
2006-07-02 18:44:00 +00:00
Gerhard Häring
762fbd3485
The sqlite3 module did cut off data from the SQLite database at the first null
...
character before sending it to a custom converter. This has been fixed now.
2006-07-02 17:48:30 +00:00
Martin v. Löwis
7596e8342e
Release all forwarded functions in .close. Fixes #1513223 .
2006-07-01 15:33:37 +00:00
Vinay Sajip
28e57618ad
Added entry for fileConfig() bugfix.
2006-07-01 10:45:20 +00:00
Martin v. Löwis
1bf59597dd
Patch #1509163 : MS Toolkit Compiler no longer available
2006-06-29 18:58:44 +00:00
Thomas Heller
bde081329b
Protect the thread api calls in the _ctypes extension module within
...
#ifdef WITH_THREADS/#endif blocks. Found by Sam Rushing.
2006-06-29 18:34:15 +00:00
Neal Norwitz
b15ac3169d
Add new utility function, reap_children(), to test_support. This should
...
be called at the end of each test that spawns children (perhaps it
should be called from regrtest instead?). This will hopefully prevent
some of the unexplained failures in the buildbots (hppa and alpha)
during tests that spawn children. The problems were not reproducible.
There were many zombies that remained at the end of several tests.
In the worst case, this shouldn't cause any more problems,
though it may not help either. Time will tell.
2006-06-29 04:10:08 +00:00
Fred Drake
10497c83ec
document recent bugfixes in sgmllib
2006-06-29 02:57:48 +00:00
Trent Mick
960a3f88e5
Mention the expat upgrade and pyexpat fix I put in 2.5b1.
2006-06-28 20:30:41 +00:00
Georg Brandl
1be63af41d
Fix end_fill().
2006-06-28 20:23:25 +00:00
Neal Norwitz
0f8b31a2da
Fix bug #1512695 : cPickle.loads could crash if it was interrupted with
...
a KeyboardInterrupt since PyTuple_Pack was passed a NULL.
Will backport.
2006-06-28 06:28:31 +00:00
Neal Norwitz
c315a0fa40
Verify buildbot picks up these changes (really needs testing after last change to Makefile.pre.in)
2006-06-27 04:28:56 +00:00
Neal Norwitz
3b6b80159e
Fix SF bug #1513032 , 'make install' failure on FreeBSD 5.3.
...
No need to install lib-old, it's empty in 2.5.
2006-06-27 04:12:58 +00:00
Hye-Shik Chang
e6a1cb9700
Bug #1511381 : codec_getstreamcodec() in codec.c is corrected to
...
omit a default "error" argument for NULL pointer. This allows
the parser to take a codec from cjkcodecs again.
(Reported by Taewook Kang and reviewed by Walter Doerwald)
2006-06-23 21:16:18 +00:00
Brett Cannon
53ab5b761d
'warning's was improperly requiring that a command-line Warning category be
...
both a subclass of Warning and a subclass of types.ClassType. The latter is no
longer true thanks to new-style exceptions.
Closes bug #1510580 . Thanks to AMK for the test.
2006-06-22 16:49:14 +00:00
Neal Norwitz
60373cd244
Copy the wsgiref package during make install.
2006-06-22 06:30:50 +00:00
Georg Brandl
ad29e637d8
fix [ 1509132 ] compiler module builds incorrect AST for TryExceptFinally
2006-06-21 17:45:17 +00:00
Anthony Baxter
d113680720
Preparing for 2.5b1.
2006-06-19 12:04:15 +00:00
Walter Dörwald
4994d9546c
Patch #1506645 : add Python wrappers for the curses functions
...
is_term_resized, resize_term and resizeterm. This uses three
separate configure checks (one for each function).
2006-06-19 08:07:50 +00:00
Georg Brandl
a56b91552a
Add news entry about error msg improvement.
2006-06-19 06:35:54 +00:00
Martin v. Löwis
6fb20aa92c
Patch #815924 : Restore ability to pass type= and icon=
2006-06-17 19:03:26 +00:00
Martin v. Löwis
3798da0f92
Patch #812986 : Update the canvas even if not tracing.
2006-06-17 18:44:27 +00:00
Martin v. Löwis
92733be85e
Patch #1494750 : Destroy master after deleting children.
2006-06-17 09:25:15 +00:00
Martin v. Löwis
5ecad9ca13
Patch #1096231 : Add default argument to wm_iconbitmap.
2006-06-17 09:20:41 +00:00
Martin v. Löwis
337487e3b8
Patch #763580 : Add name and value arguments to
...
Tkinter variable classes.
2006-06-17 09:15:14 +00:00
Gregory P. Smith
506f7b559a
- bsddb: multithreaded DB access using the simple bsddb module interface
...
now works reliably. It has been updated to use automatic BerkeleyDB
deadlock detection and the bsddb.dbutils.DeadlockWrap wrapper to retry
database calls that would previously deadlock. [SF python bug #775414 ]
2006-06-15 08:52:32 +00:00
Ronald Oussoren
143cefb846
Patch #1446489 (zipfile: support for ZIP64)
2006-06-15 08:14:18 +00:00
Georg Brandl
83cc0d0add
Bug #1117556 : SimpleHTTPServer now tries to find and use the system's
...
mime.types file for determining MIME types.
2006-06-14 08:50:03 +00:00
Georg Brandl
2605ca8773
Bug #1339007 : Shelf objects now don't raise an exception in their
...
__del__ method when initialization failed.
2006-06-14 06:08:31 +00:00
Martin v. Löwis
d825143be1
Patch #1455898 : Incremental mode for "mbcs" codec.
2006-06-14 05:21:04 +00:00
Tim Peters
43898b4f64
SequenceMatcher.get_matching_blocks(): This now guarantees that
...
adjacent triples in the result list describe non-adjacent matching
blocks. That's _nice_ to have, and Guido said he wanted it.
Not a bugfix candidate: Guido or not ;-), this changes visible
endcase semantics (note that some tests had to change), and
nothing about this was documented before. Since it was working
as designed, and behavior was consistent with the docs, it wasn't
"a bug".
2006-06-14 04:09:25 +00:00
Brett Cannon
ea3912b0da
If a classic class defined a __coerce__() method that just returned its two
...
arguments in reverse, the interpreter would infinitely recourse trying to get a
coercion that worked. So put in a recursion check after a coercion is made and
the next call to attempt to use the coerced values.
Fixes bug #992017 and closes crashers/coerce.py .
2006-06-13 21:46:41 +00:00
Andrew MacIntyre
9291332de1
Patch #1454481 : Make thread stack size runtime tunable.
...
Heavily revised, comprising revisions:
46640 - original trunk revision (backed out in r46655)
46647 - markup fix (backed out in r46655)
46692:46918 merged from branch aimacintyre-sf1454481
branch tested on buildbots (Windows buildbots had problems
not related to these changes).
2006-06-13 15:04:24 +00:00
Neal Norwitz
909eb12c95
Fix the socket tests so they can be run concurrently. Backport candidate
2006-06-12 02:13:21 +00:00
Neal Norwitz
b9845e72f9
Get rid of f_restricted too. Doc the other 4 ints that were already removed
...
at the NeedForSpeed sprint.
2006-06-12 02:11:18 +00:00
Greg Ward
0e0c9f4740
Bug #1498146 : fix optparse to handle Unicode strings in option help,
...
description, and epilog.
2006-06-11 16:24:11 +00:00
Greg Ward
d1c797e624
SF #1366250 : optparse docs: fix inconsistency in variable name; minor tweaks.
2006-06-11 14:42:41 +00:00
Greg Ward
7f54740c4d
Bug #1361643 : fix textwrap.dedent() so it handles tabs appropriately,
...
i.e. do *not* expand tabs, but treat them as whitespace that is not
equivalent to spaces. Add a couple of test cases. Clarify docs.
2006-06-11 00:40:49 +00:00
Brett Cannon
22565aac3b
An object with __call__ as an attribute, when called, will have that attribute checked for __call__ itself, and will continue to look until it finds an object without the attribute. This can lead to an infinite recursion.
...
Closes bug #532646 , again. Will be backported.
2006-06-09 22:31:23 +00:00
Georg Brandl
242508160e
RFE #1491485 : str/unicode.endswith()/startswith() now accept a tuple as first argument.
2006-06-09 18:45:48 +00:00
Andrew M. Kuchling
0873b11f2e
Add note about wsgiref
2006-06-09 16:46:51 +00:00
Andrew M. Kuchling
3fed2eb6dc
Add note about XMLGenerator bugfix
2006-06-09 16:44:40 +00:00
Brett Cannon
de3b052216
Buffer objects would return the read or write buffer for a wrapped object when
...
the char buffer was requested. Now it actually returns the char buffer if
available or raises a TypeError if it isn't (as is raised for the other buffer
types if they are not present but requested).
Not a backport candidate since it does change semantics of the buffer object
(although it could be argued this is enough of a bug to bother backporting).
2006-06-08 17:00:45 +00:00
Brett Cannon
6ee7d01c05
Make binascii.hexlify() use s# for its arguments instead of t# to actually
...
match its documentation stating it accepts any read-only buffer.
2006-06-08 16:23:04 +00:00
Nick Coghlan
676725db92
Add functools.update_wrapper() and functools.wraps() as described in PEP 356
2006-06-08 13:54:49 +00:00
Georg Brandl
98251f8a2f
Argh. "integer" is a very confusing word ;)
...
Actually, checking for INT_MAX and INT_MIN is correct since
the format code explicitly handles a C "int".
2006-06-08 13:31:07 +00:00
Georg Brandl
c9ae4e8a2d
Add news for recent bugfix.
2006-06-08 12:55:47 +00:00
Georg Brandl
66a0dbb576
Bug #1502728 : Correctly link against librt library on HP-UX.
2006-06-08 12:54:13 +00:00
Gregory P. Smith
ff7d991a07
- bsddb: the bsddb.dbtables Modify method now raises the proper error and
...
aborts the db transaction safely when a modifier callback fails.
Fixes SF python patch/bug #1408584 .
Also cleans up the bsddb.dbtables docstrings since thats the only
documentation that exists for that unadvertised module. (people
really should really just use sqlite3)
2006-06-08 05:17:08 +00:00
Gregory P. Smith
3c228b19f0
- bsddb: the __len__ method of a DB object has been fixed to return correct
...
results. It could previously incorrectly return 0 in some cases.
Fixes SF bug 1493322 (pybsddb bug 1184012).
2006-06-05 23:59:37 +00:00
Gregory P. Smith
372b583a6b
* fix DBCursor.pget() bug with keyword argument names when no data= is
...
supplied [SF pybsddb bug #1477863 ]
2006-06-05 18:48:21 +00:00
Gregory P. Smith
f0547d0d3e
* add support for DBSequence objects [patch #1466734 ]
2006-06-05 17:38:04 +00:00
Gregory P. Smith
0459e4d2b9
mention the just committed bsddb changes
2006-06-05 02:02:25 +00:00
Tim Peters
d6a9eeffc5
Make doctest news more accurate.
2006-06-05 01:48:21 +00:00
Tim Peters
bf0400abe9
Remove doctest.testmod's deprecated (in 2.4) `isprivate`
...
argument. A lot of hair went into supporting that!
2006-06-05 01:43:03 +00:00
Hye-Shik Chang
58ce5bc14c
Fix a potentially invalid memory access of CJKCodecs' shift-jis
...
decoder. (found by Neal Norwitz)
2006-06-05 00:59:54 +00:00
Tim Peters
28eeefe566
Revert revisions:
...
46640 Patch #1454481 : Make thread stack size runtime tunable.
46647 Markup fix
The first is causing many buildbots to fail test runs, and there
are multiple causes with seemingly no immediate prospects for
repairing them. See python-dev discussion.
Note that a branch can (and should) be created for resolving these
problems, like
svn copy svn+ssh://svn.python.org/python/trunk -r46640 svn+ssh://svn.python.org/python/branches/NEW_BRANCH
followed by merging rev 46647 to the new branch.
2006-06-04 23:52:47 +00:00
Georg Brandl
ddbaa660d3
Patch #1346214 : correctly optimize away "if 0"-style stmts
...
(thanks to Neal for review)
2006-06-04 21:56:52 +00:00
Martin v. Löwis
3f767795f6
Patch #1359618 : Speed-up charmap encoder.
2006-06-04 19:36:28 +00:00
Andrew MacIntyre
6539d2d3c7
Patch #1454481 : Make thread stack size runtime tunable.
2006-06-04 12:31:09 +00:00
Tim Peters
9ea89d2a19
In a PYMALLOC_DEBUG build obmalloc adds extra debugging info
...
to each allocated block. This was using 4 bytes for each such
piece of info regardless of platform. This didn't really matter
before (proof: no bug reports, and the debug-build obmalloc would
have assert-failed if it was ever asked for a chunk of memory
>= 2**32 bytes), since container indices were plain ints. But after
the Py_ssize_t changes, it's at least theoretically possible to
allocate a list or string whose guts exceed 2**32 bytes, and the
PYMALLOC_DEBUG routines would fail then (having only 4 bytes
to record the originally requested size).
Now we use sizeof(size_t) bytes for each of a PYMALLOC_DEBUG
build's extra debugging fields. This won't make any difference
on 32-bit boxes, but will add 16 bytes to each allocation in
a debug build on a 64-bit box.
2006-06-04 03:26:02 +00:00
Martin v. Löwis
222c515493
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
2006-06-03 07:37:13 +00:00
Tim Peters
d609b1a20e
pprint functions used to sort a dict (by key) if and only if
...
the output required more than one line. "Small" dicts got
displayed in seemingly random order (the hash-induced order
produced by dict.__repr__). None of this was documented.
Now pprint functions always sort dicts by key, and the docs
promise it.
This was proposed and agreed to during the PyCon 2006 core
sprint -- I just didn't have time for it before now.
2006-06-02 23:22:51 +00:00
Tim Peters
44bd9861d3
Record bugs 1275608 and 1456209 as being fixed.
2006-06-01 13:49:23 +00:00
Armin Rigo
35f6d36951
[ 1497053 ] Let dicts propagate the exceptions in user __eq__().
...
[ 1456209 ] dictresize() vulnerability ( <- backport candidate ).
2006-06-01 13:19:12 +00:00
Georg Brandl
fd9a4b19e9
Add News entry for last commit.
2006-05-29 20:57:01 +00:00
Nick Coghlan
c649ec5b69
Apply modified version of Collin Winter's patch #1478788
...
Renames functional extension module to _functools and adds a Python
functools module so that utility functions like update_wrapper can be
added easily.
2006-05-29 12:43:05 +00:00
Georg Brandl
2b33037611
Patch #1496206 : urllib2 PasswordMgr ./. default ports
2006-05-28 20:23:12 +00:00
George Yoshida
f3c65de460
Patch #1080727 : add "encoding" parameter to doctest.DocFileSuite
...
Contributed by Bjorn Tillenius.
2006-05-28 16:39:09 +00:00
Georg Brandl
b7c8f54c33
Add news item for new-style exception class branch merge.
2006-05-27 12:30:25 +00:00
Martin v. Löwis
d004fc810a
Patch 1494554: Update numeric properties to Unicode 4.1.
2006-05-27 08:36:52 +00:00
Georg Brandl
f4ef11659c
Need for speed: Patch #921466 : sys.path_importer_cache is now used to cache valid and
...
invalid file paths for the built-in import machinery which leads to
fewer open calls on startup.
Also fix issue with PEP 302 style import hooks which lead to more open()
calls than necessary.
2006-05-26 18:03:31 +00:00
Tim Peters
7a822dabad
Some Win64 pre-release in 2000 didn't support
...
QueryPerformanceCounter(), but we believe Win64 does
support it now. So use in time.clock().
It would be peachy if someone with a Win64 box tried
this ;-)
2006-05-25 21:50:17 +00:00
Tim Peters
696cf43b58
Heavily fiddled variant of patch #1442927 : PyLong_FromString optimization.
...
``long(str, base)`` is now up to 6x faster for non-power-of-2 bases. The
largest speedup is for inputs with about 1000 decimal digits. Conversion
from non-power-of-2 bases remains quadratic-time in the number of input
digits (it was and remains linear-time for bases 2, 4, 8, 16 and 32).
Speedups at various lengths for decimal inputs, comparing 2.4.3 with
current trunk. Note that it's actually a bit slower for 1-digit strings:
len speedup
---- -------
1 -4.5%
2 4.6%
3 8.3%
4 12.7%
5 16.9%
6 28.6%
7 35.5%
8 44.3%
9 46.6%
10 55.3%
11 65.7%
12 77.7%
13 73.4%
14 75.3%
15 85.2%
16 103.0%
17 95.1%
18 112.8%
19 117.9%
20 128.3%
30 174.5%
40 209.3%
50 236.3%
60 254.3%
70 262.9%
80 295.8%
90 297.3%
100 324.5%
200 374.6%
300 403.1%
400 391.1%
500 388.7%
600 440.6%
700 468.7%
800 498.0%
900 507.2%
1000 501.2%
2000 450.2%
3000 463.2%
4000 452.5%
5000 440.6%
6000 439.6%
7000 424.8%
8000 418.1%
9000 417.7%
2006-05-24 21:10:40 +00:00
Bob Ippolito
7ccc95a315
patch #1493701 : performance enhancements for struct module
2006-05-23 19:11:34 +00:00
Bob Ippolito
27abce5ba8
revert #1493701
2006-05-23 19:09:51 +00:00
Andrew M. Kuchling
9deeeef092
Remove duplicate item
2006-05-23 19:00:45 +00:00
Bob Ippolito
fb8b84af54
Patch #1493701 : performance enhancements for struct module.
2006-05-23 18:46:41 +00:00
Tim Peters
b713ec2531
Bug #1334662 / patch #1335972 : int(string, base) wrong answers.
...
In rare cases of strings specifying true values near sys.maxint,
and oddball bases (not decimal or a power of 2), int(string, base)
could deliver insane answers. This repairs all such problems, and
also speeds string->int significantly. On my box, here are %
speedups for decimal strings of various lengths:
length speedup
------ -------
1 12.4%
2 15.7%
3 20.6%
4 28.1%
5 33.2%
6 37.5%
7 41.9%
8 46.3%
9 51.2%
10 19.5%
11 19.9%
12 23.9%
13 23.7%
14 23.3%
15 24.9%
16 25.3%
17 28.3%
18 27.9%
19 35.7%
Note that the difference between 9 and 10 is the difference between
short and long Python ints on a 32-bit box. The patch doesn't
actually do anything to speed conversion to long: the speedup is
due to detecting "unsigned long" overflow more quickly.
This is a bugfix candidate, but it's a non-trivial patch and it
would be painful to separate the "bug fix" from the "speed up" parts.
2006-05-23 18:45:30 +00:00
Bob Ippolito
7298f270a7
Update Misc/NEWS for gzip patch #1281707
2006-05-23 18:43:47 +00:00
Bob Ippolito
82d2558713
Update Misc/NEWS for gzip patch #1281707
2006-05-23 18:41:17 +00:00
Richard Jones
cebbefc98d
Applied patch 1337051 by Neal Norwitz, saving 4 ints on frame objects.
2006-05-23 18:28:17 +00:00
Georg Brandl
658d513328
PyErr_NewException now accepts a tuple of base classes as its
...
"base" parameter.
2006-05-23 11:17:21 +00:00
Richard Jones
7c88dcc5ab
Merge from rjones-funccall branch.
...
Applied patch zombie-frames-2.diff from sf patch 876206 with updates for
Python 2.5 and also modified to retain the free_list to avoid the 67%
slow-down in pybench recursion test. 5% speed up in function call pybench.
2006-05-23 10:37:38 +00:00
Martin v. Löwis
a43190bc78
Patch #1492356 : Port to Windows CE (patch set 1).
2006-05-22 09:15:18 +00:00
Neal Norwitz
58e28887d5
Bug/Patch #1481770 : Use .so extension for shared libraries on HP-UX for ia64.
...
I suppose this could be backported if anyone cares.
2006-05-19 07:00:58 +00:00
Georg Brandl
7b90e168f3
Bug #1462152 : file() now checks more thoroughly for invalid mode
...
strings and removes a possible "U" before passing the mode to the
C library function.
2006-05-18 07:01:27 +00:00
Georg Brandl
b89316fdbf
Patch #1180296 : improve locale string formatting functions
2006-05-17 15:51:16 +00:00
Georg Brandl
e3a25838db
Patch #1486962 : Several bugs in the turtle Tk demo module were fixed
...
and several features added, such as speed and geometry control.
2006-05-17 14:56:04 +00:00
Georg Brandl
378d592617
Patch #1490224 : set time.altzone correctly on Cygwin.
2006-05-17 14:26:50 +00:00
Georg Brandl
8d3342b489
Patch #1435422 : zlib's compress and decompress objects now have a
...
copy() method.
2006-05-16 07:38:27 +00:00
Georg Brandl
49c8f4cf36
[ 1488881 ] tarfile.py: support for file-objects and bz2 (cp. #1488634 )
2006-05-15 19:30:35 +00:00
Neal Norwitz
1004a5339a
Patch #1488312 , Fix memory alignment problem on SPARC in unicode. Will backport
2006-05-15 07:17:23 +00:00
Neal Norwitz
373f0a718c
- Bug #1487966 : Fix SystemError with conditional expression in assignment
...
Most of the test_syntax changes are just updating the numbers.
2006-05-15 07:04:36 +00:00
Neal Norwitz
7a5fc28e81
Move items implemented after a2 into the new a3 section
2006-05-15 06:48:14 +00:00
Tim Peters
8931ff1f67
Teach PyString_FromFormat, PyErr_Format, and PyString_FromFormatV
...
about "%u", "%lu" and "%zu" formats.
Since PyString_FromFormat and PyErr_Format have exactly the same rules
(both inherited from PyString_FromFormatV), it would be good if someone
with more LaTeX Fu changed one of them to just point to the other.
Their docs were way out of synch before this patch, and I just did a
mass copy+paste to repair that.
Not a backport candidate (this is a new feature).
2006-05-13 23:28:20 +00:00
Martin v. Löwis
682b1bb95f
Dynamically allocate path name buffer for Unicode
...
path name in listdir. Fixes #1431582 .
Stop overallocating MAX_PATH characters for ANSI
path names. Stop assigning to errno.
2006-05-12 12:27:28 +00:00
Tim Peters
b06d28c160
SF patch #1473132 : Improve docs for tp_clear and tp_traverse,
...
by Collin Winter.
Bugfix candidate (but I'm not going to bother).
2006-05-12 01:57:59 +00:00
Martin v. Löwis
879768dd97
Change WindowsError to carry the Win32 error code in winerror,
...
and the DOS error code in errno. Revert changes where
WindowsError catch blocks unnecessarily special-case OSError.
2006-05-11 13:28:43 +00:00
Georg Brandl
195648000c
Patch #721464 : pdb.Pdb instances can now be given explicit stdin and
...
stdout arguments, making it possible to redirect input and output
for remote debugging.
2006-05-10 17:13:20 +00:00
Georg Brandl
38c6a22f38
Patch #1484695 : Update the tarfile module to version 0.8. This fixes
...
a couple of issues, notably handling of long file names using the
GNU LONGNAME extension.
2006-05-10 16:26:03 +00:00
Tim Peters
ad2ef33245
Variant of patch #1478292 . doctest.register_optionflag(name)
...
shouldn't create a new flag when `name` is already the name of
an option flag.
2006-05-10 02:43:01 +00:00
Martin v. Löwis
d4e3bb3d39
Port access, chmod, parts of getcwdu, mkdir, and utime to direct Win32 API.
2006-05-06 16:32:54 +00:00
Martin v. Löwis
8e0d494e41
Implement os.{chdir,rename,rmdir,remove} using Win32 directly.
2006-05-04 10:08:42 +00:00
Martin v. Löwis
777367103c
Patch #1475845 : Raise IndentationError for unexpected indent.
2006-05-04 05:51:03 +00:00
Georg Brandl
1bb6230930
Bug #1385040 : don't allow "def foo(a=1, b): pass" in the compiler package.
2006-05-03 18:18:32 +00:00
Neal Norwitz
c4edb0ec81
SF #1479181 : split open() and file() from being aliases for each other.
2006-05-02 04:43:14 +00:00
Martin v. Löwis
8672519ac0
Work around deadlock risk. Will backport.
2006-05-01 06:28:01 +00:00
Georg Brandl
3583cff5a9
Patch #1472854 : make the rlcompleter.Completer class usable on non-
...
UNIX platforms.
2006-04-30 18:14:54 +00:00