Fred Drake [Mon, 23 Jul 2001 19:19:39 +0000 (19:19 +0000)]
Add StopIteration to the list of exceptions *not* derived from StandardError.
Slightly re-word discussion of SystemExit and fork().
This is part of SF patch #443788.
Fred Drake [Mon, 23 Jul 2001 19:16:22 +0000 (19:16 +0000)]
Convert the use of apply(f, args) to the new spelling: f(*args).
This is part of SF patch #443788.
Neil Schemenauer [Mon, 23 Jul 2001 16:50:15 +0000 (16:50 +0000)]
Fix typo in comment.
Neil Schemenauer [Mon, 23 Jul 2001 16:30:27 +0000 (16:30 +0000)]
Add -E command line switch (ignore environment variables like PYTHONHOME
and PYTHONPATH).
Fred Drake [Mon, 23 Jul 2001 16:30:21 +0000 (16:30 +0000)]
Make this test work under Windows as well.
Fred Drake [Mon, 23 Jul 2001 16:08:36 +0000 (16:08 +0000)]
Test for the "glob" module, contributed by Nick Mathewson.
Heavily modified so this doesn't break on Windows.
This closes SF patch #441175.
Moshe Zadka [Mon, 23 Jul 2001 13:32:43 +0000 (13:32 +0000)]
Patch number #422106 by Greg Ball, to fix segmentation
fault in sys.displayhook.
Please check this in on the 2.2a1 branch (or whatever is necessary
to get it working next release)
Guido van Rossum [Mon, 23 Jul 2001 13:28:37 +0000 (13:28 +0000)]
Alex Coventry (SF patch 441791).
Guido van Rossum [Mon, 23 Jul 2001 13:27:49 +0000 (13:27 +0000)]
SF Patch #441791, with changes: when "import foo.bar" fails with an
exception in the execution of bar, ensure that foo.bar exists.
(Previously, while sys.modules['foo.bar'] would exist, foo.bar would
only be created upon successful execution of bar. This is
inconvenient; some would say wrong. :-)
Tim Peters [Mon, 23 Jul 2001 09:44:21 +0000 (09:44 +0000)]
Whitespace normalization.
Note: This test fails on Windows. Don't know why yet.
Martin v. Löwis [Mon, 23 Jul 2001 07:27:16 +0000 (07:27 +0000)]
Before declaring h_errno, do not check for Win32 only. Instead, do check
whether h_errno is a macro.
Fred Drake [Mon, 23 Jul 2001 04:08:01 +0000 (04:08 +0000)]
Tests for the "commands" module, contributed by Nick Mathewson.
This closes SF patch #440291.
Fred Drake [Mon, 23 Jul 2001 02:46:35 +0000 (02:46 +0000)]
New tests by Nick Mathewson, for the fpformat module.
This closes SF patch #440290.
Martin v. Löwis [Mon, 23 Jul 2001 01:30:10 +0000 (01:30 +0000)]
Instead of accessing ss_family, cast sockaddr_storage to sockaddr and access sa_family.
Tim Peters [Sat, 21 Jul 2001 21:16:39 +0000 (21:16 +0000)]
Leave the Inno script in better shape. Added registration of .py etc
extensions -- but Inno uninstall doesn't restore previous ones (if any),
so that's another step backwards.
Martin v. Löwis [Sat, 21 Jul 2001 18:48:56 +0000 (18:48 +0000)]
Set ai_addrlen even if there is no sa_len.
Martin v. Löwis [Sat, 21 Jul 2001 18:05:31 +0000 (18:05 +0000)]
Patch #401196: IPv6 extensions to the socket module.
New functions getnameinfo, getaddrinfo. New exceptions socket.gaierror,
socket.herror. Various new constants, in particular AF_INET6 and error
codes and parameters for getaddrinfo.
AF_INET6 support in setipaddr, makesockaddr, getsockaddr, getsockaddrlen,
gethost_common, PySocket_gethostbyaddr.
Fred Drake [Sat, 21 Jul 2001 12:25:10 +0000 (12:25 +0000)]
Add item about the new xml.sax.saxutils.quoteaddr() function.
Steven M. Gava [Sat, 21 Jul 2001 09:59:58 +0000 (09:59 +0000)]
updated about info for 0.8.1 release
Steven M. Gava [Sat, 21 Jul 2001 09:50:55 +0000 (09:50 +0000)]
new material for 0.8.1 release
Martin v. Löwis [Sat, 21 Jul 2001 09:42:15 +0000 (09:42 +0000)]
Silence warnings in MSVC++: hide unused variables, add constness back to
inet_pton/ntop, convert htons argument to u_short.
Tim Peters [Sat, 21 Jul 2001 02:31:40 +0000 (02:31 +0000)]
Get started on 2.2a2 NEWS.
Tim Peters [Sat, 21 Jul 2001 02:22:14 +0000 (02:22 +0000)]
On WIndows, skip the part of test_dircache that can't work on Windows.
Tim Peters [Sat, 21 Jul 2001 01:41:30 +0000 (01:41 +0000)]
Whitespace normalization, plus:
+ test_quopri.py relied on significant trailing spaces. Fixed.
+ test_dircache.py (still) doesn't work on Windows (directory mtime on
Windows doesn't work like it does on Unix).
Fred Drake [Fri, 20 Jul 2001 20:59:49 +0000 (20:59 +0000)]
Corrected a section reference (title was wrong).
Added information on the return values of PyArg_ParseTuple() and
PyArg_ParseTupleAndKeywords().
Fred Drake [Fri, 20 Jul 2001 20:56:11 +0000 (20:56 +0000)]
Typo: PyArgs_ParseTuple --> PyArg_ParseTuple
Moved the PyArg_Parse*(), Py_BuildValue() functions to the Utilities
chapter, added a minimal description and reference to the Extending
manual for Py_BuildValue().
Fred Drake [Fri, 20 Jul 2001 20:55:31 +0000 (20:55 +0000)]
Added information on Py_BuildValue().
Fred Drake [Fri, 20 Jul 2001 20:06:17 +0000 (20:06 +0000)]
Make the add*() helper functions more robust for use after intialization
is complete: recompute _dirs_in_sys_path each time these functions are
entered after module initialization is complete, and reset before
returning to user code.
This closes SF patch #442983.
Andrew M. Kuchling [Fri, 20 Jul 2001 19:29:04 +0000 (19:29 +0000)]
Patch #429442 from Jason Tishler: Corrects sys.platform and
distutils.util.get_platform() problems caused by the cruft contained
in Cygwin's uname -s.
Fred Drake [Fri, 20 Jul 2001 19:05:50 +0000 (19:05 +0000)]
Use string.ascii_letters instead of string.letters (SF bug #226706).
Fred Drake [Fri, 20 Jul 2001 19:03:44 +0000 (19:03 +0000)]
Add a missing "\" to the markup.
Fred Drake [Fri, 20 Jul 2001 18:58:42 +0000 (18:58 +0000)]
Use string.ascii_letters instead of string.letters (SF bug #226706).
Move computation of sets of characters out of the body of the function that
uses them.
Fred Drake [Fri, 20 Jul 2001 18:53:34 +0000 (18:53 +0000)]
Use string.ascii_letters instead of string.letters (SF bug #226706).
Work-around a font-lock bogosity.
Fred Drake [Fri, 20 Jul 2001 18:52:02 +0000 (18:52 +0000)]
Use string.ascii_letters instead of string.letters.
Remove unused import.
Fred Drake [Fri, 20 Jul 2001 18:38:26 +0000 (18:38 +0000)]
Added the constants ascii_letters, ascii_lowercase, and ascii_uppercase
to the string module. This was determined to be the right approach in
SF bug #226706.
Andrew M. Kuchling [Fri, 20 Jul 2001 18:34:34 +0000 (18:34 +0000)]
More Unicode corrections from MAL to match a post-2.2a1 change
Mention additional new imaplib.py features
(Don't expect to see an updated version of the Web page until around the 28th
of July. Vacation time!)
Marc-André Lemburg [Fri, 20 Jul 2001 17:39:11 +0000 (17:39 +0000)]
Make the unicode-escape and the UTF-16 codecs handle surrogates
correctly and thus roundtrip-safe.
Some minor cleanups of the code.
Added tests for the roundtrip-safety.
Guido van Rossum [Fri, 20 Jul 2001 16:36:21 +0000 (16:36 +0000)]
#ifdef out generation of \U escapes unless Py_UNICODE_WIDE. This
#caused warnings with the VMS C compiler. (SF bug #442998, in part.)
On a narrow system the current code should never be executed since ch
will always be < 0x10000.
Marc-Andre: you may end up fixing this a different way, since I
believe you have plans to generate \U for surrogate pairs. I'll leave
that to you.
Fred Drake [Fri, 20 Jul 2001 15:33:23 +0000 (15:33 +0000)]
Removed unnecessary section "Unicode literals"; all the discussion is
already present in the "String literals" section, including comments on
the "u" prefix and the additional escape sequences used for Unicode.
This relates to SF bug #442526.
Guido van Rossum [Fri, 20 Jul 2001 14:57:12 +0000 (14:57 +0000)]
Copying this 2.1.1 bugfix to the trunk:
Fix showstopper SF bug #442983: use of site.addsitedir() was broken
because it references the global dirs_in_sys_path which is deleted.
The fix avoids deleting that global.
(My email through python.org or digicool.com is non-functional at the
moment; use gvanrossum@home.com to reach me.)
Fred Drake [Fri, 20 Jul 2001 14:32:28 +0000 (14:32 +0000)]
Fix typo in description of raw strings: "value" --> "valid"
This closes SF bug #443059.
Piers Lauder [Fri, 20 Jul 2001 11:04:19 +0000 (11:04 +0000)]
apply patch item #416254
Piers Lauder [Fri, 20 Jul 2001 10:52:06 +0000 (10:52 +0000)]
apply patch item #416253
Piers Lauder [Fri, 20 Jul 2001 10:28:51 +0000 (10:28 +0000)]
fix missed conversion in ESR's string conversion
Tim Peters [Fri, 20 Jul 2001 09:32:16 +0000 (09:32 +0000)]
A full Inno Setup script for Python, except for the few hard and esoteric
parts Inno has no good answer for (read the comments at the top of the
script).
Steven M. Gava [Fri, 20 Jul 2001 08:53:38 +0000 (08:53 +0000)]
update in preparation for 0.8.1 alpha release
Tim Peters [Fri, 20 Jul 2001 05:17:10 +0000 (05:17 +0000)]
Remove the TENTATIVE marker from the now-historic Windows buildnos.
Andrew M. Kuchling [Fri, 20 Jul 2001 03:22:00 +0000 (03:22 +0000)]
Bump release number to 1.00, while I'm at it
Steven M. Gava [Fri, 20 Jul 2001 01:36:49 +0000 (01:36 +0000)]
bring up to date for 0.8.1 release
Fred Drake [Thu, 19 Jul 2001 22:59:09 +0000 (22:59 +0000)]
Regression test for the dircache module, contributed by Nick Mathewson.
Modified by Fred Drake.
This closes SF patch #440827.
Fred Drake [Thu, 19 Jul 2001 22:27:56 +0000 (22:27 +0000)]
Test for the repr module, contributed by Nick Mathewson.
This closes SF patch #440826.
Fred Drake [Thu, 19 Jul 2001 21:49:38 +0000 (21:49 +0000)]
Kill more warnings from the SGI compiler.
Part of SF patch #434992.
Fred Drake [Thu, 19 Jul 2001 21:29:49 +0000 (21:29 +0000)]
Make more warnings go away on the SGI compiler.
This is part of SF patch #424992.
Fred Drake [Thu, 19 Jul 2001 21:16:41 +0000 (21:16 +0000)]
Clean up some warnings from the SGI compiler.
This is part of SF patch #434992.
Fred Drake [Thu, 19 Jul 2001 21:11:13 +0000 (21:11 +0000)]
Kill a warning on the SGI compiler.
This is part of SF patch #434992.
Fred Drake [Thu, 19 Jul 2001 20:57:23 +0000 (20:57 +0000)]
Make the new docstrings better conform to Guido's style guide.
Fred Drake [Thu, 19 Jul 2001 20:48:32 +0000 (20:48 +0000)]
Remove warnings from the SGI compiler.
This is part of SF patch #434992.
Fred Drake [Thu, 19 Jul 2001 20:17:15 +0000 (20:17 +0000)]
Elaborate a comment.
Fred Drake [Thu, 19 Jul 2001 20:08:04 +0000 (20:08 +0000)]
Added docstrings based on a patch by Evelyn Mitchell.
This closes SF patch #440153.
Fred Drake [Thu, 19 Jul 2001 19:44:25 +0000 (19:44 +0000)]
Make sure path names inserted into ZIP files are normalized to use "/" as
the directory separator, as required by the format specification.
This closes SF bug #440693.
Tim Peters [Thu, 19 Jul 2001 19:11:41 +0000 (19:11 +0000)]
Add some test cases for ntpath.join().
Tim Peters [Thu, 19 Jul 2001 19:02:12 +0000 (19:02 +0000)]
Cosmetic: break the long lines in test_ntpath.py, and get rid of its
expected-output file.
Martin v. Löwis [Thu, 19 Jul 2001 17:37:46 +0000 (17:37 +0000)]
Port getaddrinfo to MSVC++.
Tim Peters [Thu, 19 Jul 2001 17:18:18 +0000 (17:18 +0000)]
SF bug #44271: os.path.expanduser problem w/o HOME set.
This is a Windows-specific glitch that's really due to that, e.g.,
ntpath.join("c:", "/abc") returned "/abc" instead of "c:/abc". Made
join smarter.
Bugfix candidate.
Fred Drake [Thu, 19 Jul 2001 16:10:15 +0000 (16:10 +0000)]
Added function xml.sax.saxutils.quoteattr().
This closes SF bug #440351. It should not be moved to Python 2.1.1.
Guido van Rossum [Thu, 19 Jul 2001 15:27:45 +0000 (15:27 +0000)]
Fis SF bug #442647: not all forms of legal future statements were
parsed correctly. Now they are.
Guido van Rossum [Thu, 19 Jul 2001 15:17:52 +0000 (15:17 +0000)]
Thomas, I don't care about unset either, but setting PYTHONHOME=
doesn't work -- it actually prevents the extensions from being built
properly. So I'm changing the "sharedmods" target to what I presume
it was before:
PYTHONPATH= ./$(PYTHON) $(srcdir)/setup.py build
Andrew M. Kuchling [Thu, 19 Jul 2001 14:59:53 +0000 (14:59 +0000)]
Revise the Unicode section after getting comments from MAL, GvR, and others.
Add new low-level API for interpreter introspection
Bump version number.
Martin v. Löwis [Thu, 19 Jul 2001 14:26:10 +0000 (14:26 +0000)]
Patch #442512: put block indices in the right byte order on bigendian systems.
Martin v. Löwis [Thu, 19 Jul 2001 14:21:10 +0000 (14:21 +0000)]
Use -Kpthread when trying to find out the size of pthread_t.
Guido van Rossum [Thu, 19 Jul 2001 12:19:27 +0000 (12:19 +0000)]
Add a low-level API to access interpreters, for David Beazley.
SF patch #436376.
Martin v. Löwis [Thu, 19 Jul 2001 11:00:41 +0000 (11:00 +0000)]
Patch #418659: Fixes for UnixWare and ReliantUnix.
back-out 1.215 of configure.in and 1.34 of Makefile.pre.in
Check for -Kpthread compiler support, and use this as the sole option
for MT if available.
Martin v. Löwis [Thu, 19 Jul 2001 10:06:39 +0000 (10:06 +0000)]
Replace __import__ with import as.
Thomas Wouters [Thu, 19 Jul 2001 09:34:09 +0000 (09:34 +0000)]
Avoid the use of 'unset', which isn't available on all platforms. Fixes SF
bug #442627.
Steven M. Gava [Thu, 19 Jul 2001 04:49:13 +0000 (04:49 +0000)]
minor tidy-ups ready for 0.8.1 alpha tarball release
Fred Drake [Thu, 19 Jul 2001 03:49:33 +0000 (03:49 +0000)]
Remove some false statements.
Fred Drake [Thu, 19 Jul 2001 03:46:26 +0000 (03:46 +0000)]
Remove some false comments.
Reorganize so the initialization sequences does not bite us in the foot.
(There is no good reason to discard classes that clients may want to
subclass.)
Andrew M. Kuchling [Thu, 19 Jul 2001 01:48:08 +0000 (01:48 +0000)]
Fill out the Unicode section, somewhat uncertainly
Andrew M. Kuchling [Thu, 19 Jul 2001 01:19:59 +0000 (01:19 +0000)]
Finish the "Other changes" section
Bump version number
Insert a few blank lines here and there
Andrew M. Kuchling [Thu, 19 Jul 2001 01:17:15 +0000 (01:17 +0000)]
Fix a few typos
Andrew M. Kuchling [Thu, 19 Jul 2001 00:29:48 +0000 (00:29 +0000)]
Remove note about this being a draft document.
Note the actual date of 2.1's release
Fred Drake [Wed, 18 Jul 2001 21:17:29 +0000 (21:17 +0000)]
Look to the future: bump the version number.
Do more to ensure we don't do any more formatting than we need to.
Use separate targets for the distribution packages for paper-based and
non-paper-based formats; this avoids some extra packaging when a complete
distribution is being built with both paper sizes.
Fred Drake [Wed, 18 Jul 2001 21:06:06 +0000 (21:06 +0000)]
2.2a1 is out; look to the future.
Fred Drake [Wed, 18 Jul 2001 21:04:35 +0000 (21:04 +0000)]
Ignore all .tar files in the top directory; we're about to generate
more of them.
Tim Peters [Wed, 18 Jul 2001 20:47:31 +0000 (20:47 +0000)]
SF bug #442520: test_struct fails on SPARC.
The ob_sval member of a string object isn't necessarily aligned to better
than a native long, so the new "q" and "Q" struct codes can't get away w/
casting tricks on platforms where LONG_LONG requires stricter-than-long
alignment. After I thought of a few elaborate workarounds, Guido bashed
me over the head with the obvious memcpy approach, herewith implemented.
Skip Montanaro [Wed, 18 Jul 2001 20:03:32 +0000 (20:03 +0000)]
If the user's environment has set the BROWSER environment variable (as Gnome
seems to do), the user may not be aware of its contents. Attempt to add any
to _browsers.
closes bug #429136
Fred Drake [Wed, 18 Jul 2001 20:01:15 +0000 (20:01 +0000)]
Lots of small updates, some long overdue.
Fred Drake [Wed, 18 Jul 2001 19:21:12 +0000 (19:21 +0000)]
Add a more substantial example startup file for the interactive shell;
sample startup script provided by Itamar Shtull-Trauring.
This closes SF patch #410890.
Add some logical markup where it was missing.
Fred Drake [Wed, 18 Jul 2001 18:39:56 +0000 (18:39 +0000)]
Minor changes for stylistic cleanliness and consistency.
Fred Drake [Wed, 18 Jul 2001 18:32:38 +0000 (18:32 +0000)]
Change the command lines to use a similar "phrasing" to that used in the
other documentation makefiles. This is probably not sufficient to run
the conversion on Windows, but goes at least part way.
Fred Drake [Wed, 18 Jul 2001 17:52:58 +0000 (17:52 +0000)]
"Make small changes, but carry a big diff."
Minor local consistency adjustments.
A couple of small tweaks to the setdlopenflags() description.
For setprofile() and settrace(), convert some references to become
hyperlinks in the HTML version.
Fred Drake [Wed, 18 Jul 2001 17:40:19 +0000 (17:40 +0000)]
Add some symbolic names to support hyperlinked references.
Guido van Rossum [Wed, 18 Jul 2001 16:59:46 +0000 (16:59 +0000)]
Add "help" to the things one is encouraged to type for more
information. (I found this idea in the ActivePython 2.1 diffs.)
Fred Drake [Wed, 18 Jul 2001 16:35:05 +0000 (16:35 +0000)]
Made a few minor style & markup changes to the new {get,set}dlopenflags()
descriptions; added availability notes.
Martin v. Löwis [Wed, 18 Jul 2001 16:24:30 +0000 (16:24 +0000)]
Deactivate definition of ss_family and ss_len. Fixes bug #440486.
Martin v. Löwis [Wed, 18 Jul 2001 16:17:16 +0000 (16:17 +0000)]
Patch #412229: Add functions sys.getdlopenflags and sys.setdlopenflags.
Add dlopenflags to PyInterpreterState, and use it in dlopen calls.
Martin v. Löwis [Wed, 18 Jul 2001 15:30:25 +0000 (15:30 +0000)]
Patch #432117: Record namespaces in the DOM tree using the DOM xmlns prefix.
Fred Drake [Tue, 17 Jul 2001 23:36:31 +0000 (23:36 +0000)]
Ignore the html-*.tar file that can now be generated as an intermediate.
Fred Drake [Tue, 17 Jul 2001 23:35:46 +0000 (23:35 +0000)]
Revise the rules for building the distribution files for the HTML format.
These work again.
Fred Drake [Tue, 17 Jul 2001 23:08:24 +0000 (23:08 +0000)]
Mirror Guido's latest changes to the license file.