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: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.
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: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: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.
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: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.
#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.
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.)
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).
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.
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
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.
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.)
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.
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.
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.
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 [Tue, 17 Jul 2001 20:52:51 +0000 (20:52 +0000)]
Start of a test suite for the "os" module -- this only tests the temporary
file management functions that have just been made available on more
platforms.
Jack Jansen [Tue, 17 Jul 2001 20:47:13 +0000 (20:47 +0000)]
Used an adapted MethodGenerator to generate methods too for functions that have the object as the second arg after a first CFAllocatorRef arg (which we pass as NULL always anyway).