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
Georg Brandl
fa42bd7af4
Patch #1470846 : fix urllib2 ProxyBasicAuthHandler.
2006-04-30 07:06:11 +00:00
Martin v. Löwis
b75d43d374
Further changes for #1471883 : Edit Misc/NEWS, and
...
add expat_config.h.
2006-04-29 12:37:25 +00:00
Anthony Baxter
c7d00327ab
2.5a2
2006-04-27 02:11:24 +00:00
Hye-Shik Chang
f4795c82df
Fix build on MIPS for libffi. I haven't tested this yet because I
...
don't have an access on MIPS machines. Will be tested by buildbot. :)
2006-04-26 19:20:26 +00:00
Thomas Wouters
abd08884a6
The result of SF patch #1471578 : big-memory tests for strings, lists and
...
tuples. Lots to be added, still, but this will give big-memory people
something to play with in 2.5 alpha 2, and hopefully get more people to
write these tests.
2006-04-26 15:53:30 +00:00
Neal Norwitz
cfba5f8c2e
Restore Walters name
2006-04-25 05:05:03 +00:00
Tim Peters
711bf30b89
Patch #1475231 : add a new SKIP doctest option, thanks to
...
Edward Loper.
2006-04-25 03:31:36 +00:00
Phillip J. Eby
0a07ab97c5
Revert addition of setuptools
2006-04-24 20:53:13 +00:00
Nick Coghlan
da2268feec
Fix contextlib.nested to cope with exit methods raising and handling exceptions
2006-04-24 04:37:15 +00:00
Nick Coghlan
27ec1a773c
Add unit tests for the -m and -c command line switches
2006-04-24 04:32:47 +00:00
Nick Coghlan
c195d8a995
Note changes made to PEP 343 related documentation
2006-04-24 03:04:43 +00:00
Tim Peters
8dc73d2dc6
Bug #1337990 : clarified that `doctest` does not support examples
...
requiring both expected output and an exception.
I'll backport to 2.4 next.
2006-04-24 02:03:16 +00:00
Nick Coghlan
4383230b90
Backdated NEWS entry to record the implementation of PEP 338 for alpha 1
2006-04-23 17:04:07 +00:00
Greg Ward
ab05edc0d1
Update optparse to Optik 1.5.1.
2006-04-23 03:47:58 +00:00
Andrew M. Kuchling
1da4a94719
Add Gregory K. Johnson's revised version of mailbox.py (funded by
...
the 2005 Summer of Code).
The revision adds a number of new mailbox classes that support adding
and removing messages; these classes also support mailbox locking and
default to using email.Message instead of rfc822.Message.
The old mailbox classes are largely left alone for backward compatibility.
The exception is the Maildir class, which was present in the old module
and now inherits from the new classes. The Maildir class's interface
is pretty simple, though, so I think it'll be compatible with existing
code.
(The change to the NEWS file also adds a missing word to a different
news item, which unfortunately required rewrapping the line.)
2006-04-22 02:32:43 +00:00
Tim Peters
21fbd57d66
SF bug #1473760 TempFile can hang on Windows.
...
Python 2.4 changed ntpath.abspath to do an import
inside the function. As a result, due to Python's
import lock, anything calling abspath on Windows
(directly, or indirectly like tempfile.TemporaryFile)
hung when it was called from a thread spawned as a
side effect of importing a module.
This is a depressingly frequent problem, and
deserves a more general fix. I'm settling for
a micro-fix here because this specific one accounts
for a report of Zope Corp's ZEO hanging on Windows,
and it was an odd way to change abspath to begin
with (ntpath needs a different implementation
depending on whether we're actually running on
Windows, and the _obvious_ way to arrange for that
is not to bury a possibly-failing import _inside_
the function).
Note that if/when other micro-fixes of this kind
get made, the new Lib/test/threaded_import_hangers.py
is a convenient place to add tests for them.
2006-04-21 21:18:10 +00:00
Skip Montanaro
262fb9256b
Allow pstats.Stats creator to specify an alternate to stdout.
2006-04-21 02:31:07 +00:00
Martin v. Löwis
c661b8821b
Document r43622.
2006-04-20 04:54:23 +00:00
Marc-André Lemburg
d0b8e83dc5
Add news item for pybench addition.
2006-04-19 15:48:59 +00:00
Armin Rigo
a9017c39ce
SF Patch #1062014 : AF_UNIX sockets under Linux have a special
...
abstract namespace that is now fully supported.
2006-04-19 11:50:27 +00:00
Thomas Heller
1b04664eab
Change those parts of the Python-api that were functions in 2.4, and
...
are now macros to exported functions again.
Fixes [ 1465834 ] bdist_wininst preinstall script support is broken in 2.5a1.
2006-04-18 18:51:06 +00:00
Phillip J. Eby
17a35f906c
add info re: pydoc, pkgutil, and setuptools additions
2006-04-18 16:45:14 +00:00
Andrew M. Kuchling
6db67821a1
Typo fix
2006-04-18 14:04:57 +00:00
Martin v. Löwis
45294a9562
Remove types from type_list if they have no objects
...
and unlist_types_without_objects is set.
Give dump_counts a FILE* argument.
2006-04-18 06:24:08 +00:00
Tim Peters
c7605f21ae
local.__del__(): This didn't actually do anything, because of too
...
much convolution <0.5 wink>. Simplified to the point that it works,
and test_threading_local no longer reports leaks under -R. Thanks
to Thomas Wouters for initial analysis.
2006-04-17 21:12:33 +00:00
Martin v. Löwis
4be4e657e0
Add reindent target.
2006-04-17 19:25:49 +00:00
Martin v. Löwis
bd30f52881
Patch #790710 : Add breakpoint command lists in pdb.
2006-04-17 17:08:37 +00:00
Martin v. Löwis
0db2a989f3
Patch #1063914 : Add clipboard_get.
2006-04-16 20:55:38 +00:00
Martin v. Löwis
19ab6c98cf
Initialize structseq types only once.
2006-04-16 18:55:50 +00:00
Martin v. Löwis
48bbaf2375
Patch #1470875 : Building Python with MS Free Compiler.
2006-04-15 18:06:54 +00:00
Martin v. Löwis
4b501e6c7d
Patch #1191700 : Adjust column alignment in bdb breakpoint lists.
...
Backported to 2.4.
2006-04-15 08:41:11 +00:00
Martin v. Löwis
7e75f1aafb
Patch #1191065 : Fix preprocessor problems on systems where recvfrom
...
is a macro.
2006-04-15 08:35:59 +00:00
Martin v. Löwis
c90b17ec82
Patch #1161914 : Add python-config.
2006-04-15 08:13:05 +00:00
Andrew M. Kuchling
db4018f320
Typo fix
2006-04-14 14:54:18 +00:00
Martin v. Löwis
0f48d98b74
Patch #1324762 : Change --with-cxx to --with-cxx-main.
2006-04-14 14:34:26 +00:00
Neal Norwitz
615461603c
SF Bug #1454485 , array.array('u') could crash the interpreter when
...
passing a string. Martin already fixed the actual crash by ensuring
Py_UNICODE is unsigned. As discussed on python-dev, this fix
removes the possibility of creating a unicode string from a raw buffer.
There is an outstanding question of how to fix the crash in 2.4.
2006-04-14 05:20:28 +00:00
Gregory P. Smith
3adc4aa2fb
raise the minimum supported BerkeleyDB version to 3.3 and add notes to
...
news about this and a couple other recent fixes.
2006-04-13 19:19:01 +00:00
Anthony Baxter
57fdcbc60f
reverting r45321: Patch #860326 : traceback.format_exception_only() now
...
prepends the exception's module name to non-builtin exceptions, like
the interpreter itself does.
broke a number of doctests. should be discussed before checking in (see
discussion on python-dev).
2006-04-13 01:34:33 +00:00
Georg Brandl
24c274f5dc
Patch #860326 : traceback.format_exception_only() now prepends the
...
exception's module name to non-builtin exceptions, like the interpreter
itself does.
2006-04-12 21:14:09 +00:00
Anthony Baxter
e29002ccb0
Bug #1469163 : SimpleXMLRPCServer unconditionally attempted to import fcntl.
...
Wrapped in a try/except.
2006-04-12 12:07:31 +00:00
Georg Brandl
bbfe4fad36
Bug #1467952 : os.listdir() now correctly raises an error if readdir()
...
fails with an error condition.
2006-04-11 06:47:43 +00:00
Tim Peters
527f652a8f
Typo repair.
2006-04-11 01:47:17 +00:00
Tim Peters
3a5e8b1e36
More words on patch #837242 , since 4 or 5 tests started
...
failing on one of the 32-bit buildbot boxes because of it,
due to tempting but always-wrong Python code. Users
probably have code like this too (I know I did ...).
2006-04-11 01:44:07 +00:00
Phillip J. Eby
51dd7d9719
Add notes to NEWS for other work today.
2006-04-11 01:21:31 +00:00
Phillip J. Eby
4703211080
Updated the warnings, linecache, inspect, traceback, site, and doctest modules
...
to work correctly with modules imported from zipfiles or via other PEP 302
__loader__ objects. Tests and doc updates are included.
2006-04-11 01:07:43 +00:00
Martin v. Löwis
0bc2ab9a20
Patch #837242 : id() for large ptr should return a long.
2006-04-10 20:28:17 +00:00
Martin v. Löwis
17de8ffc21
Patch #1467770 : Add Popen objects to _active only in __del__.
...
Introduce _child_active member to keep track on whether a child
needs to be waited for.
Backport candidate.
2006-04-10 15:55:37 +00:00
Martin v. Löwis
10acfd00b2
Patch #1429775 : Link Python modules to libpython on linux if
...
--enable-shared. Fixes #832799 .
2006-04-10 12:39:36 +00:00
Martin v. Löwis
b04dee935c
Patch #1462222 : Fix Tix.Grid. Closes #1036406 .
2006-04-10 08:34:21 +00:00
Neal Norwitz
6974a51d1a
I wonder if we can be too graceful? One oughta be enough. :-)
2006-04-10 00:25:01 +00:00
Anthony Baxter
8220174489
Python on OS X 10.3 and above now uses dlopen() (via dynload_shlib.c)
...
to load extension modules and now provides the dl module. As a result,
sys.setdlopenflags() now works correctly on these systems. (SF patch
#1454844 )
2006-04-09 15:07:40 +00:00
Neal Norwitz
a31bf18c48
glob('anything*/') would fail because isdir is in os.path, not os.
2006-04-09 03:35:43 +00:00
Gregory P. Smith
7f5b6f4b33
Fix bsddb.db.DBError derived exceptions so they can be unpickled.
...
Also adds some backwards compatibility when compiling _bsddb.c on earlier
python versions (needed for pybsddb).
2006-04-08 07:10:51 +00:00
Anthony Baxter
51bcb68b1d
blank spots for Misc/NEWS, post alpha1 (plus testing buildbot 0.7.2)
2006-04-05 14:51:42 +00:00
Matthias Klose
d77f8b3bea
- correct patch number
2006-04-03 16:34:56 +00:00
Matthias Klose
8e39ec78bc
- Patch #360466 : Replace the MD5 implementation from RSA Data Security Inc
...
with the implementation from http://sourceforge.net/projects/libmd5-rfc/ .
2006-04-03 16:27:50 +00:00
Anthony Baxter
ebed3f629b
preparation for 2.5a1
2006-04-03 15:03:44 +00:00
Martin v. Löwis
ea62d2535f
Bug #1421664 : Set sys.stderr.encoding
2006-04-03 10:56:49 +00:00
Anthony Baxter
93f5b93422
The email module's parsedate_tz function now sets the daylight savings
...
flag to -1 (unknown) since it can't tell from the date whether it should
be set.
patch from Aldo Cortesi
2006-04-03 08:05:07 +00:00
Neal Norwitz
92e212f7d9
Accept keyword arguments for __import__ and doc the addition of the level param from PEP 328.
2006-04-03 04:48:37 +00:00
Fred Drake
ad5177cf8d
Patch #624325 : urlparse.urlparse() and urlparse.urlsplit() results
...
now sport attributes that provide access to the parts of the result.
2006-04-01 22:14:43 +00:00
Andrew M. Kuchling
7034f6b79f
Some typo & grammar fixes
2006-04-01 10:50:08 +00:00
Georg Brandl
828fdefd92
Update SQLite version requirement.
2006-04-01 08:59:03 +00:00
Georg Brandl
7f6b67c235
patch #1462498 : handle entityrefs in attribute values.
2006-04-01 08:35:18 +00:00
Walter Dörwald
48d5e508eb
Bug #947906 : Add classes LocaleTextCalendar and LocaleHTMLCalendar,
...
that output localized month and weekday names and can cope
with encodings.
2006-04-01 07:57:00 +00:00
Anthony Baxter
c51ee69b27
merged the sqlite-integration branch.
...
This is based on pysqlite2.1.3, and provides a DB-API interface in
the standard library. You'll need sqlite 3.2.2 or later to build
this - if you have an earlier version, the C extension module will
not be built.
2006-04-01 00:57:31 +00:00
Tim Peters
c17976e983
Another crack at bug #1460340 : make random.sample(dict)
...
work, this time by ugly brute force.
2006-04-01 00:26:53 +00:00
Georg Brandl
ccadf84a1b
Patch #1460496 : round() now accepts keyword arguments.
2006-03-31 18:54:53 +00:00
Georg Brandl
338ef7d2bd
Bug #1445068 : getpass.getpass() can now be given an explicit stream
...
argument to specify where to write the prompt.
2006-03-31 18:42:16 +00:00
Georg Brandl
22ec80bc4f
Patch #1462313 , bug #1443328 : the pickle modules now can handle classes
...
that have __private names in their __slots__.
2006-03-31 18:25:44 +00:00
Georg Brandl
43f08a85e4
Patch #1380952 : fix SSL objects timing out on consecutive read()s
2006-03-31 18:01:16 +00:00
Georg Brandl
dd2245f230
Bug #1250170 , Patch #1462230 : handle socket.gethostname()
...
failures gracefully
2006-03-31 17:18:06 +00:00
Walter Dörwald
58917a6083
Bug #947906 : An object oriented interface has been added to the calendar
...
module. It's possible to generate HTML calendar now and the module can be
called as a script (e.g. via ``python -mcalendar``).
2006-03-31 15:26:22 +00:00
Neal Norwitz
602d339047
Add a NEWS entry for the Alpha fixes
2006-03-31 08:21:40 +00:00
Anthony Baxter
262c00a21e
Fixed bug #1459029 - unicode reprs were double-escaped.
...
Backed out an old patch from 2000.
2006-03-30 10:53:17 +00:00
Phillip J. Eby
59821cf209
Oops, forgot to checkin the NEWS for --identity
2006-03-30 02:16:40 +00:00
Georg Brandl
80bb2bb7eb
Revert r43399.
2006-03-28 19:19:56 +00:00
Georg Brandl
f1349cd05d
Bug #1459963 : urllib2 now normalizes HTTP header names correctly
...
with title().
2006-03-28 12:40:24 +00:00
Walter Dörwald
40108c97fb
Mention patch id for the CJK part of the patch and
...
the name of the two new C functions.
2006-03-27 08:15:44 +00:00
Tim Peters
c9d78aa470
Years in the making.
...
objimpl.h, pymem.h: Stop mapping PyMem_{Del, DEL} and PyMem_{Free, FREE}
to PyObject_{Free, FREE} in a release build. They're aliases for the
system free() now.
_subprocess.c/sp_handle_dealloc(): Since the memory was originally
obtained via PyObject_NEW, it must be released via PyObject_FREE (or
_DEL).
pythonrun.c, tokenizer.c, parsermodule.c: I lost count of the number of
PyObject vs PyMem mismatches in these -- it's like the specific
function called at each site was picked at random, sometimes even with
memory obtained via PyMem getting released via PyObject. Changed most
to use PyObject uniformly, since the blobs allocated are predictably
small in most cases, and obmalloc is generally faster than system
mallocs then.
If extension modules in real life prove as sloppy as Python's front
end, we'll have to revert the objimpl.h + pymem.h part of this patch.
Note that no problems will show up in a debug build (all calls still go
thru obmalloc then). Problems will show up only in a release build, most
likely segfaults.
2006-03-26 23:27:58 +00:00
Raymond Hettinger
fd3fcf0b35
SF Patch #1455676 : Simplify using Queues with daemon consumer threads
...
Adds join() and task_done() methods to track when all enqueued tasks have
been gotten and fully processed by daemon consumer threads.
2006-03-24 20:43:29 +00:00
Martin v. Löwis
bd8dbab247
Preserve command name, for later printing of active
...
commands. If there are active commands when the tests
start, fail, printing these commands.
2006-03-23 18:18:35 +00:00
Hye-Shik Chang
d478f3453f
Patch #1396919 : Reenable the system scope threads on FreeBSD 5.4
...
and later versions because they bumped the default setting to
get our basic tests to run correctly..
2006-03-23 12:32:36 +00:00
Neal Norwitz
e98ccf6690
Forward port MvL's fix in 43227:
...
Fix crash when a Unicode string containing an encoding declaration is
compile()d. Fixes #1115379 .
2006-03-23 05:39:47 +00:00
Thomas Heller
c61c049955
ctypes was added.
2006-03-22 10:09:27 +00:00
Georg Brandl
72d7a78eb0
Change NEWS entry for recent socket API change
2006-03-22 06:44:14 +00:00
Barry Warsaw
4d90bbd292
News about email 4.0.
2006-03-22 02:45:50 +00:00
Anthony Baxter
24078c5c4f
moved older releases into HISTORY
2006-03-20 06:30:41 +00:00
Neal Norwitz
05a45599d7
Patch #1309579 : wait3 and wait4 were added to the posix module by Chad J. Schroeder.
...
This was a fair amount of rework of the patch. Refactored test_fork1 so it
could be reused by the new tests for wait3/4. Also made them into new style
unittests (derive from unittest.TestCase).
2006-03-20 06:30:08 +00:00
Anthony Baxter
fa86907aae
SF [ 1231053 ] audioop - alaw encoding/decoding added, code updated
...
This patch adds a-LAW encoding to audioop and replaces the old
u-LAW encoding/decoding code with the current code from sox.
Possible issues: the code from sox uses int16_t.
Code by Lars Immisch
2006-03-20 05:21:58 +00:00
Georg Brandl
abd1ff8f1f
Previously, Python code had no easy way to access the contents of a
...
cell object. Now, a ``cell_contents`` attribute has been added
(closes patch #1170323 ).
2006-03-18 07:59:59 +00:00
Georg Brandl
bc45a3f821
RFE #567972 : Socket objects' family, type and proto properties are
...
now exposed via new get...() methods.
2006-03-17 19:17:34 +00:00
Neal Norwitz
10be10cbe7
Remove regsub, reconvert, regex, regex_syntax and everything under lib-old.
2006-03-16 06:50:13 +00:00
Neal Norwitz
efbeaef1c1
Add a news entry about the sre/re swap.
2006-03-16 06:40:39 +00:00
Tim Peters
cf79aace07
Merge the tim-obmalloc branch to the trunk.
...
This is a heavily altered derivative of SF patch 1123430, Evan
Jones's heroic effort to make obmalloc return unused arenas to
the system free(), with some heuristic strategies to make it
more likley that arenas eventually _can_ be freed.
2006-03-16 01:14:46 +00:00
Walter Dörwald
067db48997
Document the other change from patch #1359365 .
2006-03-15 22:17:27 +00:00
Walter Dörwald
197e8321c6
SF patch #1359365 : cStringIO.StringIO.isatty() will raise a ValueError
...
now if close() has been called before (like file and StringIO.StringIO do)
2006-03-15 22:13:13 +00:00
Walter Dörwald
abb02e5994
Patch #1436130 : codecs.lookup() now returns a CodecInfo object (a subclass
...
of tuple) that provides incremental decoders and encoders (a way to use
stateful codecs without the stream API). Functions
codecs.getincrementaldecoder() and codecs.getincrementalencoder() have
been added.
2006-03-15 11:35:15 +00:00
Hye-Shik Chang
abb903fd54
Bug #1448490 : Fix a bug that ISO-2022 codecs could not handle
...
SS2 (single-shift 2) escape sequences correctly.
2006-03-13 10:20:08 +00:00
Martin v. Löwis
04824ce8ed
Add regrtest -w option.
2006-03-10 21:26:16 +00:00
Martin v. Löwis
480f1bb67b
Update Unicode database to Unicode 4.1.
2006-03-09 23:38:20 +00:00
Georg Brandl
e2b4677253
Move entry to correct section.
2006-03-09 23:22:43 +00:00
Georg Brandl
24cb053b15
Patch #1446372 : quit and exit can now be called from the interactive
...
interpreter to exit.
2006-03-09 23:22:06 +00:00
Georg Brandl
533ff6fc06
Patch #1434038 : property() now uses the getter's docstring if there is
...
no "doc" argument given. This makes it possible to legitimately use
property() as a decorator to produce a read-only property.
2006-03-08 18:09:27 +00:00
Guido van Rossum
9aa37ab5d2
Add note about PEP 357.
2006-03-07 18:54:08 +00:00
Barry Warsaw
d3c38ff7f8
SF patch #1443865 ; gc.get_count() added and optional argument 'generation'
...
added to gc.collect(). Updated docs, unit test, and NEWS entry.
(Also, fixed a typo in NEWS.)
2006-03-07 09:46:03 +00:00
Neal Norwitz
995acdf308
Add a note about the bug fixes
2006-03-07 05:01:00 +00:00
Martin v. Löwis
fbab90e95b
Import bdist_msi
2006-03-05 13:36:04 +00:00
Neal Norwitz
b62c433d71
Remove test for timing (already not built since commented out in setup.py).
...
Add note to NEWS.
2006-03-04 18:35:47 +00:00
Neal Norwitz
28f635b067
Remove duplicate entry
2006-03-02 04:03:44 +00:00
Brett Cannon
acde7347a5
Add Misc/NEWS entry for Misc/Vim/vim_syntax.py . Also use conditional
...
expression for the hell of it.
2006-03-01 04:28:00 +00:00
Brett Cannon
bf36409e2a
PEP 352 implementation. Creates a new base class, BaseException, which has an
...
added message attribute compared to the previous version of Exception. It is
also a new-style class, making all exceptions now new-style. KeyboardInterrupt
and SystemExit inherit from BaseException directly. String exceptions now
raise DeprecationWarning.
Applies patch 1104669, and closes bugs 1012952 and 518846.
2006-03-01 04:25:17 +00:00
Guido van Rossum
1a5e21e033
Updates to the with-statement:
...
- New semantics for __exit__() -- it must re-raise the exception
if type is not None; the with-statement itself doesn't do this.
(See the updated PEP for motivation.)
- Added context managers to:
- file
- thread.LockType
- threading.{Lock,RLock,Condition,Semaphore,BoundedSemaphore}
- decimal.Context
- Added contextlib.py, which defines @contextmanager, nested(), closing().
- Unit tests all around; bot no docs yet.
2006-02-28 21:57:43 +00:00
Tim Peters
84ef21c033
Its right now.
2006-02-28 20:39:06 +00:00
Neal Norwitz
055ec24bc4
Note that as generates a warning too
2006-02-28 20:06:49 +00:00
Thomas Wouters
34aa7ba114
from __future__ import with_statement addon for 'with', mostly written by
...
Neal.
2006-02-28 19:02:24 +00:00
Thomas Wouters
fb609f4215
Wups, add NEWS item I'd written but not checked in.
2006-02-28 16:37:25 +00:00
Brett Cannon
a7446e3438
Check the return code for PyErr_Warn() when warning about raising string
...
exceptions. This was triggered when 'warnings' had a filter set to "error"
that caught the string exception deprecation warning.
2006-02-27 23:39:10 +00:00
Neal Norwitz
0023a2f858
Finish removal of CO_GENERATOR_ALLOWED.
2006-02-27 23:24:48 +00:00
Guido van Rossum
c2e20744b2
PEP 343 -- the with-statement.
...
This was started by Mike Bland and completed by Guido
(with help from Neal).
This still needs a __future__ statement added;
Thomas is working on Michael's patch for that aspect.
There's a small amount of code cleanup and refactoring
in ast.c, compile.c and ceval.c (I fixed the lltrace
behavior when EXT_POP is used -- however I had to make
lltrace a static global).
2006-02-27 22:32:47 +00:00
Martin v. Löwis
415ed937c2
Skip over doc strings.
2006-02-27 19:56:30 +00:00
Tim Peters
f4e6928c4d
Patch 1413181, by Gabriel Becedillas.
...
PyThreadState_Delete(): if the auto-GIL-state machinery knows about
the thread state, forget it (since the thread state is being deleted,
continuing to remember it can't help, but can hurt if another thread
happens to get created with the same thread id).
I'll backport to 2.4 next.
2006-02-27 17:15:31 +00:00
Tim Peters
da1329b4f9
Trimmed trailing whitespace.
2006-02-27 16:50:01 +00:00
Neal Norwitz
eb65125dda
Add an entry for 308
2006-02-27 16:47:12 +00:00
Martin v. Löwis
577b5b960d
Create _ast module.
...
Cleanup Python-ast.c generation.
2006-02-27 15:23:19 +00:00
Martin v. Löwis
bd260da900
Generate code to recursively copy an AST into
...
a tree of Python objects. Expose this through compile().
2006-02-26 19:42:26 +00:00
Guido van Rossum
1968ad32cd
- Patch 1433928:
...
- The copy module now "copies" function objects (as atomic objects).
- dict.__getitem__ now looks for a __missing__ hook before raising
KeyError.
- Added a new type, defaultdict, to the collections module.
This uses the new __missing__ hook behavior added to dict (see above).
2006-02-25 22:38:04 +00:00
Georg Brandl
dbd8339a01
Bug #854823 : socketmodule now builds on Sun platforms even when
...
INET_ADDRSTRLEN is not defined.
2006-02-20 09:42:33 +00:00
Georg Brandl
8f7c54eaa5
Bug #1413790 : zipfile now sanitizes absolute archive names that are
...
not allowed by the specs.
2006-02-20 08:40:38 +00:00
Marc-André Lemburg
fe4b34cc4b
Fix the encodings package codec search function to only search
...
inside its own package. Fixes problem reported in patch #1433198 .
Add codec search function for codec test codec.
2006-02-19 15:22:22 +00:00
Georg Brandl
c98eeede17
Patch #1215184 : FileInput now can be given an opening hook which can
...
be used to control how files are opened.
2006-02-19 14:57:47 +00:00
Georg Brandl
c029f873cb
Patch #1212287 : fileinput.input() now has a mode parameter for
...
specifying the file mode input files should be opened with.
2006-02-19 14:12:34 +00:00
Georg Brandl
67e9fb9d7a
Patch #1215184 : fileinput now has a fileno() function for getting the
...
current file number.
2006-02-19 13:56:17 +00:00
Georg Brandl
602b9ba6b3
Patch #1349274 : gettext.install() now optionally installs additional
...
translation functions other than _() in the builtin namespace.
2006-02-19 13:26:36 +00:00
Georg Brandl
e466217ab9
Patch #1337756 : fileinput now accepts Unicode filenames.
2006-02-19 09:51:27 +00:00
Georg Brandl
f4f4415a18
Patch #1393157 : os.startfile() now has an optional argument to specify
...
a "command verb" to invoke on the file.
2006-02-18 22:29:33 +00:00
Georg Brandl
7b4e7c24df
Patch #1373643 : The chunk module can now read chunks larger than
...
two gigabytes.
2006-02-18 21:10:56 +00:00
Georg Brandl
21dd1afde7
Add NEWS entry to previous checkin.
2006-02-17 13:35:13 +00:00
Georg Brandl
bd3bc4dc4c
Bug #1430298 : It is now possible to send a mail with an empty
...
return address using smtplib.
2006-02-17 09:52:53 +00:00
Georg Brandl
0e1abe2a07
Add bug number to NEWS entry.
2006-02-17 09:48:14 +00:00
Georg Brandl
501dd0dd9d
The names of lambda functions are now properly displayed in pydoc.
2006-02-17 09:45:40 +00:00
Martin v. Löwis
86d662602d
Patch #1432345 : Make python compile on DragonFly.
2006-02-17 08:40:11 +00:00
Martin v. Löwis
18e165558b
Merge ssize_t branch.
2006-02-15 17:27:45 +00:00
Martin v. Löwis
856bf9a4e9
Add build support for AMD64.
2006-02-14 20:42:55 +00:00
Martin v. Löwis
a55e55e9f3
Patch #428494 : Prefer linking against ncursesw over ncurses library
2006-02-11 15:55:14 +00:00
Armin Rigo
a871ef2b3e
Added the cProfile module.
...
Based on lsprof (patch #1212837 ) by Brett Rosen and Ted Czotter.
With further editing by Michael Hudson and myself.
History in svn repo: http://codespeak.net/svn/user/arigo/hack/misc/lsprof
* Module/_lsprof.c is the internal C module, Lib/cProfile.py a wrapper.
* pstats.py updated to display cProfile's caller/callee timings if available.
* setup.py and NEWS updated.
* documentation updates in the profiler section:
- explain the differences between the three profilers that we have now
- profile and cProfile can use a unified documentation, like (c)Pickle
- mention that hotshot is "for specialized usage" now
- removed references to the "old profiler" that no longer exists
* test updates:
- extended test_profile to cover delicate cases like recursion
- added tests for the caller/callee displays
- added test_cProfile, performing the same tests for cProfile
* TO-DO:
- cProfile gives a nicer name to built-in, particularly built-in methods,
which could be backported to profile.
- not tested on Windows recently!
2006-02-08 12:53:56 +00:00
Neal Norwitz
082b2df33f
Bug #876637 , prevent stack corruption when socket descriptor
...
is larger than FD_SETSIZE.
This can only be acheived with ulimit -n SOME_NUMBER_BIGGER_THAN_FD_SETSIZE
which is typically only available to root. Since this wouldn't normally
be run in a test (ie, run as root), it doesn't seem too worthwhile to
add a normal test. The bug report has one version of a test. I've
written another. Not sure what the best thing to do is.
Do the check before calling internal_select() because we can't set
an error in between Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS.
This seemed the clearest solution, ie handle before calling internal_select()
rather than inside. Plus there is at least one place outside
of internal_select() that needed to be handled.
Will backport.
2006-02-07 07:04:46 +00:00
Martin v. Löwis
0075690ced
Patch #1412872 : zipfile: use correct system type on unixy systems.
2006-02-05 17:09:41 +00:00
Neal Norwitz
0e6bc8c260
Patch #1407135 , bug #1424041 , make mmap.mmap(-1, length) work the same
...
on both Unix (SVR4 and BSD) and Windows. Restores behaviour of passing -1
for anonymous memory on Unix. Use MAP_ANONYMOUS instead of _ANON since
the latter is deprecated according to Linux (gentoo) man pages.
Should we continue to allow mmap.mmap(0, length) to work on Windows?
0 is a valid fd.
Will backport bugfix portions.
2006-02-05 05:45:43 +00:00
Martin v. Löwis
57a34e8026
Patch #1422385 : Changes to nis module to support multiple NIS domains
2006-02-04 19:12:37 +00:00
Martin v. Löwis
14694662d5
Drop C library for stat/fstat on Windows.
2006-02-03 12:54:16 +00:00
Gustavo Niemeyer
548148810b
Patch #1413711 : Certain patterns of differences were making difflib
...
touch the recursion limit. The applied patch inlines the recursive
__helper method in a non-recursive way.
2006-01-31 18:34:13 +00:00
Martin v. Löwis
c81e3a63af
Fix typo.
2006-01-30 15:04:31 +00:00
Gregory P. Smith
cfc4a8dae7
add bsddb.db.DBEnv.set_tx_timestamp mention
2006-01-29 19:46:23 +00:00
Neal Norwitz
62a21121b4
Fix bug #1413192 , fix seg fault in bsddb if a txn was deleted before the env.
...
Will backport.
2006-01-25 05:21:55 +00:00
Gregory P. Smith
e101df9748
note the bsddb extension module changes.
2006-01-24 20:09:45 +00:00
Martin v. Löwis
3e86595280
Patch #1349118 : urllib2 now supports user:pass@ style proxy
...
specifications, raises IOErrors when proxies for unsupported protocols
are defined, and uses the https proxy on https redirections.
2006-01-24 15:51:21 +00:00
Georg Brandl
531cebad4c
Bug #902075 : urllib2 now handles "host:port" proxy specifications
...
Can/should this be backported?
2006-01-21 07:20:56 +00:00
Georg Brandl
89f35ac180
Bug #1407902 : Added support for sftp:// URIs to urlparse.
2006-01-20 17:24:23 +00:00
Georg Brandl
8cb307728e
Bug #1402224 : Add warning to dl docs about crashes.
2006-01-20 09:34:29 +00:00
Georg Brandl
a3a93ae7c8
Bug #1396471 : Document that Windows' ftell() can return invalid
...
values for text files with UNIX-style line endings.
2006-01-20 09:14:36 +00:00
Georg Brandl
b709c2caba
Bug #1371247 : Update Windows LCIDs in locale.py.
2006-01-20 09:07:35 +00:00
Martin v. Löwis
11017b172d
Patch #1103116 : AF_NETLINK sockets basic support.
2006-01-14 18:12:57 +00:00
Neal Norwitz
f60cd47f10
Fix typo
2006-01-14 07:05:13 +00:00
Georg Brandl
45ab233935
Bug #1394565 : SimpleHTTPServer now doesn't choke on query paramters
...
any more.
2006-01-13 17:05:56 +00:00
Georg Brandl
4edd989eaf
Bug #1403410 : The warnings module now doesn't get confused
...
when it can't find out the module name it generates a warning for.
2006-01-13 16:59:46 +00:00
Neal Norwitz
3b4fff8079
Fix SF bug #1402308 , segfault when using mmap(-1, ...)
...
This didn't crash on Linux, but valgrind complained.
I'm not sure if this test is valid on Windows.
Will backport.
2006-01-11 08:54:45 +00:00
Neal Norwitz
88bbd73d07
SF bug #1400822 , Extended version of _curses over{lay,write} does not work
...
Fix signatures to conform to doc (also fixed ungetmouse()).
Will backport.
2006-01-10 07:05:44 +00:00
Neal Norwitz
fc76d633e8
- Patch #1400181 , fix unicode string formatting to not use the locale.
...
This is how string objects work. u'%f' could use , instead of .
for the decimal point. Now both strings and unicode always use periods.
This is the code that would break:
import locale
locale.setlocale(locale.LC_NUMERIC, 'de_DE')
u'%.1f' % 1.0
assert '1.0' == u'%.1f' % 1.0
I couldn't create a test case which fails, but this fixes the problem.
Will backport.
2006-01-10 06:03:13 +00:00
Neal Norwitz
671b9e34c6
Fix bugs #1244610 , #1392915 , fix build problem on OpenBSD 3.7 and 3.8.
...
configure would break checking curses.h.
Will backport.
2006-01-09 07:07:12 +00:00
Neal Norwitz
5e3d862392
Bug #1400115 , Fix segfault when calling curses.panel.userptr()
...
without prior setting of the userptr.
Will backport.
2006-01-09 06:24:35 +00:00
Martin v. Löwis
412ed3b8a7
Patch #1177307 : UTF-8-Sig codec.
2006-01-08 10:45:39 +00:00
Martin v. Löwis
fd9a72ad89
Patch #881820 : look for openpty and forkpty also in libbsd.
...
Will backport.
2006-01-08 10:07:33 +00:00
Neal Norwitz
40c6b47ca1
Fix errors on 64-bit platforms. Will backport
2006-01-05 05:43:35 +00:00
Martin v. Löwis
64c33ddab1
Mention that zlib is now builtin on Windows.
2006-01-03 07:42:14 +00:00
Barry Warsaw
538561e466
Ported from 2.4 branch:
...
Patch by Ori Avtalion to fix a minor display glitch in the RightArrow.
2006-01-01 21:48:54 +00:00
Martin v. Löwis
d5845ec32e
Use -xcode=pic32 for SunPro. Will backport to 2.4.
2005-12-30 12:31:38 +00:00
Georg Brandl
cd4d1e8b46
[ 959576 ] Can't build Python on POSIX w/o $HOME
2005-12-27 17:37:07 +00:00
Neal Norwitz
ab86f8eef5
Patch #1157027 , cookielib mis-handles RFC 2109 cookies in Netscape mode
2005-12-23 21:44:36 +00:00
Neal Norwitz
338e7866e6
Patch #1117398 : fix cookielib LoadError
2005-12-23 21:27:46 +00:00
Neal Norwitz
c10978f43c
Bug #1072182 , fix some potential problems if characters are signed.
2005-12-19 06:07:16 +00:00
Neal Norwitz
5d0ad50f5a
Bug #889500 , fix line number on SyntaxWarning for global declarations.
2005-12-19 04:27:42 +00:00
Neal Norwitz
db83eb3170
Fix Bug #1378022 , UTF-8 files with a leading BOM crashed the interpreter.
...
Needs backport.
2005-12-18 05:29:30 +00:00
Neal Norwitz
e7214a130b
Get float() to be more portable across platforms. Disable hex strings.
2005-12-18 05:03:17 +00:00
Neal Norwitz
8856fb750b
SF Patch #1365916 , mmap fails on AMD64
...
Fix some 64-bit issues due to mismatch format characters w/actual data types
2005-12-18 03:34:22 +00:00
Barry Warsaw
2a38a86c1c
Expose Subversion revision number (calculated via "svnversion .") to Python.
...
Add C API function Py_GetBuildNumber(), add it to the interactive prompt
banner (i.e. Py_GetBuildInfo()), and add it as the sys.build_number
attribute. The build number is a string instead of an int because it may
contain a trailing 'M' if there are local modifications.
2005-12-18 01:27:35 +00:00
Neal Norwitz
11ca77e6de
Doc for PEP 341, needs improvement
2005-12-17 22:24:12 +00:00
Georg Brandl
58f46b6565
Fix leftover word.
2005-12-17 21:47:06 +00:00
Georg Brandl
fa16668c9b
Added PEP 341 to NEWS.
...
We still need a change in the reference manual to reflect the
new try statement.
2005-12-17 21:45:17 +00:00
Hye-Shik Chang
835b243c71
Bug #1379994 : Fix *unicode_escape codecs to encode r'\' as r'\\'
...
just like string codecs.
2005-12-17 04:38:31 +00:00
Tim Peters
e3547fd2f7
More text about the pragmatic significance of hashlib.
2005-12-16 23:13:57 +00:00
Brett Cannon
3cbd0380f3
Add the missing mention of the hashlib module.
2005-12-16 22:49:23 +00:00
Neal Norwitz
a716eabca7
Revert r41662 and the part of 41552 that originally caused the problem
...
(calling ftell(stdin) doesn't seem defined). So we won't test errors
from ftell unless we can do it portably.
2005-12-15 05:25:09 +00:00
Hye-Shik Chang
e237d50390
Add a workaround for file.ftell() to raise IOError for ttys.
...
ftell(3) on BSD doesn't set errno even for ttys and returns useless
values.
2005-12-13 16:44:02 +00:00
Fredrik Lundh
7e0aef0e75
r1068@spiff: Fredrik | 2005-12-12 19:50:30 +0100
...
assorted xml.etree tweaks
2005-12-12 18:54:55 +00:00
Hye-Shik Chang
c5c57e6d98
Bug #1290333 : Added a workaround for cjkcodecs' _codecs_cn module
...
build problem on AIX.
2005-12-12 11:48:32 +00:00
Hye-Shik Chang
aaa2f1dea7
Patch #1276356 : Implement new resource "urlfetch" for regrtest.
...
This enables even impatient people to run tests that require remote
files such as test_normalization and test_codecmaps_*.
2005-12-10 17:44:27 +00:00
Andrew M. Kuchling
427aedbbd4
[Patch #1039083 ] Add 'encoding' parameter to SimpleXMLRPCServer
2005-12-04 17:13:12 +00:00
Andrew M. Kuchling
10a16dea74
[Patch #893642 ] Add optional allow_none argument to SimpleXMLRPCServer, CGIXMLRPCRequestHandler
2005-12-04 16:34:40 +00:00
Andrew M. Kuchling
e63fde72f3
[Bug #792570 ] Under Windows, socket.read() seems to run into trouble when
...
asked to read tens of megabytes of data. On my Mac, it hits MemoryErrors
when reading around 15Mb in one chunk. The fix is to read the body in several
parts, not as one big piece.
It would be nice to fix the underlying socket.read() problem, too.
2.4 bugfix candidate.
2005-12-04 15:36:57 +00:00
Andrew M. Kuchling
3a97605500
[Bug #1222790 ] Set reuse-address and close-on-exec flags on the HTTP listening socket
2005-12-04 15:07:41 +00:00
Martin v. Löwis
b45b315855
Patch #1350409 : Port signal handling to VS 2005.
2005-11-28 17:34:23 +00:00
Martin v. Löwis
307021f40b
Patch #1162825 : Support non-ASCII characters in IDLE window titles.
2005-11-27 16:59:04 +00:00
Georg Brandl
1f663574ee
bug #1365984 : urllib and data: URLs. Problem was that cStringIO objects cannot be assigned attributes on the fly.
2005-11-26 16:50:44 +00:00
Georg Brandl
f06e30af4a
bug #1281408 : make Py_BuildValue work with unsigned longs and long longs
2005-11-24 15:37:42 +00:00
Brett Cannon
ad07ff2c77
Prevent threading.Thread.join() from blocking when a previous call raised an
...
exception (e.g., passing in an illegal argument).
Applies patch #1314396 . Thanks Eric Blossom.
2005-11-23 02:15:50 +00:00
Georg Brandl
a13c2446dc
Bug #869197 : setgroups rejects long integer argument
2005-11-22 19:30:31 +00:00
Andrew M. Kuchling
b2a739d19b
Typo fix
2005-11-22 15:14:44 +00:00
Walter Dörwald
09f0dd5842
Use basestring instead of type.StringType for checking whether a input
...
or output file is a file name instead of a file object. This enables
unicode file names as arguments to uu.encode() and uu.decode().
2005-11-21 19:10:07 +00:00
Neal Norwitz
67715f0420
- SF Bug #1350188 , "setdlopenflags" leads to crash upon "import"
...
It was possible dlerror() returns a NULL pointer, use a default error
message in this case.
2005-11-09 06:59:35 +00:00
Neal Norwitz
0f46bbf781
Bug #1346533 , select.poll() doesn't raise an error if timeout > sys.maxint
...
Need to check return result of PyInt_AsLong()
Will backport.
2005-11-03 05:00:25 +00:00
Brett Cannon
5d0bf9446b
Change time.strptime() to raise ValueError whenever there is an error in the
...
format string. Before exceptions generated by the internal code propagated up
to the user and were not helpful.
Closes bug #1340337 .
2005-11-02 23:04:26 +00:00
Neal Norwitz
7b631793ab
Bug #1344508 , Fix UNIX mmap leaking file descriptors. Will backport.
2005-11-02 05:26:07 +00:00
Neal Norwitz
f339654280
Patch #1338314 , Bug #1336623 : fix tarfile so it can extract
...
REGTYPE directories from tarfiles written by old programs.
Will backport.
2005-10-28 05:52:22 +00:00
Marc-André Lemburg
a5bafc43d7
Add news item for the new charmap codecs.
2005-10-23 13:43:40 +00:00
Neal Norwitz
fed9b3ece3
add some notes about recent checkins
2005-10-21 06:32:02 +00:00
Neal Norwitz
b6570f51c5
Get the bug # write
2005-10-21 06:26:10 +00:00
Neal Norwitz
16af734bec
Incorrect code was generated for:
...
foo(a = i for i in range(10))
This should have generated a SyntaxError. Fix the Grammar so
it raises a SyntaxError and test it.
2005-10-21 06:25:33 +00:00
Walter Dörwald
007f8dfde2
Bug #1245379 : Add "unicode-1-1-utf-7" as an alias for "utf-7" as specified
...
by RFC 1642.
2005-10-09 19:42:27 +00:00
Walter Dörwald
a05834e59c
Remove trailing spaces.
2005-10-09 19:38:21 +00:00
Walter Dörwald
6611a8b0dc
Fix indentation.
2005-10-09 19:28:35 +00:00
Walter Dörwald
d1c1e10f70
Part of SF patch #1313939 : Speedup charmap decoding by extending
...
PyUnicode_DecodeCharmap() the accept a unicode string as the mapping
argument which is used as a mapping table.
This code isn't used by any of the codecs yet.
2005-10-06 20:29:57 +00:00
Georg Brandl
e8f244305e
Patch #754022 : Greatly enhanced webbrowser.py.
2005-10-03 14:16:44 +00:00
Neal Norwitz
708e51a6b1
Fix SF bug #976608 , Unhelpful error message when mtime of a module is -1
...
Will backport.
2005-10-03 04:48:15 +00:00
Neal Norwitz
11bd119226
SF bug #887946 , segfault if redirecting directory
...
Also provide a warning if a directory is passed on the command line.
Add minimal command line test.
Will backport.
2005-10-03 00:54:56 +00:00
Neal Norwitz
40d3781416
- Fix segfault with invalid coding.
...
- SF Bug #772896 , unknown encoding results in MemoryError, which is not helpful
I will only backport the segfault fix. I'll let Anthony decide if he wants
the other changes backported. I will do the backport if asked.
2005-10-02 01:48:49 +00:00
Georg Brandl
8b813db2ef
bug [ 729103 ] Cannot retrieve name of super object
2005-10-01 16:32:31 +00:00
Neal Norwitz
484d9a409a
Patch #1309009 , Fix segfault in pyexpat when the XML document is
...
in latin_1, but Python incorrectly assumes it is in UTF-8 format
Will backport.
2005-09-30 04:46:49 +00:00
Georg Brandl
aa93517de8
patch [ 1300515 ] xdrlib.py: pack_fstring() did not use null bytes for padding
2005-09-29 20:49:16 +00:00
Georg Brandl
80ba8e8549
bug [ 1296004 ] MemoryError in httplib
2005-09-29 20:16:07 +00:00
Georg Brandl
e677adc43a
Fix parse errors in readline module when compiling without threads.
2005-09-29 13:40:49 +00:00
Raymond Hettinger
6b27cda643
Convert iterator __len__() methods to a private API.
2005-09-24 21:23:05 +00:00
Hye-Shik Chang
9ceebd5445
Patch #1288833 : Removed thread lock from socket.getaddrinfo on
...
FreeBSD 5.3 and later versions which got thread-safe getaddrinfo(3).
(Reported by Maxim Sobolev)
2005-09-24 14:58:47 +00:00
Michael W. Hudson
10402a306f
Patches #1298449 and #1298499 : Add some missing checks for error
...
returns in cStringIO.c. Thanks to Andrew Bennetts.
This must be a backport candidate.
2005-09-22 09:19:01 +00:00
Neal Norwitz
058bde1944
SF Patch #1297028 , cjkcodecs does not initialize type pointer
...
Fix segfault. I tried to write a test, but it wouldn't crash
when running regrtest. This really should have some sort of test.
Should definitely be backported.
2005-09-21 06:44:25 +00:00
Guido van Rossum
630db60a55
- On 64-bit platforms, when __len__() returns a value that cannot be
...
represented as a C int, raise OverflowError.
(Forward port from 2.4.2; the patch to classobject.c was already in
but needed a correction in the error message text.)
2005-09-20 18:49:54 +00:00
Matthias Klose
f3f231f60c
- Patch #1166948 : locale.py: Prefer LC_ALL, LC_CTYPE and LANG over LANGUAGE
...
to get the correct encoding.
- Patch #1166938 : locale.py: Parse LANGUAGE as a colon separated list of
languages.
2005-09-20 07:02:49 +00:00
Neal Norwitz
cfe7dd96cf
Note fix of memory leak.
2005-09-19 06:49:27 +00:00
Skip Montanaro
f8948ca5d7
skip _locale test if OS X < 10.4
2005-09-19 03:54:46 +00:00
Martin v. Löwis
4ed673877d
Patch #1268314 : Cache lines in StreamReader.readlines for performance.
...
Will backport to Python 2.4.
2005-09-18 08:34:39 +00:00
Martin v. Löwis
8b291e2d66
Patch #1213831 : Fix typo in unicodedata._getcode.
...
Will backport to Python 2.4.
2005-09-18 08:17:56 +00:00
Brett Cannon
a783d06f8c
Clear out the regex cache when the TimeRE cache is invalidated by a locale
...
change.
Fixes bug #1290505 .
2005-09-15 02:34:56 +00:00
Georg Brandl
fb1ef85b0b
*** empty log message ***
2005-09-14 20:53:32 +00:00
Georg Brandl
3225242a39
bug [ 1274828 ] splitunc not documented
2005-09-14 20:42:00 +00:00
Georg Brandl
80bbf3f6c8
Complete format code support in getargs.c::skipitem(), which is called when
...
evaluating keyword arguments.
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: Python/getargs.c
CVS: ----------------------------------------------------------------------
2005-09-14 19:38:29 +00:00
Guido van Rossum
8ee3e5aa93
- Changes donated by Elemental Security to make it work on AIX 5.3
...
with IBM's 64-bit compiler (SF patch #1284289 ). This also closes SF
bug #105470 : test_pwd fails on 64bit system (Opteron).
2005-09-14 18:09:42 +00:00
Guido van Rossum
539c662f10
- Changes donated by Elemental Security to make it work on HP-UX 11 on
...
Itanium2 with HP's 64-bit compiler (SF patch #1225212 ).
2005-09-14 17:49:54 +00:00
Gustavo Niemeyer
6fa0c5a452
Bug #1202493 : Fixing SRE parser to handle '{}' as perl does, rather than
...
considering it exactly like a '*'.
2005-09-14 08:54:39 +00:00
Walter Dörwald
78a78b0768
Fix rest markup and typos.
2005-09-01 12:04:29 +00:00
Walter Dörwald
c5238b8288
SF bug #1235646 : codecs.StreamRecoder.next() now reencodes the data it reads
...
from the input stream, so that the output is a byte string in the correct
encoding instead of a unicode string.
2005-09-01 11:56:53 +00:00
Walter Dörwald
a47d1c08d0
SF bug #1251300 : On UCS-4 builds the "unicode-internal" codec will now complain
...
about illegal code points. The codec now supports PEP 293 style error handlers.
(This is a variant of the Nik Haldimann's patch that detects truncated data)
2005-08-30 10:23:14 +00:00
Martin v. Löwis
5dbdc59577
Patch #1168594 : set sizes of non-regular files to zero. Fixes #1167128 .
...
Will backport to 2.4.
2005-08-27 10:07:56 +00:00
Georg Brandl
5a650a253c
patch [ 810023 ] Fix for off-by-one bug in urllib.URLopener.retrieve
2005-08-26 08:51:34 +00:00
Georg Brandl
d2e3ba7a35
patch [ 756021 ] Allow socket.inet_aton("255.255.255.255") on Windows
2005-08-26 08:34:00 +00:00
Georg Brandl
4550b8db56
typo
2005-08-26 06:43:52 +00:00
Georg Brandl
02c42871cf
Disallow keyword arguments for type constructors that don't use them.
...
(fixes bug #1119418 )
2005-08-26 06:42:30 +00:00
Georg Brandl
02760f9b25
Correcting my last BZ2 entry. Adding one for #1215928 .
2005-08-25 13:10:41 +00:00
Martin v. Löwis
8b59514e57
Make IDNA return an empty string when the input is empty. Fixes #1163178 .
...
Will backport to 2.4.
2005-08-25 11:03:38 +00:00
Georg Brandl
532efabf1d
patch #848017 : make Cookie more RFC-compliant.
2005-08-24 22:34:21 +00:00
Georg Brandl
b925602f16
Patch [ 1062060 ] fix for 1016880 urllib.urlretrieve silently truncates dwnld
2005-08-24 18:46:39 +00:00
Georg Brandl
568973181a
Patch [ 784089 ] A program to scan python files and list those require coding
2005-08-24 18:32:30 +00:00
Martin v. Löwis
0a5d4a20e7
Patch #1167716 : Support Unicode filenames in mkpath. Fixes #1121494 .
...
Will backport to 2.4.
2005-08-24 14:55:22 +00:00
Martin v. Löwis
d35edda682
Forward UnicodeDecodeError into SyntaxError for source encoding errors.
...
Will backport to 2.4.
2005-08-24 08:39:24 +00:00
Martin v. Löwis
56066d2e55
Return complete lines from codec stream readers
...
even if there is an exception in later lines, resulting in
correct line numbers for decoding errors in source code. Fixes #1178484 .
Will backport to 2.4.
2005-08-24 07:38:12 +00:00
Georg Brandl
6d2b346140
bug [ 1192315 ] 'clear -1' in pdb
2005-08-24 07:36:17 +00:00
Georg Brandl
79c122f568
bug [ 1190204 ] 3.29 site is confusing re site-packages on Windows
2005-08-24 07:31:33 +00:00
Georg Brandl
6f2bbd353b
bug [ 1193849 ] os.path.expanduser documentation wrt. empty $HOME
2005-08-24 07:26:55 +00:00
Georg Brandl
38387b8b91
bug [ 728515 ] mmap's resize method resizes the file in win32 but not unix
2005-08-24 07:17:40 +00:00
Martin v. Löwis
faffa15842
Revert previous checkin.
2005-08-24 06:43:09 +00:00
Martin v. Löwis
bc3b06087c
Patch #1262036 : Make tarfile name absolute. Fixes #1257255 .
...
Will backport to 2.4.
2005-08-24 06:06:52 +00:00
Andrew M. Kuchling
88b8582e45
Typo fixes
2005-08-23 00:57:07 +00:00
Georg Brandl
f0de6a18bb
Bug #1266283 : lexists() is not exported from os.path
2005-08-22 18:02:59 +00:00
Georg Brandl
33a5f2af59
Fix BZ2File.(x)readlines() for files without a newline.
2005-08-21 14:16:04 +00:00
Raymond Hettinger
beb3101b05
Add a C API for sets and frozensets.
2005-08-16 03:47:52 +00:00
Barry Warsaw
e2eca0b709
Port from the Python 2.4 branch, patches for SF bug # 900092,
...
hotshot.stats.load.
2005-08-15 18:14:19 +00:00
Neil Schemenauer
cf52c07843
Change the %s format specifier for str objects so that it returns a
...
unicode instance if the argument is not an instance of basestring and
calling __str__ on the argument returns a unicode instance.
2005-08-12 17:34:58 +00:00
Martin v. Löwis
ebd9d5ba1a
Patch #1180695 : Implement nanosecond stat resolution on FreeBSD,
...
add st_gen, st_birthtime.
2005-08-09 15:00:59 +00:00
Martin v. Löwis
147fbe5a55
Patch #1239112 : Correct LINKCC C++ test. Fixes #1189330 .
...
Backported to 2.4.
2005-08-07 21:09:30 +00:00
Martin v. Löwis
b813c53cd8
Patch #827386 : Support absolute source paths in msvccompiler.py.
...
Backported to 2.4.
2005-08-07 20:51:04 +00:00
Georg Brandl
649f8e7de2
patch [ 1105730 ] Faster commonprefix in macpath, ntpath, etc.
2005-08-03 07:30:12 +00:00
Georg Brandl
f13c4ba11b
[ 1243192 ] Incorrect documentation of re.UNICODE
2005-08-02 10:28:08 +00:00
Raymond Hettinger
9f1a6796eb
Revised the set() and frozenset() implementaion to use its own internal
...
data structure instead of using dictionaries. Reduces memory consumption
by 1/3 and provides modest speed-ups for most set operations.
2005-07-31 01:16:36 +00:00
Michael W. Hudson
8137bea4ca
This is barry-scott's patch:
...
[ 1231069 ] ioctl has problem with -ive request codes
by using the 'I' not the 'i' format code to PyArg_ParseTuple().
Backport candidate? Maybe...
2005-07-27 20:24:40 +00:00
Guido van Rossum
755149fb97
Ouch, move that comment to the right place.
2005-07-27 00:00:44 +00:00
Guido van Rossum
49a4b68b8b
Fix a problem in Tkinter introduced by SF patch #869468 (checked in as
...
1.179): delete bogus __hasattr__ and __delattr__ methods on class Tk
that were breaking Tkdnd.
2005-07-26 23:57:46 +00:00
Trent Mick
8321b42f38
Upgrade Windows build to zlib 1.2.3 (a security fix)
2005-07-26 02:29:21 +00:00
Georg Brandl
7eb4b7d177
Fix all wrong instances of "it's".
2005-07-22 21:49:32 +00:00
Georg Brandl
08c02dbb85
[ 1243081 ] repair typos
2005-07-22 18:39:19 +00:00
Georg Brandl
150db73c78
added news entry for previous checkin
2005-07-18 08:53:17 +00:00
Tim Peters
de7990b8af
SF bug #1238681 : freed pointer is used in longobject.c:long_pow().
...
In addition, long_pow() skipped a necessary (albeit extremely unlikely
to trigger) error check when converting an int modulus to long.
Alas, I was unable to write a test case that crashed due to either
cause.
Bugfix candidate.
2005-07-17 23:45:23 +00:00
Georg Brandl
5dbda75a02
- Bug #1015140 : disambiguated the term "article id" in nntplib docs and
...
docstrings to either "article number" or "message id".
2005-07-17 20:27:41 +00:00
Hye-Shik Chang
4e422817eb
Add support for FreeBSD 7.
2005-07-17 02:36:59 +00:00
Georg Brandl
a4a8b820aa
bug [ 1238170 ] threading.Thread uses {} as default argument
2005-07-15 09:13:21 +00:00
Raymond Hettinger
8bfa8935ea
textwrap now processes text chucks at O(n) speed instead of O(n**2).
...
Patch #1209527 (Contributed by Connelly).
2005-07-15 06:53:35 +00:00
Georg Brandl
5c5fe2f445
RFE [ 1216944 ] Add Error Code Dictionary to urllib2
2005-07-14 06:40:47 +00:00
Michael W. Hudson
0edc7a03e2
Fix:
...
[ 1229429 ] missing Py_DECREF in PyObject_CallMethod
Add a test in test_enumerate, which is a bit random, but suffices
(reversed_new calls PyObject_CallMethod under some circumstances).
2005-07-12 10:21:19 +00:00
Tim Peters
ecc6e6a54e
SF bug 1185883: PyObject_Realloc can't safely take over a block currently
...
managed by C, because it's possible for the block to be smaller than the
new requested size, and at the end of allocated VM. Trying to copy over
nbytes bytes to a Python small-object block can segfault then, and there's
no portable way to avoid this (we would have to know how many bytes
starting at p are addressable, and std C has no means to determine that).
Bugfix candidate. Should be backported to 2.4, but I'm out of time.
2005-07-10 22:30:55 +00:00
Georg Brandl
af410b510d
bug [ 1234979 ] Lock.acquire treats only 1 as True
2005-07-08 22:26:13 +00:00
Michael W. Hudson
b89638148b
Fix bug
...
[ 1232517 ] OverflowError in time.utime() causes strange traceback
A needed error check was missing.
(Actually, this error check may only have become necessary in fairly
recent Python, not sure).
Backport candidate.
2005-07-05 15:21:58 +00:00
Georg Brandl
9e43acf2f3
bug #1177468 : don't cache /dev/urandom file descriptor in os.urandom
2005-07-04 17:16:07 +00:00
Raymond Hettinger
3296e696db
SF bug #1224347 : int/long unification and hex()
...
Hex longs now print with lowercase letters like their int counterparts.
2005-06-29 23:29:56 +00:00
Georg Brandl
5284b532d1
- Bug #839151 : Fix an attempt to access sys.argv in the warnings module
...
though this can be missing in embedded interpreters
2005-06-26 22:54:58 +00:00
Georg Brandl
2f210b6bca
- Bug #1155638 : Fix a bug which affected HTTP 0.9 responses in httplib.
2005-06-26 22:09:06 +00:00
Georg Brandl
fbff1bcd69
- Bug #1100201 : Cross-site scripting was possible on BaseHTTPServer via
...
error messages.
2005-06-26 21:36:25 +00:00
Georg Brandl
379f99dbc3
Add NEWS entries for bugs closed at Bug Day.
2005-06-26 21:09:38 +00:00
Georg Brandl
40c7165e7d
NEWS entry for last bugfix
2005-06-25 21:08:46 +00:00
Raymond Hettinger
da99d1cbfe
SF bug #1224621 : tokenize module does not detect inconsistent dedents
2005-06-21 07:43:58 +00:00
Michael W. Hudson
188d4366be
Fix bug:
...
[ 1163563 ] Sub threads execute in restricted mode
basically by fixing bug 1010677 in a non-broken way.
Backport candidate.
2005-06-20 16:52:57 +00:00
Raymond Hettinger
68c0453418
Add untokenize() function to allow full round-trip tokenization.
...
Should significantly enhance the utility of the module by supporting
the creation of tools that modify the token stream and writeback the
modified result.
2005-06-10 11:05:19 +00:00
Georg Brandl
9166e1a24a
Bug #1196315 : fix weakref.WeakValueDictionary constructor.
2005-06-04 09:20:03 +00:00
Georg Brandl
6b95f1d963
Bug #1194181 : bz2.BZ2File didn't handle mode 'U' correctly.
2005-06-03 19:47:00 +00:00
Michael W. Hudson
df88846ebc
This is my patch:
...
[ 1180995 ] binary formats for marshalling floats
Adds 2 new type codes for marshal (binary floats and binary complexes), a
new marshal version (2), updates MAGIC and fiddles the de-serializing of
code objects to be less likely to clobber the real reason for failing if
it fails.
2005-06-03 14:41:55 +00:00
Georg Brandl
268e61cf74
Bug #1213894 : os.path.realpath didn't resolve symlinks that were the first
...
component of the path.
2005-06-03 14:28:50 +00:00
Hye-Shik Chang
5f937a7b8b
Patch #1212117 : Add optional attribute st_flags to os.stat_result
...
when the member is available on the platform. (Contributed by
Diego Petteno)
2005-06-02 13:09:30 +00:00
Michael W. Hudson
da85a90808
NEWS entry for the patch I checked in last week.
2005-06-01 11:34:22 +00:00
Skip Montanaro
bbf12ba7b2
Disallow opening files with modes 'aU' or 'wU' as specified by PEP
...
278. Closes bug 967182.
2005-05-20 03:07:06 +00:00
Skip Montanaro
5ff1492720
Add O_SHLOCK & O_EXLOCK. Closes patch #1103951 .
2005-05-16 02:42:22 +00:00
Skip Montanaro
174dd2219d
Add better datetime support to xmlrpclib module. Closes patch #1120353 .
2005-05-14 20:54:16 +00:00
Brett Cannon
c3647ac93e
Make subclasses of int, long, complex, float, and unicode perform type
...
conversion using the proper magic slot (e.g., __int__()). Also move conversion
code out of PyNumber_*() functions in the C API into the nb_* function.
Applied patch #1109424 . Thanks Walter Doewald.
2005-04-26 03:45:26 +00:00
Martin v. Löwis
d7c795e729
Make parse_makefile fallback to environment variables if nothing is
...
defined in the makefile. Get CFLAGS from the Makefile, instead of
getting OPT, BASE_CFLAGS and EXTRA_CFLAGS individually.
2005-04-25 07:14:03 +00:00
Brett Cannon
08cd598c21
Introduced EXTRA_CFLAGS as an environment variable used by the Makefile. Meant
...
to be used for flags that change binary compatibility.
Distutils was tweaked to also use the variable if used during compilation of
the interpreter.
2005-04-24 22:26:38 +00:00
Walter Dörwald
bc8e642c1b
If the data read from the bytestream in readline() ends in a '\r' read one more
...
byte, even if the user has passed a size parameter. This extra byte shouldn't
cause a buffer overflow in the tokenizer. The original plan was to return a line
ending in '\r', which might be recognizable as a complete line and skip any '\n'
that was read afterwards. Unfortunately this didn't work, as the tokenizer only
recognizes '\n' as line ends, which in turn lead to joined lines and
SyntaxErrors, so this special treatment of a split '\r\n' has been dropped. (It
can only happen with a temporarily exhausted bytestream now anyway.)
Fixes parts of SF bugs #1163244 and #1175396 .
2005-04-21 21:32:03 +00:00
Barry Warsaw
c8d907c60b
As per discussion on python-dev, descriptors defined in C with a NULL setter
...
now raise AttributeError instead of TypeError, for consistency with their
pure-Python equivalent.
2005-04-19 23:43:40 +00:00
Michael W. Hudson
774479c68b
Fix:
...
[ 1176893 ] Readline segfault
by unsilly-ing PyGILState_Release().
Backport candidate.
2005-04-18 08:46:17 +00:00
Martin v. Löwis
ab9ec1654f
Patch #1177597 : Fix various bugs in Demo/classes/Complex.py.
2005-04-09 10:53:34 +00:00
Brett Cannon
f4189916e3
Flush out support for ``class B(): pass`` syntax by adding support to the
...
'parser' module and 'compiler' package.
Closes patch #1176012 . Thanks logistix.
2005-04-09 02:30:16 +00:00
Michael W. Hudson
e3afc598bc
In a threads-disabled build, typing Ctrl-C into a raw_input() crashed,
...
because (essentially) I didn't realise that PY_BEGIN/END_ALLOW_THREADS
actually expanded to nothing under a no-threads build, so if you somehow
NULLed out the threadstate (e.g. by calling PyThread_SaveThread) it would
stay NULLed when you return to Python. Argh!
Backport candidate.
2005-04-07 10:11:19 +00:00
Walter Dörwald
a6e8a4ad12
Since PyPI only accepts UTF-8 encoded data now, make sure that the data is
...
properly encoded and include the encoding in the Content-Type header.
2005-03-31 13:57:38 +00:00
Michael W. Hudson
b330adf9eb
NEWS entries for the bugs I fixed yesterday.
2005-03-31 09:35:44 +00:00
Bob Ippolito
ed233460d8
Update NEWS for patch 1171735 (Darwin 8 build fixes)
2005-03-29 13:47:59 +00:00
Anthony Baxter
12b6f6cac7
Move exception finalisation later in the shutdown process - this
...
fixes the crash seen in bug #1165761
2005-03-29 13:36:16 +00:00
Raymond Hettinger
267b868f23
* Fix decimal's handling of foreign types. Now returns NotImplemented
...
instead of raising a TypeError. Allows other types to successfully
implement __radd__() style methods.
* Remove future division import from test suite.
* Remove test suite's shadowing of __builtin__.dir().
2005-03-27 10:47:39 +00:00
Martin v. Löwis
55f1bb8bfa
Add the upload command. Make all dist commands register their
...
outputs with the distribution object.
2005-03-21 20:56:35 +00:00
Raymond Hettinger
4aec61e0fc
Add a remove() method to collections.deque objects.
2005-03-18 21:20:23 +00:00
Walter Dörwald
09515af5e2
Fix typo.
2005-03-18 10:28:24 +00:00
Raymond Hettinger
bea3f6f5c7
Bug #1163325 : "special" decimals aren't hashable
2005-03-15 04:59:17 +00:00
Raymond Hettinger
96229b1918
Add two new functions, any() and all().
2005-03-11 06:49:40 +00:00
Raymond Hettinger
984f9bb714
operator.itemgetter() and operator.attrgetter() now support extraction
...
of multiple fields. This provides direct support for sorting by
multiple keys.
2005-03-09 16:38:48 +00:00
Martin v. Löwis
e2713becd8
Build with --disable-unicode again. Fixes #1158607 .
...
Will backport to 2.4.
2005-03-08 15:03:08 +00:00
Martin v. Löwis
b60ae99601
Convert file names of posix.access according to the file system encoding.
2005-03-08 09:10:29 +00:00
Martin v. Löwis
78be7df9e4
Patch #918101 : Add tarfile open mode r|* for auto-detection of the
...
stream compression; add, for symmetry reasons, r:* as a synonym of r.
2005-03-05 12:47:42 +00:00
Brett Cannon
409d8f2ebd
Allow classes to be defined with empty parentheses. This means that
...
``class C(): pass`` is no longer a syntax error.
2005-03-05 06:47:57 +00:00
Greg Ward
40407943b7
SF #1149508 : ensure textwrap handles hyphenated numbers correctly,
...
eg. "2004-03-04" is not broken across lines. (Merged from 2.4 branch.)
2005-03-05 02:53:17 +00:00
Martin v. Löwis
00a73e7715
Patch #1043890 : tarfile: add extractall() method.
2005-03-04 19:40:34 +00:00
Martin v. Löwis
fd78a6f7f8
Patches #925152 , #1118602 : Avoid reading after the end of the buffer
...
in pyexpat.GetInputContext. Will backport to 2.4.
2005-03-04 14:37:01 +00:00
Martin v. Löwis
c72dd38f30
Patch #1075887 : Don't require MSVC in distutils if there is nothing
...
to build. Will backport to 2.4
2005-03-04 13:50:17 +00:00
Martin v. Löwis
637431bf14
Patch #1103407 : Properly deal with tarfile iterators when untarring
...
symbolic links on Windows. Fixes #1100429 . Will backport to 2.4.
2005-03-03 23:12:42 +00:00
Martin v. Löwis
96d743ec8b
Patch #1115086 : support PY_LONGLONG in structmember.
2005-03-03 23:00:26 +00:00
Raymond Hettinger
b67cc80bb9
SF bug #1155938 : Missing None check for __init__().
2005-03-03 16:45:19 +00:00
Martin v. Löwis
4bf108d74f
Patch #802188 : better parser error message for non-EOL following line cont.
2005-03-03 11:45:45 +00:00
Martin v. Löwis
a4dac4094a
Patch #645894 : Use getrusage for computing the time consumption in
...
profile.py if available.
2005-03-03 11:39:45 +00:00
Martin v. Löwis
7fe60c0a0a
Patches #749830 , #1144555 : allow UNIX mmap size to default to current
...
file size.
2005-03-03 11:22:44 +00:00
Martin v. Löwis
df37c8c1ad
Patch #1046831 : Use get_python_version where appropriate in sysconfig.py.
2005-03-03 11:08:03 +00:00
Martin v. Löwis
c5574e809b
Patch #1117454 : Remove code to special-case cookies without values
...
in LWPCookieJar. Backported to 2.4.
2005-03-03 10:57:37 +00:00
Martin v. Löwis
4ea3eade51
Patch #1117339 : Add cookielib special name tests.
...
Backported to 2.4.
2005-03-03 10:48:12 +00:00
Martin v. Löwis
e869eb1953
Patch #1112812 : Make bsddb/__init__.py more friendly for modulefinder.
...
Backported to 2.4.
2005-03-03 09:46:07 +00:00
Martin v. Löwis
ff232d7230
Clear internal call error in 'L' format. Fixes #723201 .
...
Backported to 2.4.
2005-03-03 09:24:38 +00:00
Martin v. Löwis
f2a8d63e4f
Patch #1110248 : SYNC_FLUSH the zlib buffer for GZipFile.flush.
...
Partially fixes #1110242 .
2005-03-03 08:35:22 +00:00
Martin v. Löwis
df24153f65
Patch #1107973 : tarfile.ExFileObject iterators.
2005-03-03 08:17:42 +00:00
Martin v. Löwis
8ed338ab44
Patch #1104111 : Alter setup.py --help and --help-commands.
2005-03-03 08:12:27 +00:00
Martin v. Löwis
4afe154369
Patch #1121234 : Properly cleanup _exit and tkerror commands.
...
Will backport to 2.4.
2005-03-01 08:09:28 +00:00
Raymond Hettinger
9c323f8de4
SF patch #941881 : PEP 309 Implementation (Partial Function Application).
...
Combined efforts of many including Peter Harris, Hye-Shik Chang,
Martin v. Löwis, Nick Coghlan, Paul Moore, and Raymond Hettinger.
2005-02-28 19:39:44 +00:00
Martin v. Löwis
9533e34024
Patch #1093585 : raise a ValueError for negative history items in
...
remove_history and replace_history. Will backport to 2.4.
2005-02-27 20:33:25 +00:00
Martin v. Löwis
c2a0ac20b7
Patch #1049151 : adding bool support to xdrlib.py.
...
Also add xdrlib._test into the test suite.
2005-02-24 20:22:10 +00:00
Walter Dörwald
af3b39a182
Add support for negative indices in UserString.MutableString.__setitem__
...
and UserString.MutableString.__delitem__.
2005-02-18 13:22:43 +00:00
Michael W. Hudson
8e1afab111
NEWS blurb for fix of:
...
[ 1124295 ] Function's __name__ no longer accessible in restricted mode
2005-02-17 14:55:21 +00:00
Brett Cannon
46d9623875
spwdmodule.c should only be built when either HAVE_GETSPNAM or HAVE_GETSPENT is
...
defined.
2005-02-16 00:07:19 +00:00
Brett Cannon
ced04e0936
Add mention of patch #1095802 (fixing "Macintosh" references to represent OS
...
X).
2005-02-13 22:53:22 +00:00
Brett Cannon
4380242580
Modified test for tzset to not rely on tm->tm_zone's existence. Also added
...
sanity checks on tzname if HAVE_TZNAME defined.
Closes bug #1096244 . Thanks Gregory Bond.
2005-02-10 20:48:03 +00:00
Raymond Hettinger
bab4143348
SF patch #1116583 : NameError in cookielib domain check
2005-02-05 01:31:19 +00:00
Jeremy Hylton
ab630507de
Add NEWS item about future parser bug.
2005-02-04 18:44:06 +00:00
Guido van Rossum
d064142579
Security fix PSF-2005-001 for SimpleXMLRPCServer.py.
2005-02-03 15:01:24 +00:00
Michael W. Hudson
faa7648ffe
More bug #1077106 stuff, sorry -- modem induced impatiece!
...
This should go on whatever bugfix branches the other fetches up on.
2005-01-31 17:09:25 +00:00
Martin v. Löwis
1d11de6dbd
Revert os.py 1.75, and directly implement update.
...
Fixes #1110478 and #1100235 .
2005-01-29 13:29:23 +00:00
Martin v. Löwis
13a1fde4da
Partially revert #1074011 ; don't try to fflush stdin.
...
Backported to 2.3 and 2.4.
2005-01-27 18:56:16 +00:00
Fred Drake
9c131f2879
add missing word
2005-01-23 15:16:08 +00:00
Martin v. Löwis
8e3ca8af26
Flush std{in,out,err} before closing it. Fixes #1074011 .
...
Will backport to 2.4 and 2.3.
2005-01-23 09:41:49 +00:00
Martin v. Löwis
c300175547
Patch #579435 : Shadow Password Support Module
2005-01-23 09:27:24 +00:00
Martin v. Löwis
4d394dfebb
Truncate st_?time before comparing it with ST_?TIME in the tests.
2005-01-23 09:19:22 +00:00
Thomas Heller
d6c6e2224b
distutils/command/install.py change.
2005-01-20 19:20:16 +00:00
Skip Montanaro
058858151d
Document the reconvert module.
2005-01-16 20:48:27 +00:00
Martin v. Löwis
fe33d0ba87
Default stat_float_times to true.
2005-01-16 08:57:39 +00:00
Martin v. Löwis
22b457e03b
Added SEEK_* constants. Fixes #711830 .
2005-01-16 08:40:58 +00:00
Andrew McNamara
f69d94f6c0
Moved reader \r and \n processing from the iterator to the state machine -
...
this allows for better handling of newline characters in quoted fields (and
hopefully resolves Bug 967934).
2005-01-13 11:30:54 +00:00
Skip Montanaro
0af3ade6aa
Add strptime() constructor to datetime class. Thanks to Josh Spoerri for
...
the changes.
2005-01-13 04:12:31 +00:00
Andrew McNamara
7f2053eff3
Add counting of source iterator lines to the reader object - handy for
...
user error messages (otherwise difficult to do without instrumenting
the source).
2005-01-12 11:17:16 +00:00
Andrew McNamara
0f0599ddc1
When quoting=QUOTE_NONNUMERIC, the reader now casts unquoted fields
...
to floats.
2005-01-12 09:45:18 +00:00
Andrew McNamara
c89f284df8
When using QUOTE_NONNUMERIC, we now test for "numericness" with
...
PyNumber_Check, rather than trying to convert to a float. Reimplemented
writer - now raises exceptions when it sees a quotechar but neither
doublequote or escapechar are set. Doublequote results are now more
consistent (eg, single quote should generate """", rather than "",
which is ambiguous).
2005-01-12 07:44:42 +00:00
Andrew McNamara
31d8896ee2
Rename csv.set_field_limit to csv.field_size_limit (since it both sets and
...
gets).
2005-01-12 03:45:10 +00:00
Andrew McNamara
a08eecb638
Add news about csv module updates.
2005-01-12 03:25:27 +00:00
Raymond Hettinger
a422c34b70
SF 1098985: set objects cannot be marshalled
2005-01-11 03:03:27 +00:00
Brett Cannon
e6539c4401
In _DummyThread objects the lock stored in __block (allocated thanks to
...
_Thread.__init__) was never used. This is a waste since locks use OS
primitives that are in limited supply. So the lock is deleted in
_DummyThread.__init__ .
Closes bug #1089632 .
2005-01-08 02:43:53 +00:00
Raymond Hettinger
97db05de3e
SF #75103 : imghdr -- identify JPEGs in EXIF format
2005-01-07 08:15:41 +00:00
Raymond Hettinger
c34f8673a1
Teach the peephole optimizer to fold simple constant expressions.
2005-01-02 06:17:33 +00:00
Andrew M. Kuchling
3b585b30c0
[Bug #1083110 ] calling .flush() on decompress objects causes a segfault due to an uninitialized pointer: fixes the problem and adds a test case
2004-12-28 20:10:48 +00:00
Walter Dörwald
3673369951
Add NEWS entry about bug #1076985 .
2004-12-22 12:50:50 +00:00
Raymond Hettinger
6065d32325
SF bug #951915 : fix bug in StringIO.truncate - length not changed
...
(Patch by Armin Rigo.)
2004-12-20 23:51:53 +00:00
Raymond Hettinger
b0900e6a21
SF #1085304 : Make array.array pickle-able
2004-12-16 16:23:40 +00:00
Marc-André Lemburg
bb4f1bdd8b
locale.py now uses an updated locale alias table (built using
...
Tools/i18n/makelocalealias.py, a tool to parse the X11 locale
alias file); the encoding lookup was enhanced to use Python's
encoding alias table
As sige-effect, this fixes SF bug [ 1080864 ] locale.py doesn't recognize
valid locale setting.
2004-12-10 21:58:14 +00:00
Raymond Hettinger
3557f42658
Combined several entries.
2004-12-07 12:02:02 +00:00
Raymond Hettinger
a6b45cc31d
Eliminate the deprecated option to return None instead of a tuple of arguments in __reduce__().
2004-12-07 07:05:57 +00:00
Brett Cannon
84667c063a
Change code in setup.py for parsing LDFLAGS and CPPFLAGS to use optparse
...
instead of getopt. Required making use of gettext._ as optional (optparse
changed OK'ed by Greg Ward in private email).
2004-12-07 03:25:18 +00:00
Brett Cannon
516592f4ff
setup.py now uses the library directories specified in LDFLAGS (``-L``
...
directories) and the include directories specified in CPPFLAGS (``-I``
directories) for compiling the extension modules.
This has led to the core being compiled with the values in the shell's
CPPFLAGS. It has also removed the need for special casing to use Fink and
DarwinPorts under darwin since the needed directories can now be specified in
LDFLAGS and CPPFLAGS (e.g., DarwinPorts users can now do
``LDFLAGS=-L/opt/local/lib; CPPFLAGS=-I/opt/local/include; ./configure`` for
everything to work properly).
Parsing the values in the environment variables is done with getopt. While optparse
would have been a nicer solution it cannot be used because of dependency issues
at execution time; optparse uses gettext which uses struct which will not have
been compiled when the code is imported. If optparse ever makes its
importation of gettext optional by catching ImportError and setting _() to an
identity function then it can be used.
2004-12-07 00:42:59 +00:00
Raymond Hettinger
c7979f16ec
Removed deprecated tzparse module.
2004-12-05 11:38:18 +00:00