Fred Drake [Tue, 16 May 2000 13:30:12 +0000 (13:30 +0000)]
Donn Cave <donn@oz.net>:
BeOS (up to 5.0) lacks <netinet/tcp.h>.
Jack Jansen [Mon, 15 May 2000 15:36:52 +0000 (15:36 +0000)]
Manually added HRHTMLRenderingLibAvailable.
Blacklist HRDisposeReference and call it in the dispose routine.
Jack Jansen [Mon, 15 May 2000 15:35:08 +0000 (15:35 +0000)]
Slowly becoming functional...
Jack Jansen [Sun, 14 May 2000 22:05:36 +0000 (22:05 +0000)]
Interface to macOS 9 HTMLRenderingLib. Not yet functional.
Gregory P. Smith [Sat, 13 May 2000 03:35:05 +0000 (03:35 +0000)]
Changed default developer name.
Added some guiding comments.
Gregory P. Smith [Sat, 13 May 2000 03:32:36 +0000 (03:32 +0000)]
Template for writing Distutils command modules.
Gregory P. Smith [Sat, 13 May 2000 03:11:40 +0000 (03:11 +0000)]
Contribution from Harry Henry Gebel: the 'bdist_rpm' command.
(Completely uninspected and untested by me, this is just to
get the code into CVS!)
Gregory P. Smith [Sat, 13 May 2000 03:10:30 +0000 (03:10 +0000)]
In 'install_misc': 'self.outfiles' defaults to the empty list, so we don't
have to worry about "or []" in 'get_outputs()'.
Gregory P. Smith [Sat, 13 May 2000 03:09:50 +0000 (03:09 +0000)]
List data files are listed in the Distribution attribute 'data_files',
rather than 'data'.
Gregory P. Smith [Sat, 13 May 2000 03:08:28 +0000 (03:08 +0000)]
Added the 'bdist_base' option, the base temp directory for all bdist commands.
Gregory P. Smith [Sat, 13 May 2000 03:07:53 +0000 (03:07 +0000)]
Added 'get_inputs()' methods, needed by the "install" command's
'get_inputs()'.
Gregory P. Smith [Sat, 13 May 2000 03:06:56 +0000 (03:06 +0000)]
Drastically simplified by taking advantage of the "install" command's
new flexibility, specifically the 'root' option. Now, we just use
"install" to do a fake installation into a temporary directory
(the 'bdist_dir' option, which derives from the 'bdist_base' option of
"bdist"), and then tar/zip up that directory. This means that dumb
built distributions are now relative to the root directory, rather than
the prefix or exec-prefix; this is probably a feature, but does make
them slightly less flexible.
Gregory P. Smith [Sat, 13 May 2000 02:30:15 +0000 (02:30 +0000)]
Rename 'build_bdist' to 'bdist_base', and get it by default from the
"bdist" command rather than "build".
Gregory P. Smith [Sat, 13 May 2000 02:20:43 +0000 (02:20 +0000)]
Typo fix.
Gregory P. Smith [Sat, 13 May 2000 02:16:45 +0000 (02:16 +0000)]
Made the '--record' option take an argument, which is the name of the
file to write the list of installed files to.
Gregory P. Smith [Sat, 13 May 2000 02:13:53 +0000 (02:13 +0000)]
Ditch the explicit search for *.py[co] files -- they're now included in
the list returned by 'get_outputs()', thanks to changes in the
"install_lib" command.
Gregory P. Smith [Sat, 13 May 2000 02:11:10 +0000 (02:11 +0000)]
Added '_bytecode_filenames()' method, and use it in 'get_outputs()'
to ensure that compiled bytecode files are considered part of the output
of the "install_lib" command.
Gregory P. Smith [Sat, 13 May 2000 02:01:22 +0000 (02:01 +0000)]
Moved check for installation to non-sys.path location so it comes
last (after writing list of installed files) -- that way, the warning
is more visible.
Gregory P. Smith [Sat, 13 May 2000 01:58:19 +0000 (01:58 +0000)]
Harry Henry Gebel: add the "--record" option to write the list of
installed files to INSTALLED_FILES.
Gregory P. Smith [Sat, 13 May 2000 01:56:55 +0000 (01:56 +0000)]
Added the 'build_bdist' option and code to clean it up -- this is the
top-level temporary directory for creating built distributions. (Won't
work yet, since the "build" command doesn't yet have a 'build_bdist'
option, and none of the "bdist" commands support it yet.)
Gregory P. Smith [Sat, 13 May 2000 01:52:14 +0000 (01:52 +0000)]
Harry Henry Gebel: get extra compiler flags from the CFLAGS environment
variable.
(Is this really needed? Can we drop it when the config file mechanism
allows users to set compiler flags in setup.cfg?)
Gregory P. Smith [Sat, 13 May 2000 01:49:56 +0000 (01:49 +0000)]
Harry Henry Gebel: add support for the 'bdist_rpm' command, specifically
the 'no_format_option' class attribute.
Gregory P. Smith [Sat, 13 May 2000 01:48:15 +0000 (01:48 +0000)]
Harry Henry Gebel: add 'bdist_rpm' command.
Gregory P. Smith [Sat, 13 May 2000 01:35:33 +0000 (01:35 +0000)]
From Lyle Johnson: renamed 'implib_dir' to 'implib_file', and
correctly ensure that it's 'dirname' exists.
Jack Jansen [Fri, 12 May 2000 21:37:45 +0000 (21:37 +0000)]
(Temporarily) revived after a long sleep, for building MacPython without GUSI
Jack Jansen [Fri, 12 May 2000 21:37:10 +0000 (21:37 +0000)]
Fixed to work again without USE_GUSI and with USE_MSL_MALLOC
Jack Jansen [Fri, 12 May 2000 21:36:29 +0000 (21:36 +0000)]
Fixed to work again without USE_GUSI
Jack Jansen [Fri, 12 May 2000 21:36:06 +0000 (21:36 +0000)]
Added unicodedata and _codecs modules (which had apparently slipped through until now).
Jack Jansen [Fri, 12 May 2000 21:29:58 +0000 (21:29 +0000)]
First tiny steps towards Carbon: this project currently builds a PythonStandSmall without GUSI and with standard MSL malloc. Socket and select are the main victims of this.
Guido van Rossum [Fri, 12 May 2000 14:21:10 +0000 (14:21 +0000)]
Removing thread.h -- it has been obsolete for quite a while.
Gregory P. Smith [Fri, 12 May 2000 01:58:29 +0000 (01:58 +0000)]
Added comment/docstring/revision header.
Gregory P. Smith [Fri, 12 May 2000 01:54:50 +0000 (01:54 +0000)]
Fixed 'select_scheme()' so it doesn't override a directory attribute that's
already been set (eg. by a command-line option).
Gregory P. Smith [Fri, 12 May 2000 01:46:47 +0000 (01:46 +0000)]
Added --skip-build option, so lazy debuggers/testers (mainly me) don't
have to wade through all the 'build' output when testing installation.
Gregory P. Smith [Fri, 12 May 2000 01:34:33 +0000 (01:34 +0000)]
Caught up with renaming in 'install_misc' base class.
Gregory P. Smith [Fri, 12 May 2000 01:32:30 +0000 (01:32 +0000)]
Deleted some cruft.
Caught up with renaming in 'install_misc' base class.
Changed 'run()' to chmod installed scripts under Unix.
Gregory P. Smith [Fri, 12 May 2000 01:31:37 +0000 (01:31 +0000)]
In 'install_misc' class:
- renamed '_copydata()' to 'copy_files()'
- changed it to record complete output filenames
- dropped '_outputdata()' in favour of much simpler 'get_outputs()'
Gregory P. Smith [Fri, 12 May 2000 00:58:18 +0000 (00:58 +0000)]
Doc patch from Bastein Kleineidam: start to describe the 'install' command
family, including the new 'install_scripts' and 'install_data' commands.
Gregory P. Smith [Fri, 12 May 2000 00:52:23 +0000 (00:52 +0000)]
Patch from Bastien Kleineidam:
adds the 'install_data' and 'install_scripts' commands; these two
are trivial thanks to the 'install_misc' base class in cmd.py.
(Minor tweaks and commentary by me; the code is untested so far.)
Gregory P. Smith [Fri, 12 May 2000 00:42:19 +0000 (00:42 +0000)]
Call 'parse_config_files()' at the appropriate point.
Tweaked error-generating code.
Gregory P. Smith [Fri, 12 May 2000 00:41:33 +0000 (00:41 +0000)]
Preliminary support for config files:
- added 'find_config_files()' and 'parse_config_files()' methods
- added 'command_options' attribute
Comment/docstring updates.
Gregory P. Smith [Fri, 12 May 2000 00:40:00 +0000 (00:40 +0000)]
Made 'check_environ()' "public" by stripping the leading underscore;
added a global '_environ_checked' so we know if it's already been
called.
Gregory P. Smith [Fri, 12 May 2000 00:34:12 +0000 (00:34 +0000)]
Fix from Lyle Johnson: add the '--compiler' option.
Also added creation of 'implib_dir', a temporary directory specific to
MSVC++ -- but I checked in two ways of fixing it (Lyle's and mine),
because I'm not sure which is right.
Gregory P. Smith [Fri, 12 May 2000 00:33:14 +0000 (00:33 +0000)]
Fix from Lyle Johnson: add the '--compiler' option.
Guido van Rossum [Thu, 11 May 2000 18:42:27 +0000 (18:42 +0000)]
The addition of rint() (by Peter Schneider-Kamp; I forgot to mention
that before) in the previous patch has one problem; rint() is not in
the C math library on all platforms (e.g. not for VC++). Make it
conditional on HAVE_RINT.
Guido van Rossum [Thu, 11 May 2000 18:41:32 +0000 (18:41 +0000)]
Add check for rint() in math library.
Guido van Rossum [Thu, 11 May 2000 18:29:05 +0000 (18:29 +0000)]
Remove stdwin references
Guido van Rossum [Thu, 11 May 2000 18:28:03 +0000 (18:28 +0000)]
Removing junk
Guido van Rossum [Thu, 11 May 2000 18:27:21 +0000 (18:27 +0000)]
removing more stdwin users
Guido van Rossum [Thu, 11 May 2000 18:20:30 +0000 (18:20 +0000)]
Added a few new names...
Guido van Rossum [Thu, 11 May 2000 18:19:42 +0000 (18:19 +0000)]
Added math.rint() -- round according to current IEEE754 mode
Guido van Rossum [Thu, 11 May 2000 14:43:52 +0000 (14:43 +0000)]
removing more stdwin users
Guido van Rossum [Thu, 11 May 2000 12:53:51 +0000 (12:53 +0000)]
Bill Tutt:
Calling Sleep(0) for a spinlock can cause a priority inversion, adding
comments to explain what's going on.
Fred Drake [Wed, 10 May 2000 20:36:34 +0000 (20:36 +0000)]
Oops, better also note that the module initialization function must be
extern "C" for C++.
Fred Drake [Wed, 10 May 2000 20:33:18 +0000 (20:33 +0000)]
Section "The Module's Method Table and Initialization Function":
Explain that the name of the initialization function must be
init<module>(). Omission noted by Daniel Kozan
<crum@dev-group.com>.
Guido van Rossum [Wed, 10 May 2000 20:06:00 +0000 (20:06 +0000)]
At Bob Kahn's request, add CNRI to the copyright string (but not to
the notice yet).
Fred Drake [Wed, 10 May 2000 17:28:42 +0000 (17:28 +0000)]
Rename the "browser" module to "BrowserControl", since Guido did not
like the short, ambiguous name.
Fred Drake [Wed, 10 May 2000 16:50:07 +0000 (16:50 +0000)]
EditorWindow.python_docs():
Instead of using Netscape through os.system(), use the new
browser.open() function to load the documentation on the
default browser. On Windows, this will use the installed
documentation if it exists, instead of hitting python.org.
Fred Drake [Wed, 10 May 2000 16:47:27 +0000 (16:47 +0000)]
Collection of classes and convenience functions to control external
Web browsers.
Jack Jansen [Wed, 10 May 2000 15:15:54 +0000 (15:15 +0000)]
GUSI 2.0.5 has a non-functional getsockname() if you use Open Transport. For now the workaround is to only enable MacTCP sockets.
Guido van Rossum [Wed, 10 May 2000 13:25:32 +0000 (13:25 +0000)]
Trent Mick:
Use "win32" for sys.platform on Win64 instead of "win32" because:
1. While it may be confusing to the Python scriptor on Win64 that he has to
check for win*32*, that is something that he will learn the first time. It
is better than the alternative of the scriptor happily using "win64" and
then that code not running on Win32 for no good reason.
2. The main question is: is Win64 so much more like Win32 than different from
it that the common-case general Python programmer should not ever have to
make the differentiation in his Python code. Or, at least, enough so that
such differentiation by the Python scriptor is rare enough that some other
provided mechanism is sufficient (even preferable). Currently the answer
is yes. Hopefully MS will not change this answer.
Fred Drake [Tue, 9 May 2000 21:50:00 +0000 (21:50 +0000)]
Trent Mick <trentm@activestate.com>:
Limit the 'b' formatter of PyArg_ParseTuple to valid values of an unsigned
char, i.e. [0,UCHAR_MAX]. It is expected that this is the common usage of 'b'.
An OverflowError is raised if the parsed value is outside this range.
Fred Drake [Tue, 9 May 2000 19:58:19 +0000 (19:58 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Added a useful link to Markus Kuhn's Unicode and UTF-8
FAQ.
Fred Drake [Tue, 9 May 2000 19:57:46 +0000 (19:57 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Added another test for string formatting (the one that
produced the core dump now fixed in unicodeobject.c).
Fred Drake [Tue, 9 May 2000 19:57:01 +0000 (19:57 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Added APIs to allow setting and querying the system's
current string encoding: sys.set_string_encoding()
and sys.get_string_encoding().
Fred Drake [Tue, 9 May 2000 19:55:59 +0000 (19:55 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Moved some docs to the include file.
Added a NULL check to _PyCodec_Lookup() to make it
core dump safe.
Fred Drake [Tue, 9 May 2000 19:55:16 +0000 (19:55 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Fixed docs according to the new behaviour (the Unicode
encoding is no longer fixed to UTF-8).
Fred Drake [Tue, 9 May 2000 19:54:43 +0000 (19:54 +0000)]
Minimal change so I can add the rest of MAL's checkin message:
M.-A. Lemburg <mal@lemburg.com>:
Fixed a core dump in PyUnicode_Format().
Fred Drake [Tue, 9 May 2000 19:53:39 +0000 (19:53 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Added support for user settable default encodings. The
current implementation uses a per-process global which
defines the value of the encoding parameter in case it
is set to NULL (meaning: use the default encoding).
Fred Drake [Tue, 9 May 2000 19:52:40 +0000 (19:52 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Fixed a bug due to a /* inside /*...*/. GCC doesn't like
this and bombs.
Fred Drake [Tue, 9 May 2000 19:51:53 +0000 (19:51 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Added PyUnicode_GetDefaultEncoding() and
PyUnicode_GetDefaultEncoding() APIs.
Fred Drake [Tue, 9 May 2000 19:51:10 +0000 (19:51 +0000)]
M.-A. Lemburg <mal@lemburg.com>:
Added documentation and the missing PyCodec_StreamWriter API.
Guido van Rossum [Tue, 9 May 2000 18:14:50 +0000 (18:14 +0000)]
New version from Jim Fulton to fix a problem that Eric Raymond ran
into. Jim writes:
The core dump was due to a C decrement operation
in a macro invocation in load_pop. (BAD)
I fixed this by moving the decrement outside
the macro call.
I added a comment to load_pop and load_mark
to document the fact that cPickle separates the
unpickling stack into two separate stacks, one for
objects and one for marks.
I also moved some increments out of some macro
calls (PyTuple_SET_ITEM and PyList_SET_ITEM).
This wasn't necessary, but made me feel better. :)
I tested these changes in *my* cPickle, which
doesn't have the new Unicode stuff.
Fred Drake [Tue, 9 May 2000 17:10:23 +0000 (17:10 +0000)]
Fix references to the built-in compile() that don't include the
filename parameter. Noted by Randall Hopper <aa8vb@yahoo.com>.
Fred Drake [Tue, 9 May 2000 16:23:23 +0000 (16:23 +0000)]
Skip Montanaro <skip@mojam.com>:
The intent is that this diff adds a link to the rfc822 module doc and
an index reference to this module under the rfc822 heading.
Fred, based on a suggestion from Grant Griffin <grant.griffin@honeywell.com>:
Added link to the MIME FAQ, so people can more easily get more
information about the subject of the module.
Fred Drake [Tue, 9 May 2000 16:18:44 +0000 (16:18 +0000)]
Define \seeurl in the seealso environment. Two parameters: url, why.
Fred Drake [Tue, 9 May 2000 16:17:51 +0000 (16:17 +0000)]
do_cmd_seeurl(): New function.
Fred Drake [Tue, 9 May 2000 15:06:32 +0000 (15:06 +0000)]
read() method: clarify that strings are accepted and interpreted
reasonably.
readfp() method: added documentation.
Guido van Rossum [Tue, 9 May 2000 14:57:09 +0000 (14:57 +0000)]
Add a simple directory listing function.
Guido van Rossum [Tue, 9 May 2000 14:54:13 +0000 (14:54 +0000)]
Set HTTPServer class variable allow_reuse_address to 1, so restarting
the server after it died doesn't require a wait period.
Guido van Rossum [Tue, 9 May 2000 14:53:29 +0000 (14:53 +0000)]
Add class variable allow_reuse_address in TCPServer -- if nonzero, the
server_bind() method calls setsockopt(SOL_SOCKET, SO_REUSEADDR, 1).
Fred Drake [Tue, 9 May 2000 14:46:40 +0000 (14:46 +0000)]
ConfigParser.read():
Instead of wrapping 'filenames' value in a list if it's a
string, wrap it if it's a string or unicode string.
Fred Drake [Tue, 9 May 2000 14:28:03 +0000 (14:28 +0000)]
Minor edit of leading comments: 'the the' --> 'the', quoted 'enable'
option name for clarity.
Guido van Rossum [Tue, 9 May 2000 14:27:48 +0000 (14:27 +0000)]
Replace PyErr_BadArgument() error in PyInt_AsLong() with "an integer
is required" (we can't say more because we don't know in which context
it is called).
Guido van Rossum [Tue, 9 May 2000 14:14:27 +0000 (14:14 +0000)]
Trent Mick:
Fix the string methods that implement slice-like semantics with
optional args (count, find, endswith, etc.) to properly handle
indeces outside [INT_MIN, INT_MAX]. Previously the "i" formatter
for PyArg_ParseTuple was used to get the indices. These could overflow.
This patch changes the string methods to use the "O&" formatter with
the slice_index() function from ceval.c which is used to do the same
job for Python code slices (e.g. '
abcabcabc'[0:1000000000L]).
Guido van Rossum [Tue, 9 May 2000 10:56:00 +0000 (10:56 +0000)]
Caolan McNamara: properly undo the byte-stuffing of lines starting
with a dot. [GvR change: only unstuff when line starts with two dots.]
Jack Jansen [Tue, 9 May 2000 10:02:30 +0000 (10:02 +0000)]
USE_GUSI2 should be defined, not USE_GUSI1.
Jack Jansen [Tue, 9 May 2000 10:01:52 +0000 (10:01 +0000)]
Selecting the macfsn option didn't work, fixed.
Fixed the help strings.
Swapped the macfsn and help button numbers.
Jack Jansen [Tue, 9 May 2000 08:38:20 +0000 (08:38 +0000)]
Import this to replace open() by an extended version that uses
Internet Config to set creator/type based on the extension. Donated by
Oliver Steele.
Greg Ward [Tue, 9 May 2000 01:50:41 +0000 (01:50 +0000)]
Added comment about the MSVC-specific kludge.
Guido van Rossum [Mon, 8 May 2000 17:42:17 +0000 (17:42 +0000)]
Deleted some modules that are no longer supported.
Guido van Rossum [Mon, 8 May 2000 17:31:04 +0000 (17:31 +0000)]
The usual...
Guido van Rossum [Mon, 8 May 2000 17:29:50 +0000 (17:29 +0000)]
Deleted the stdwin-based test() function.
Guido van Rossum [Mon, 8 May 2000 17:25:17 +0000 (17:25 +0000)]
Deleting all stdwin library modules.
Jeremy Hylton [Mon, 8 May 2000 16:59:59 +0000 (16:59 +0000)]
if the GzipFile constructor fails, the __del__ method is still
called. catch the resulting AttributeError and exit cleanly.
Guido van Rossum [Mon, 8 May 2000 14:29:38 +0000 (14:29 +0000)]
Trent Mick:
Fix overflow bug in ldexp(x, exp). The 'exp' argument maps to a C int for the
math library call [double ldexp(double, int)], however the 'd'
PyArg_ParseTuple formatter was used to yield a double, which was subsequently
cast to an int. This could overflow.
[GvR: mysteriously, on Solaris 2.7, ldexp(1,
2147483647) returns Inf
while ldexp(1,
2147483646) raises OverflowError; this seems a bug in
the math library (it also takes a real long time to compute the
Inf outcome). Does this point to a bug in the CHECK() macro? It
should have discovered that the result was outside the HUGE_VAL range.]
Guido van Rossum [Mon, 8 May 2000 14:15:19 +0000 (14:15 +0000)]
Trent Mick:
The following modules are specifically excluded in the Win64 build:
audioop, binascii, imageop, rgbimg. They are advertised as heavily 32-bit
dependent. [They should probably be fixed! --GvR]
Guido van Rossum [Mon, 8 May 2000 14:14:48 +0000 (14:14 +0000)]
Trent Mick:
Changes to PC\config.[hc] for Win64. MSVC defines _WINxx to differentiate the
various windows platforms. Python's MS_WINxx are keyed off of these. Note
that _WIN32 (and hence MS_WIN32 in Python) are defined on Win32 *and* on
Win64. This is for compatibility reasons. The idea is that the common case is
that code specific to Win32 will also work on Win64 rather than being
specific to Win32 (i.e. there is more the same than different in WIn32 and
Win64).
The following modules are specifically excluded in the Win64 build:
audioop, binascii, imageop, rgbimg. They are advertised as heavily 32-bit
dependent. [They should probably be fixed! --GvR]
The patch to config.h looks big but it really is not. These are the effective
changes:
- MS_WINxx are keyed off _WINxx
- SIZEOF_VOID_P is set to 8 for Win64
- COMPILER string is changed appropriately for Win64
Guido van Rossum [Mon, 8 May 2000 14:08:05 +0000 (14:08 +0000)]
Trent Mick:
Fix the string methods that implement slice-like semantics with
optional args (count, find, endswith, etc.) to properly handle
indeces outside [INT_MIN, INT_MAX]. Previously the "i" formatter
for PyArg_ParseTuple was used to get the indices. These could overflow.
This patch changes the string methods to use the "O&" formatter with
the slice_index() function from ceval.c which is used to do the same
job for Python code slices (e.g. '
abcabcabc'[0:1000000000L]). slice_index()
is renamed _PyEval_SliceIndex() and is now exported. As well, the return
values for success/fail were changed to make slice_index directly
usable as required by the "O&" formatter.
[GvR: shouldn't a similar patch be applied to unicodeobject.c?]
Guido van Rossum [Mon, 8 May 2000 14:06:50 +0000 (14:06 +0000)]
Trent Mick:
Change static slice_index() to extern _PyEval_SliceIndex() (with
different return value interpretation: 0 for failure, 1 for success).
Guido van Rossum [Mon, 8 May 2000 14:04:54 +0000 (14:04 +0000)]
Trent Mick:
Add declaration of PyEval_SliceIndex().