Martin v. Löwis
ab8a6bba25
Patch #912410 : Replace HTML entity references for attribute values
...
in HTMLParser.
2007-03-06 14:43:00 +00:00
Georg Brandl
ff432e6f4a
Patch #1663234 : you can now run doctest on test files and modules
...
using "python -m doctest [-v] filename ...".
2007-03-06 13:37:45 +00:00
Georg Brandl
098cd69ff9
Bug #1674503 : close the file opened by execfile() in an error condition.
2007-03-06 12:17:50 +00:00
Martin v. Löwis
3eb7648986
Patch #1121142 : Implement ZipFile.open.
2007-03-06 10:41:24 +00:00
Georg Brandl
d28b9fc686
Patch #1671450 : add a section about subclassing builtin types to the
...
"extending and embedding" tutorial.
2007-03-06 10:02:47 +00:00
Georg Brandl
0fca97a5fb
Patch #1674228 : when assigning a slice (old-style), check for the
...
sq_ass_slice instead of the sq_slice slot.
2007-03-05 22:28:08 +00:00
Neal Norwitz
391e27d146
Added Pete for 3101 too
2007-03-05 07:52:01 +00:00
Skip Montanaro
f694b1b741
note MacPorts/BerkDB change in setup.py
2007-03-04 20:54:12 +00:00
Neal Norwitz
052c371417
Add Pat and Eric for work on PEP 3101 in the sandbox
2007-03-01 07:04:41 +00:00
Raymond Hettinger
c37e5e04eb
Add collections.NamedTuple
2007-03-01 06:16:43 +00:00
Jeremy Hylton
cca75403c4
Add news about changes to metaclasses and __bases__ error checking.
2007-02-27 18:33:31 +00:00
Neal Norwitz
88516a6039
When printing an unraisable error, don't print exceptions. before the name.
...
This duplicates the behavior whening normally printing exceptions.
2007-02-26 22:41:45 +00:00
Georg Brandl
1177bc4dfd
Fix typo.
2007-02-26 17:09:03 +00:00
Neal Norwitz
41624e9894
Add Steven Bethard to help out with patches.
2007-02-26 17:01:08 +00:00
Jeremy Hylton
c5ceb251b3
Fix crash in exec when unicode filename can't be decoded.
...
I can't think of an easy way to test this behavior. It only occurs
when the file system default encoding and the interpreter default
encoding are different, such that you can open the file but not decode
its name.
2007-02-25 15:57:45 +00:00
Raymond Hettinger
d36862cf78
Add itertools.izip_longest().
2007-02-21 05:20:38 +00:00
Martin v. Löwis
382abeff0f
Patch #1490190 : posixmodule now includes os.chflags() and os.lchflags()
...
functions on platforms where the underlying system calls are available.
2007-02-19 10:55:19 +00:00
Lars Gustäbel
0713a68dc5
Moved misplaced news item.
2007-02-19 09:54:47 +00:00
Raymond Hettinger
00166c5532
Add merge() function to heapq.
2007-02-19 04:08:43 +00:00
Brett Cannon
971a012ce1
Update the encoding package's search function to use absolute imports when
...
calling __import__. This helps make the expected search locations for encoding
modules be more explicit.
One could use an explicit value for __path__ when making the call to __import__
to force the exact location searched for encodings. This would give the most
strict search path possible if one is worried about malicious code being
imported. The unfortunate side-effect of that is that if __path__ was modified
on 'encodings' on purpose in a safe way it would not be picked up in future
__import__ calls.
2007-02-15 22:54:39 +00:00
Georg Brandl
983d100202
Patch #1494140 : Add documentation for the new struct.Struct object.
2007-02-15 11:29:04 +00:00
Martin v. Löwis
45423a7571
Patch #1432399 : Add HCI sockets.
2007-02-14 10:07:37 +00:00
Lars Gustäbel
5b1a785702
Patch #1647484 : Renamed GzipFile's filename attribute to name. The
...
filename attribute is still accessible as a property that emits a
DeprecationWarning.
2007-02-13 16:09:24 +00:00
Martin v. Löwis
b1cc1d407b
Patch #1657276 : Make NETLINK_DNRTMSG conditional.
...
Will backport.
2007-02-13 12:14:19 +00:00
Martin v. Löwis
84f6de9d7e
Patch #1517891 : Make 'a' create the file if it doesn't exist.
...
Fixes #1514451 .
2007-02-13 10:10:39 +00:00
Martin v. Löwis
c6d626ed9f
Patch #698833 : Support file decryption in zipfile.
2007-02-13 09:49:38 +00:00
Martin v. Löwis
07aa3ed372
Patch #685268 : Consider a package's __path__ in imputil.
...
Will backport.
2007-02-13 08:34:45 +00:00
Martin v. Löwis
2bad58f5a4
Patch 1463026: Support default namespace in XMLGenerator.
...
Fixes #847665 . Will backport.
2007-02-12 12:21:10 +00:00
Skip Montanaro
691acf2879
fix trace.py --ignore-dir
2007-02-11 18:24:37 +00:00
Martin v. Löwis
0a2032673c
Bug #1600860 : Search for shared python library in LIBDIR, not
...
lib/python/config, on "linux" and "gnu" systems.
Will backport.
2007-02-09 12:36:48 +00:00
Martin v. Löwis
fd963265e2
Bug #1653736 : Properly discard third argument to slot_nb_inplace_power.
...
Will backport.
2007-02-09 12:19:32 +00:00
Martin v. Löwis
4c11a92625
Bug #1653736 : Complain about keyword arguments to time.isoformat.
...
Will backport to 2.5.
2007-02-08 09:13:36 +00:00
Lars Gustäbel
3f8aca1164
Patch #1652681 : create nonexistent files in append mode and
...
allow appending to empty files.
2007-02-06 18:38:13 +00:00
Peter Astrand
5f9c6ae545
Applied patch 1124861.3.patch to solve bug #1124861 : Automatically create pipes on Windows, if GetStdHandle fails. Will backport.
2007-02-06 15:37:50 +00:00
Brett Cannon
129bd52146
No more raising of string exceptions!
...
The next step of PEP 352 (for 2.6) causes raising a string exception to trigger
a TypeError. Trying to catch a string exception raises a DeprecationWarning.
References to string exceptions has been removed from the docs since they are
now just an error.
2007-01-30 21:34:36 +00:00
Brett Cannon
e05e6b0032
Add a test for slicing an exception.
2007-01-29 04:41:44 +00:00
Georg Brandl
4ba9e5bdc7
Patch #1634778 : add missing encoding aliases for iso8859_15 and
...
iso8859_16.
2007-01-27 17:59:42 +00:00
Georg Brandl
ab49684f55
Patch #1638243 : the compiler package is now able to correctly compile
...
a with statement; previously, executing code containing a with statement
compiled by the compiler package crashed the interpreter.
2007-01-27 17:43:02 +00:00
Brett Cannon
07e1db317d
Fix time.strptime's %U support. Basically rewrote the algorithm to be more
...
generic so that one only has to shift certain values based on whether the week
was specified to start on Monday or Sunday. Cut out a lot of edge case code
compared to the previous version. Also broke algorithm out into its own
function (that is private to the module).
Fixes bug #1643943 (thanks Biran Nahas for the report).
2007-01-25 20:22:02 +00:00
Thomas Heller
4378215474
Fix for #1643874 : When calling SysAllocString, create a PyCObject
...
which will eventually call SysFreeString to free the BSTR resource.
2007-01-25 18:34:14 +00:00
Brett Cannon
f5bee30e30
Fix crasher for when an object's __del__ creates a new weakref to itself.
...
Patch only fixes new-style classes; classic classes still buggy.
Closes bug #1377858 . Already backported.
2007-01-23 23:21:22 +00:00
Martin v. Löwis
6c5c502b91
Make PyTraceBack_Here use the current thread, not the
...
frame's thread state. Fixes #1579370 .
Will backport.
2007-01-23 21:11:47 +00:00
Thomas Wouters
6ed1965308
Add news entry about last checkin (oops.)
2007-01-23 13:50:49 +00:00
Lars Gustäbel
d2e22903d3
Patch #1507247 : tarfile.py: use current umask for intermediate
...
directories.
2007-01-23 11:17:33 +00:00
Georg Brandl
dd7b0525e9
Patch #1627441 : close sockets properly in urllib2.
2007-01-21 10:35:10 +00:00
Georg Brandl
b84c13792d
Bug #1486663 : don't reject keyword arguments for subclasses of builtin
...
types.
2007-01-21 10:28:43 +00:00
Martin v. Löwis
aef4c6bc00
Patch #1610575 : Add support for _Bool to struct.
2007-01-21 09:33:07 +00:00
Martin v. Löwis
4885e7d098
Prefix AST symbols with _Py_. Fixes #1637022 .
...
Will backport.
2007-01-19 06:42:22 +00:00
Georg Brandl
b26b1c6d6b
Bug #1629125 : fix wrong data type (int -> Py_ssize_t) in PyDict_Next docs.
2007-01-17 21:19:58 +00:00
Neal Norwitz
7d106efee3
Remove Calvin since he only has access to the website currently.
2007-01-17 08:37:26 +00:00
Neal Norwitz
1e52d6b4c4
Give Calvin Spealman access for python-dev summaries.
2007-01-17 06:23:51 +00:00
Sjoerd Mullender
33a0a06d31
Fixed ntpath.expandvars to not replace references to non-existing
...
variables with nothing. Also added tests.
This fixes bug #494589 .
2007-01-16 16:42:38 +00:00
Marc-André Lemburg
fa3d08b4a9
Add news items for the recent pybench and platform changes.
2007-01-16 13:03:06 +00:00
Guido van Rossum
bb2cc698c1
Patch #1635058 by Mark Roberts: ensure that htonl and friends never accept or
...
return negative numbers, per the underlying C implementation.
2007-01-14 17:03:32 +00:00
Brett Cannon
093b67061a
Deprecate the sets module.
2007-01-13 00:29:49 +00:00
Thomas Heller
6fd4549bc6
patch #1610795 : BSD version of ctypes.util.find_library, by Martin
...
Kammerhofer.
2007-01-12 20:21:53 +00:00
Thomas Heller
8138c26a83
Fixes for 64-bit Windows: In ctypes.wintypes, correct the definitions
...
of HANDLE, WPARAM, LPARAM data types. Make parameterless foreign
function calls work.
2007-01-11 21:18:56 +00:00
Matthias Klose
a398e2d059
- idle: Honor the "Cancel" action in the save dialog (Debian bug #299092 ).
2007-01-11 11:44:04 +00:00
Thomas Heller
fb9d78733e
Change the ctypes version number to "1.1.0".
2007-01-10 20:12:13 +00:00
Vinay Sajip
ab41c109fa
Added entry about addition of _open() method to logging.FileHandler.
2007-01-09 14:51:36 +00:00
Vinay Sajip
c9137263d5
Added entries about removal of some bare except clauses from logging.
2007-01-08 18:52:36 +00:00
Neal Norwitz
e8330fa2aa
Add Josiah to SF for maintaining asyncore/asynchat
2007-01-06 21:24:35 +00:00
Neal Norwitz
1f8c634a53
Add Collin Winter for access to update PEP 3107
2007-01-05 08:06:43 +00:00
Neal Norwitz
72cd02c041
Prevent crash on shutdown which can occur if we are finalizing
...
and the module dict has been cleared already and some object
raises a warning (like in a __del__).
Will backport.
2007-01-05 05:25:22 +00:00
Gregory P. Smith
8b96a35d14
Support linking of the bsddb module against BerkeleyDB 4.5.x
...
(will backport to 2.5)
2007-01-05 01:59:42 +00:00
Martin v. Löwis
7b7c9d4208
Bug #1566280 : Explicitly invoke threading._shutdown from Py_Main,
...
to avoid relying on atexit.
Will backport to 2.5.
2007-01-04 21:06:12 +00:00
Brett Cannon
92d54d5e9c
Add EnvironmentVarGuard to test.test_support. Provides a context manager to
...
temporarily set or unset environment variables.
2007-01-04 00:23:49 +00:00
Lars Gustäbel
a7ba6fc548
Patch #1504073 : Fix tarfile.open() for mode "r" with a fileobj argument.
...
Will backport to 2.5.
2006-12-27 10:30:46 +00:00
Andrew M. Kuchling
7166232399
[Rest of patch #1182394 ] Add ._current() method so that we can use the written-in-C .hexdigest() method
2006-12-27 03:31:24 +00:00
Lars Gustäbel
a4b2381b20
Patch #1262036 : Prevent TarFiles from being added to themselves under
...
certain conditions.
Will backport to 2.5.
2006-12-23 17:57:23 +00:00
Lars Gustäbel
6baa502769
Patch #1230446 : tarfile.py: fix ExFileObject so that read() and tell()
...
work correctly together with readline().
Will backport to 2.5.
2006-12-23 16:40:13 +00:00
Neal Norwitz
b6060dbed1
Lars asked for permission on on python-dev for work on tarfile.py
2006-12-21 04:38:00 +00:00
Raymond Hettinger
94547f7646
Bug #1590891 : random.randrange don't return correct value for big number
...
Needs to be backported.
2006-12-20 06:42:06 +00:00
Georg Brandl
ebbeed781d
Patch #1484695 : The tarfile module now raises a HeaderError exception
...
if a buffer given to frombuf() is invalid.
2006-12-19 22:06:46 +00:00
Vinay Sajip
76fdb8c050
Added news on recent changes to logging
2006-12-14 08:53:55 +00:00
Brett Cannon
6d9520c4f0
Add test.test_support.guard_warnings_filter . This function returns a context
...
manager that protects warnings.filter from being modified once the context is
exited.
2006-12-13 23:09:53 +00:00
Matthias Klose
ebde1498e7
- Fix the build of the library reference in info format.
2006-12-09 12:15:27 +00:00
Georg Brandl
b130743e97
Patch #1608267 : fix a race condition in os.makedirs() is the directory
...
to be created is already there.
2006-12-09 09:08:29 +00:00
Georg Brandl
87fa559479
Patch #1610437 : fix a tarfile bug with long filename headers.
2006-12-06 22:21:18 +00:00
Matthias Klose
d149d0c76a
- Fix build failure on kfreebsd and on the hurd.
2006-12-03 17:16:41 +00:00
Martin v. Löwis
a00bcac003
Patch #1371075 : Make ConfigParser accept optional dict type
...
for ordering, sorting, etc.
2006-12-03 12:01:53 +00:00
Martin v. Löwis
046c4d13be
Patch #1544279 : Improve thread-safety of the socket module by moving
...
the sock_addr_t storage out of the socket object.
Will backport to 2.5.
2006-12-03 11:23:45 +00:00
Martin v. Löwis
8609da9b17
Move IDLE news into NEWS.txt.
2006-12-03 09:54:46 +00:00
Thomas Heller
ef583a4992
Fix #1563807 : _ctypes built on AIX fails with ld ffi error.
...
The contents of ffi_darwin.c must be compiled unless __APPLE__ is
defined and __ppc__ is not.
Will backport.
2006-11-28 20:21:54 +00:00
Martin v. Löwis
4d542ec13c
Disable _XOPEN_SOURCE on NetBSD 1.x.
...
Will backport to 2.5
2006-11-25 15:39:19 +00:00
Thomas Heller
25d208bd46
Fix bug #1598620 : A ctypes structure cannot contain itself.
2006-11-24 18:45:39 +00:00
Martin v. Löwis
4ebbefe677
Patch #1362975 : Rework CodeContext indentation algorithm to
...
avoid hard-coding pixel widths. Also make the text's scrollbar
a child of the text frame, not the top widget.
2006-11-22 08:50:02 +00:00
Martin v. Löwis
2607e6c021
Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
...
and _CRT_NONSTDC_NO_DEPRECATE.
Will backport.
2006-11-21 18:20:25 +00:00
Neal Norwitz
4fe442383d
Bug #1599782 : Fix segfault on bsddb.db.DB().type().
...
The problem is that _DB_get_type() can't be called without the GIL
because it calls a bunch of PyErr_* APIs when an error occurs.
There were no other cases in this file that it was called without the GIL.
Removing the BEGIN/END THREAD around _DB_get_type() made everything work.
Will backport.
2006-11-21 05:26:22 +00:00
Neal Norwitz
45e230a8e1
Speed up function calls into the math module by using METH_O.
...
There should be no functional changes. However, the error msgs are
slightly different. Also verified that the module dict is not NULL on init.
2006-11-19 21:26:53 +00:00
Martin v. Löwis
07529354db
Patch #1070046 : Marshal new-style objects like InstanceType
...
in xmlrpclib.
2006-11-19 18:51:54 +00:00
Martin v. Löwis
cffcc8b195
Make cStringIO.truncate raise IOError for negative
...
arguments (even for -1). Fixes the last bit of
#1359365 .
2006-11-19 10:41:41 +00:00
Georg Brandl
283a1353a0
Patch [ 1586791 ] better error msgs for some TypeErrors
2006-11-19 08:48:30 +00:00
Martin v. Löwis
bba003ef24
Patch #1472877 : Fix Tix subwidget name resolution.
...
Will backport to 2.5.
2006-11-18 18:42:11 +00:00
Martin v. Löwis
ef5fd3e7c9
Patch #1594554 : Always close a tkSimpleDialog on ok(), even
...
if an exception occurs.
Will backport to 2.5.
2006-11-18 18:05:35 +00:00
Martin v. Löwis
c73a4a4f51
Patch #1538878 : Don't make tkSimpleDialog dialogs transient if
...
the parent window is withdrawn. This mirrors what dialog.tcl
does.
Will backport to 2.5.
2006-11-18 18:00:23 +00:00
Georg Brandl
25aabf4cbb
Bug #1588217 : don't parse "= " as a soft line break in binascii's
...
a2b_qp() function, instead leave it in the string as quopri.decode()
does.
2006-11-16 17:08:45 +00:00
Georg Brandl
540821183b
Bug #1597824 : return the registered function from atexit.register()
...
to facilitate usage as a decorator.
2006-11-16 16:50:59 +00:00
Walter Dörwald
2e4fd3765f
Fix typo.
2006-11-15 16:23:46 +00:00
Martin v. Löwis
45cd4ff95d
Patch #1360200 : Use unmangled_version RPM spec field to deal with
...
file name mangling.
Will backport to 2.5.
2006-11-12 18:56:03 +00:00