]> granicus.if.org Git - python/log
python
20 years agoAdd duck-typing to the glossary.
Raymond Hettinger [Tue, 11 Jan 2005 16:11:13 +0000 (16:11 +0000)]
Add duck-typing to the glossary.

20 years agoSF bug #1099516: tempfile files not types.FileType
Raymond Hettinger [Tue, 11 Jan 2005 15:33:03 +0000 (15:33 +0000)]
SF bug #1099516:  tempfile files not types.FileType

Clarified that the returned object is file-like rather than an actual file.

20 years agoSet an upper limit on the size of the field buffer, raise an exception
Andrew McNamara [Tue, 11 Jan 2005 07:32:02 +0000 (07:32 +0000)]
Set an upper limit on the size of the field buffer, raise an exception
when this limit is reached. Limit defaults to 128k, and is changed
by module set_field_limit() method. Previously, an unmatched quote
character could result in the entire file being read into the field
buffer, potentially exhausting virtual memory.

20 years agoNow that internal dialect type is immutable, and the dialect registry
Andrew McNamara [Tue, 11 Jan 2005 04:49:53 +0000 (04:49 +0000)]
Now that internal dialect type is immutable, and the dialect registry
only contains instances of the dialect type, we can refer directly to the
dialect instances rather than creating new ones. In other words, if the
dialect comes from the registry, and we apply no further modifications,
the reader/writer can use the dialect object directly.

20 years agoSF 1098985: set objects cannot be marshalled
Raymond Hettinger [Tue, 11 Jan 2005 03:03:27 +0000 (03:03 +0000)]
SF 1098985:  set objects cannot be marshalled

20 years agoReplace python-coded validation of csv dialect with a call to the C
Andrew McNamara [Tue, 11 Jan 2005 02:22:47 +0000 (02:22 +0000)]
Replace python-coded validation of csv dialect with a call to the C
dialect type (which has a better idea of what is and isn't valid).

20 years agoNo longer attempt to instantiate python classes describing dialects. This
Andrew McNamara [Tue, 11 Jan 2005 02:18:36 +0000 (02:18 +0000)]
No longer attempt to instantiate python classes describing dialects. This
was done because we were previously performing validation of the dialect
from python, but this is now down within the C module. Also, the method
we were using to detect classes did not work with new-style classes.

20 years agoAllow dialect-describing keywords to be supplied to register_dialect,
Andrew McNamara [Tue, 11 Jan 2005 01:28:33 +0000 (01:28 +0000)]
Allow dialect-describing keywords to be supplied to register_dialect,
record objects of internal dialect type, rather than instances of
python objects.

20 years agoFactor out the code for making a dialect instance.
Andrew McNamara [Tue, 11 Jan 2005 01:07:23 +0000 (01:07 +0000)]
Factor out the code for making a dialect instance.

20 years agoOnly set error string when dict lookup found no matching key (was setting
Andrew McNamara [Mon, 10 Jan 2005 23:17:35 +0000 (23:17 +0000)]
Only set error string when dict lookup found no matching key (was setting
it for all failures, potentially masking other exceptions).

20 years agoWhitespace normalization.
Tim Peters [Mon, 10 Jan 2005 16:48:37 +0000 (16:48 +0000)]
Whitespace normalization.

20 years agoWhen parsing args that return a single character, treat null string the
Andrew McNamara [Mon, 10 Jan 2005 12:25:11 +0000 (12:25 +0000)]
When parsing args that return a single character, treat null string the
same as None.

20 years agoWhere a string is desired, test for PyBaseString_Type derived type,
Andrew McNamara [Mon, 10 Jan 2005 12:22:48 +0000 (12:22 +0000)]
Where a string is desired, test for PyBaseString_Type derived type,
rather than using PyString_Check/PyUnicode_Check.

20 years agoFix and test for SF bug #1098990: codec readline() splits lines apart.
Walter Dörwald [Mon, 10 Jan 2005 12:01:39 +0000 (12:01 +0000)]
Fix and test for SF bug #1098990: codec readline() splits lines apart.

20 years agoBug #489256: remove out of date and out of place profile.doc, and let
Johannes Gijsbers [Mon, 10 Jan 2005 09:07:22 +0000 (09:07 +0000)]
Bug #489256: remove out of date and out of place profile.doc, and let
profile.help() point at the library reference instead of profile.doc.

20 years agoAdd missing PyObject_GC_Track and PyObject_GC_UnTrack calls to csv reader and
Andrew McNamara [Mon, 10 Jan 2005 02:09:41 +0000 (02:09 +0000)]
Add missing PyObject_GC_Track and PyObject_GC_UnTrack calls to csv reader and
writer objects (other GC infrastructure already in place).

20 years agoFix parsing of csv files with escapes (escape character previously would be
Andrew McNamara [Mon, 10 Jan 2005 01:04:40 +0000 (01:04 +0000)]
Fix parsing of csv files with escapes (escape character previously would be
left in stream).

20 years agoPatch #712317: In URLs such as http://www.example.com?query=spam, treat '?' as
Johannes Gijsbers [Sun, 9 Jan 2005 15:29:10 +0000 (15:29 +0000)]
Patch #712317: In URLs such as http://www.example.com?query=spam, treat '?' as
a delimiter. Previously, the 'network location' (<authority> in RFC 2396) would
become 'www.example.com?query=spam', while RFC 2396 does not allow a '?' in
<authority>. See bug #548176 for further discussion.

20 years agoPatch #1095362: replace hardcoded test for POST/GET with call to get_method,
Johannes Gijsbers [Sun, 9 Jan 2005 05:51:49 +0000 (05:51 +0000)]
Patch #1095362: replace hardcoded test for POST/GET with call to get_method,
removing some duplication and gaining some flexibility in the process.

20 years agoMove code in __name__ == '__main__' block into main() function, rewrite code so
Johannes Gijsbers [Sun, 9 Jan 2005 01:58:02 +0000 (01:58 +0000)]
Move code in __name__ == '__main__' block into main() function, rewrite code so
there's no need to subclass OptionParser.

20 years agoPatch #1051321 (fixes bugs 1010196, 1013525), by Mike Brown:
Johannes Gijsbers [Sun, 9 Jan 2005 00:36:53 +0000 (00:36 +0000)]
Patch #1051321 (fixes bugs 10101961013525), by Mike Brown:

* Document hasFeature(), createDocument(), CreateDocumentType(),
  hasAttribute(), hasAttributeNS().

* In the documentation for createDocument(), it is now stated that the Python
  DOM API allows implementations to forego creation of the document element
  child node, if no namespace and local name arguments are given. (This
  possibility is left open and unaddressed in the W3C spec).

* Addition by me: use 'name' rather than 'attname', for consistency with the
  DOM specification and the Python DOM API implementation.

20 years agoBug #1098497: various small typo's, grammar and markup nits.
Johannes Gijsbers [Sun, 9 Jan 2005 00:12:48 +0000 (00:12 +0000)]
Bug #1098497: various small typo's, grammar and markup nits.

20 years agocomment tweak
Skip Montanaro [Sat, 8 Jan 2005 21:58:58 +0000 (21:58 +0000)]
comment tweak

20 years agoAdd definitions for "up" and "down" commands that print/display the current
Skip Montanaro [Sat, 8 Jan 2005 21:56:43 +0000 (21:56 +0000)]
Add definitions for "up" and "down" commands that print/display the current
Python file/line when the current C execution frame is inside
PyEval_EvalFrame.  These are commented out by default because GDB sometimes
crashes as a result (seems like a GDB bug).

Add a pyframe command that displays the current Python stack frame.  If the
marked lines are uncommented, it will also cause Emacs/XEmacs to display the
current file/line.

20 years agoPatch #936774: unify the display of data descriptors, including slots,
Johannes Gijsbers [Sat, 8 Jan 2005 20:16:43 +0000 (20:16 +0000)]
Patch #936774: unify the display of data descriptors, including slots,
properties, and custom descriptors.

* removed special handling of properties

* added special handling of data descriptors - All data descriptors are grouped
  together in a section. For each item, the attribute name and doc string, if
  present, is displayed.

* disabled display of __slots__ attribute - since slots are descriptors, they
  are listed in the section described above

Thanks to John Belmonte for the patch!

20 years agoReplace rfc822.parseaddr with email.Utils.parseaddr. The implementation is
Johannes Gijsbers [Sat, 8 Jan 2005 14:12:27 +0000 (14:12 +0000)]
Replace rfc822.parseaddr with email.Utils.parseaddr. The implementation is
still the same, so there should be no backwards-compatibility problems.

20 years agoPatch #1079734: remove dependencies on (deprecated) rfc822 and mimetools
Johannes Gijsbers [Sat, 8 Jan 2005 13:56:36 +0000 (13:56 +0000)]
Patch #1079734: remove dependencies on (deprecated) rfc822 and mimetools
modules, replacing with email. Thanks to Josh Hoyt for the patch!

20 years agoClean up tests by reusing functions from other modules:
Johannes Gijsbers [Sat, 8 Jan 2005 13:28:54 +0000 (13:28 +0000)]
Clean up tests by reusing functions from other modules:

* replace deltree with shutil.rmtree()
* replace mkdirs with os.makedirs()
* fold touchfile into GlobTests.mktemp()

20 years agoPatch #943206:
Johannes Gijsbers [Sat, 8 Jan 2005 13:13:19 +0000 (13:13 +0000)]
Patch #943206:

`glob.glob()` currently calls itself recursively to build a list of matches of
the dirname part of the pattern and then filters by the basename part. This is
effectively BFS. ``glob.glob('*/*/*/*/*/foo')`` will build a huge list of all
directories 5 levels deep even if only a handful of them contain a ``foo``
entry. A generator-based recusion would never have to store these list at once
by implementing DFS. This patch converts the `glob` function to an `iglob`
recursive generator . `glob()` now just returns ``list(iglob(pattern))``.

I also cleaned up the code a bit (reduced duplicate `has_magic()` checks and
created a second `glob0` helper func so that the main loop need not be
duplicated).

Thanks to Cherniavsky Beni for the patch!

20 years agoPatch #1094015:
Johannes Gijsbers [Sat, 8 Jan 2005 12:31:29 +0000 (12:31 +0000)]
Patch #1094015:

* Use os.makedirs() instead os.mkdir(). (bug #975763)
* Use copystat() to copy directory bits (bug #1048878)

20 years agothreading._DummyThread.__init__(): document obscure new code.
Tim Peters [Sat, 8 Jan 2005 07:30:42 +0000 (07:30 +0000)]
threading._DummyThread.__init__():  document obscure new code.

test_threading.test_foreign_thread():  new test does a basic check that
"foreign" threads can using the threading module, and that they create
a _DummyThread instance in at least one use case.  This isn't a very
good test, since a thread created by thread.start_new_thread() isn't
particularly "foreign".

20 years agoConverted to a unittest. Added checks that the bounded semaphore actually
Tim Peters [Sat, 8 Jan 2005 06:03:17 +0000 (06:03 +0000)]
Converted to a unittest.  Added checks that the bounded semaphore actually
does what it's supposed to do.

20 years agoIn _DummyThread objects the lock stored in __block (allocated thanks to
Brett Cannon [Sat, 8 Jan 2005 02:43:53 +0000 (02:43 +0000)]
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.

20 years agoRemove test for BINARY_DIVIDE.
Raymond Hettinger [Fri, 7 Jan 2005 18:34:56 +0000 (18:34 +0000)]
Remove test for BINARY_DIVIDE.

20 years agoRe-running python with/without the -Qnew flag uses incorrectly optimized
Armin Rigo [Fri, 7 Jan 2005 18:10:51 +0000 (18:10 +0000)]
Re-running python with/without the -Qnew flag uses incorrectly optimized
bytecodes from the previously saved .pyc files.  Fixed by disabling the static
optimization of BINARY_DIVIDE between two constants.

20 years agoWhitespace normalization.
Tim Peters [Fri, 7 Jan 2005 16:01:32 +0000 (16:01 +0000)]
Whitespace normalization.

20 years ago[Bug 1083177] Describe signal() change; add a link
Andrew M. Kuchling [Fri, 7 Jan 2005 14:34:41 +0000 (14:34 +0000)]
[Bug 1083177] Describe signal() change; add a link

20 years agoAllow relative URLs for included databases and packages.
Jack Jansen [Fri, 7 Jan 2005 13:43:31 +0000 (13:43 +0000)]
Allow relative URLs for included databases and packages.

20 years agoPatch #1097739 by Bob Ippolito:
Jack Jansen [Fri, 7 Jan 2005 13:08:22 +0000 (13:08 +0000)]
Patch #1097739 by Bob Ippolito:
MacOSX: if we cannot use -undefined dynamic_lookup (such as on 10.2 or earlier)
we link extension directly against the dynamic library in the framework in
stead of against the framework. This will fix building extensions for 2.3
after 2.4 has been installed too.

20 years agoOops, there was a tab in there.
Jack Jansen [Fri, 7 Jan 2005 12:56:21 +0000 (12:56 +0000)]
Oops, there was a tab in there.

20 years agoWorkaround for the fact that urllib2 doesn't default to "file:" urls.
Jack Jansen [Fri, 7 Jan 2005 12:50:12 +0000 (12:50 +0000)]
Workaround for the fact that urllib2 doesn't default to "file:" urls.

20 years agoAlways set CONFIGURE_MACOSX_DEPLOYMENT_TARGET otherwise it may be set
Jack Jansen [Fri, 7 Jan 2005 10:49:32 +0000 (10:49 +0000)]
Always set CONFIGURE_MACOSX_DEPLOYMENT_TARGET otherwise it may be set
to an empty value and distutils will get confused lateron.

20 years agoSF #75103: imghdr -- identify JPEGs in EXIF format
Raymond Hettinger [Fri, 7 Jan 2005 08:15:41 +0000 (08:15 +0000)]
SF #75103:  imghdr -- identify JPEGs in EXIF format

20 years agoFix to use PEP7 brace style.
Andrew McNamara [Fri, 7 Jan 2005 06:46:50 +0000 (06:46 +0000)]
Fix to use PEP7 brace style.

20 years agoImproved the implementation of the internal "dialect" type. The new
Andrew McNamara [Fri, 7 Jan 2005 04:42:45 +0000 (04:42 +0000)]
Improved the implementation of the internal "dialect" type. The new
implementation features better error reporting, and better compliance
with the PEP.

20 years agoSF patch 1094011: Docs for file() vs open().
Raymond Hettinger [Fri, 7 Jan 2005 04:33:44 +0000 (04:33 +0000)]
SF patch 1094011:  Docs for file() vs open().

20 years agoAdded example to os.stat()
Facundo Batista [Fri, 7 Jan 2005 02:50:22 +0000 (02:50 +0000)]
Added example to os.stat()

20 years agoSF bug #1091740: garbage collector still documented as optional
Raymond Hettinger [Fri, 7 Jan 2005 00:49:17 +0000 (00:49 +0000)]
SF bug #1091740: garbage collector still documented as optional

20 years agoDelete Reader_getiter and replace with PyObject_SelfIter.
Andrew McNamara [Thu, 6 Jan 2005 02:25:41 +0000 (02:25 +0000)]
Delete Reader_getiter and replace with PyObject_SelfIter.

20 years agoadd two missing items
Skip Montanaro [Wed, 5 Jan 2005 07:19:11 +0000 (07:19 +0000)]
add two missing items

20 years agoadd descriptions of exported data attributes
Skip Montanaro [Wed, 5 Jan 2005 07:13:32 +0000 (07:13 +0000)]
add descriptions of exported data attributes

20 years agodescribe reset()
Skip Montanaro [Wed, 5 Jan 2005 07:03:53 +0000 (07:03 +0000)]
describe reset()

20 years agoadd a couple missing items
Skip Montanaro [Wed, 5 Jan 2005 06:58:15 +0000 (06:58 +0000)]
add a couple missing items

20 years agoadd a couple missing docstrings
Skip Montanaro [Wed, 5 Jan 2005 06:54:58 +0000 (06:54 +0000)]
add a couple missing docstrings

20 years agoClarify that DictMixin is still useful. Only the UserDict class was supplanted.
Raymond Hettinger [Tue, 4 Jan 2005 21:25:00 +0000 (21:25 +0000)]
Clarify that DictMixin is still useful.  Only the UserDict class was supplanted.

20 years agoFix typo.
Martin v. Löwis [Mon, 3 Jan 2005 23:42:01 +0000 (23:42 +0000)]
Fix typo.

20 years ago- Added an "installer" flavor, which uses the "open" command to install
Jack Jansen [Mon, 3 Jan 2005 15:44:18 +0000 (15:44 +0000)]
- Added an "installer" flavor, which uses the "open" command to install
  something (overridable through Install-command entry)
- Hidden status is now determined by flavor == hidden, not by
  missing Download-URL. Hidden packages behave like installer packages.
- Made some error messages a bit more understandable.

Because there's new functionality the version has been upped to 0.5.

20 years agoRemoved unused line.
Raymond Hettinger [Mon, 3 Jan 2005 07:33:16 +0000 (07:33 +0000)]
Removed unused line.

20 years agoRemoved unused line.
Raymond Hettinger [Mon, 3 Jan 2005 07:14:12 +0000 (07:14 +0000)]
Removed unused line.

20 years agoSince it is a possibility that LDFLAGS or CPPFLAGS were set with options that
Brett Cannon [Sun, 2 Jan 2005 21:54:07 +0000 (21:54 +0000)]
Since it is a possibility that LDFLAGS or CPPFLAGS were set with options that
in no way affect library or include directories the code must take that into
account and not assume some options were found.

20 years agoTeach the peephole optimizer to fold simple constant expressions.
Raymond Hettinger [Sun, 2 Jan 2005 06:17:33 +0000 (06:17 +0000)]
Teach the peephole optimizer to fold simple constant expressions.

20 years agoCreate the wrapper scripts for gcc/g++ too.
Jack Jansen [Sat, 1 Jan 2005 22:33:36 +0000 (22:33 +0000)]
Create the wrapper scripts for gcc/g++ too.

20 years agoOn UNIX, when the execution of the child fails, we must waitpid() to
Peter Astrand [Sat, 1 Jan 2005 09:38:57 +0000 (09:38 +0000)]
On UNIX, when the execution of the child fails, we must waitpid() to
prevent leaving zombies.

20 years agoNew subprocess utility function: check_call. Closes #1071764.
Peter Astrand [Sat, 1 Jan 2005 09:36:35 +0000 (09:36 +0000)]
New subprocess utility function: check_call. Closes #1071764.

20 years agoSF patch #1094007: Remove witty comment in pydoc.py
Raymond Hettinger [Sat, 1 Jan 2005 07:51:01 +0000 (07:51 +0000)]
SF patch #1094007:  Remove witty comment in pydoc.py
(Removed at Ping's request.)

20 years agoSF patch #1051395: locale.getdefaultlocale does not return tuple in some OS
Raymond Hettinger [Sat, 1 Jan 2005 06:10:26 +0000 (06:10 +0000)]
SF patch #1051395:  locale.getdefaultlocale does not return tuple in some OS
(Contributed by Jiwon Seo.)

20 years agoSF Patch #1093896: miscellaneous doc typos
Raymond Hettinger [Sat, 1 Jan 2005 00:28:46 +0000 (00:28 +0000)]
SF Patch #1093896:  miscellaneous doc typos

20 years agoRemove some lambdas.
Raymond Hettinger [Fri, 31 Dec 2004 21:59:02 +0000 (21:59 +0000)]
Remove some lambdas.

20 years agoUse cStringIO where available.
Raymond Hettinger [Fri, 31 Dec 2004 19:15:26 +0000 (19:15 +0000)]
Use cStringIO where available.

20 years agocvsignore files generated by make_versioninfo.
Thomas Heller [Fri, 31 Dec 2004 16:37:32 +0000 (16:37 +0000)]
cvsignore files generated by make_versioninfo.

20 years agoStrip out double dashes and dashes for options not used during parsing of
Brett Cannon [Fri, 31 Dec 2004 08:11:21 +0000 (08:11 +0000)]
Strip out double dashes and dashes for options not used during parsing of
LDFLAGS and CPPFLAGS for library and include directories, respectively.  Solves
issue of either env var containing other options that do not pertain to the
directories being searched for.

20 years agoSF bug #1090139: presentation typo in lib: 6.21.4.2 How callbacks are called
Raymond Hettinger [Fri, 31 Dec 2004 01:07:27 +0000 (01:07 +0000)]
SF bug #1090139:  presentation typo in lib: 6.21.4.2 How callbacks are called

20 years agoAdd more test directories to testsuite. Will backport to 2.4.
Martin v. Löwis [Thu, 30 Dec 2004 14:08:18 +0000 (14:08 +0000)]
Add more test directories to testsuite. Will backport to 2.4.

20 years agoUpdate to VC 7.1. Will backport to 2.4.
Martin v. Löwis [Thu, 30 Dec 2004 10:44:32 +0000 (10:44 +0000)]
Update to VC 7.1. Will backport to 2.4.

20 years agoAdd a test that checks the basic functionality of every encoding.
Walter Dörwald [Wed, 29 Dec 2004 16:04:38 +0000 (16:04 +0000)]
Add a test that checks the basic functionality of every encoding.

20 years agoFix wrong variable name.
Walter Dörwald [Wed, 29 Dec 2004 15:28:09 +0000 (15:28 +0000)]
Fix wrong variable name.

20 years agoUpdate example to VC 7.1. Will backport to 2.4.
Martin v. Löwis [Wed, 29 Dec 2004 14:15:58 +0000 (14:15 +0000)]
Update example to VC 7.1. Will backport to 2.4.

20 years agoFix wrong variable name.
Walter Dörwald [Wed, 29 Dec 2004 13:11:10 +0000 (13:11 +0000)]
Fix wrong variable name.

20 years agoTypo fix
Andrew M. Kuchling [Wed, 29 Dec 2004 12:34:21 +0000 (12:34 +0000)]
Typo fix

20 years ago- getDefaultDatabase wasn't listed in __all__.
Jack Jansen [Tue, 28 Dec 2004 21:33:27 +0000 (21:33 +0000)]
- getDefaultDatabase wasn't listed in __all__.
- using a different database for non-final releases should only be done
  for X.Y.0. Non-final micro releases can use the default database just fine,
  as they are required to be backward compatible.

20 years agoJust passing -undefined dynamic_lookup isn't enough: we also need to set
Jack Jansen [Tue, 28 Dec 2004 21:30:35 +0000 (21:30 +0000)]
Just passing -undefined dynamic_lookup isn't enough: we also need to set
the MACOSX_DEPLOYMENT_TARGET environment variable to 10.3 when calling the
loader. And we do this with "env" because distutils apparently doesn't
understand environment variable assignments before command names.

20 years ago[Bug #1083110] calling .flush() on decompress objects causes a segfault due to an...
Andrew M. Kuchling [Tue, 28 Dec 2004 20:10:48 +0000 (20:10 +0000)]
[Bug #1083110] calling .flush() on decompress objects causes a segfault due to an uninitialized pointer: fixes the problem and adds a test case

20 years agoAdded quotes around the destroot arguments, so empty destroot works.
Jack Jansen [Mon, 27 Dec 2004 16:13:39 +0000 (16:13 +0000)]
Added quotes around the destroot arguments, so empty destroot works.

20 years agoUpdated version numbers.
Jack Jansen [Mon, 27 Dec 2004 15:53:20 +0000 (15:53 +0000)]
Updated version numbers.

20 years agoFix for #1091468: DESTROOTed frameworkinstalls fail. Added a --destroot
Jack Jansen [Mon, 27 Dec 2004 15:51:03 +0000 (15:51 +0000)]
Fix for #1091468: DESTROOTed frameworkinstalls fail. Added a --destroot
option to various tools, and do the right thing when we're doing a destroot
install.

Will backport to 2.4 and 2.3.

20 years agoAfter discussion on the PythonMac-SIG it was decided that it is better
Jack Jansen [Sun, 26 Dec 2004 23:07:48 +0000 (23:07 +0000)]
After discussion on the PythonMac-SIG it was decided that it is better
to make using "-undefined dynamic_lookup" for linking extensions more
automatic on 10.3 and later. So if we're on that platform and
MACOSX_DEPLOYMENT_TARGET is not set we now set it to the current OSX
version during configure. Additionally, distutils will pick up the
configure-time value by default.

Will backport.

20 years agoA script to fix Apple-installed Python 2.3 (and a test whether the user
Jack Jansen [Sun, 26 Dec 2004 23:02:05 +0000 (23:02 +0000)]
A script to fix Apple-installed Python 2.3 (and a test whether the user
needs to run it in the Makefile).

After installing a newer framework Python the apple-installed Python can
no longer build extension modules, because they will inadvertantly be linked
against the newer framework. This script modifies lib/config/Makefile so
it will link extensions with "-undefined dynamic_lookup", which forestalls
this problem.

Will backport to 2.4 and 2.3.

20 years agocorrect decorator example, tweak description slightly
Skip Montanaro [Sun, 26 Dec 2004 15:29:28 +0000 (15:29 +0000)]
correct decorator example, tweak description slightly

20 years agoUpdate VC references. Backported to 2.4.
Martin v. Löwis [Fri, 24 Dec 2004 08:28:28 +0000 (08:28 +0000)]
Update VC references. Backported to 2.4.

20 years agoUse = instead of == as operator to test
Matthias Klose [Fri, 24 Dec 2004 08:22:17 +0000 (08:22 +0000)]
Use = instead of == as operator to test

20 years agoFix sentence stating TextEdit only saves in RTF; can save in plaintext as well.
Brett Cannon [Fri, 24 Dec 2004 02:40:59 +0000 (02:40 +0000)]
Fix sentence stating TextEdit only saves in RTF; can save in plaintext as well.

Closes bug #1085300.  Thanks unclewalrus.

20 years agoDima Dorfman's patch for coercion/comparison of C types (patch #995939), with
Armin Rigo [Thu, 23 Dec 2004 22:13:13 +0000 (22:13 +0000)]
Dima Dorfman's patch for coercion/comparison of C types (patch #995939), with
a minor change after the coercion, to accept two objects not necessarily of
the same type but with the same tp_compare.

20 years agodiscuss how the __builtin__ module is normally used, and try to clarify the
Fred Drake [Thu, 23 Dec 2004 16:50:36 +0000 (16:50 +0000)]
discuss how the __builtin__ module is normally used, and try to clarify the
difference between __builtins__ and __builtin__ (based on an email comment)

20 years agofix weird capitalization of "built-in"
Fred Drake [Thu, 23 Dec 2004 16:22:45 +0000 (16:22 +0000)]
fix weird capitalization of "built-in"

20 years agoImprove error message if rpc'l localcall() fails with unexpected
Kurt B. Kaiser [Thu, 23 Dec 2004 04:39:55 +0000 (04:39 +0000)]
Improve error message if rpc'l localcall() fails with unexpected
exception.

20 years agoThe GUI was hanging if the shell window was closed while a raw_input()
Kurt B. Kaiser [Thu, 23 Dec 2004 04:20:59 +0000 (04:20 +0000)]
The GUI was hanging if the shell window was closed while a raw_input()
was pending.  Restored the quit() of the readline() mainloop().
http://mail.python.org/pipermail/idle-dev/2004-December/002307.html

M NEWS.txt
M PyShell.py

20 years agoRecompiled after source changes.
Thomas Heller [Wed, 22 Dec 2004 17:24:36 +0000 (17:24 +0000)]
Recompiled after source changes.

20 years agoClose stdout and stderr, which are redirected into a temp file, before
Thomas Heller [Wed, 22 Dec 2004 17:24:14 +0000 (17:24 +0000)]
Close stdout and stderr, which are redirected into a temp file, before
trying to remove this file - the file was never removed before.

Fixes [ 1067732 ] wininst --install-script leaves residual files

Already backported.

20 years agoTwo small changes, SF bug #974757 and SF patch #1037974.
Jeremy Hylton [Wed, 22 Dec 2004 14:27:19 +0000 (14:27 +0000)]
Two small changes, SF bug #974757 and SF patch #1037974.

Pass the full URL to find_user_password(), in particular so that hosts
with port numbers can be looked up.

Also specify the digest algorithm, even if it's MD5.  Titus Brown
verified that this fixes a problem with LiveJournal.

20 years agoSF patch #1055159 via Titus Brown: Document redirect limitation.
Jeremy Hylton [Wed, 22 Dec 2004 14:19:09 +0000 (14:19 +0000)]
SF patch #1055159 via Titus Brown: Document redirect limitation.

Bug fix candidate.