Fred Drake [Tue, 12 Sep 2000 20:17:17 +0000 (20:17 +0000)]
Vladimir Marangozov <Vladimir.Marangozov@inrialpes.fr>:
Here are some changes to the C API docs. The memory examples & API have
been updated because one malloc family is gone (Py_Malloc).
You'll see other small additions to the "building new types" section
for completeness and some cleanup at the end of the memory section.
Tim Peters [Mon, 11 Sep 2000 07:55:40 +0000 (07:55 +0000)]
Windows installer: In the Start menu IDLE shortcut, explictly invoke the
pythonw.exe we just installed. Making Windows key off the .pyw extension
instead screws people with multiple Python installations (reported more
than once on c.l.py).
Tim Peters [Sun, 10 Sep 2000 05:22:54 +0000 (05:22 +0000)]
General cleanup in preparation for a bugfix: removed unused code, useless
declarations, added some comments where I had to think too hard to
understand what was happening, and changed the primary internal get/set
functions to assert they're passed objects of the correct type instead of
doing runtime tests for that (it's an internal error that "should never
happen", so it's good enough to check it only in the debug build).
Tim Peters [Sun, 10 Sep 2000 01:02:41 +0000 (01:02 +0000)]
Close SF bug 110826: a complaint about the way Python #define'd NULL.
It's hard to sort out what the bug was, exactly. So, Big Hammer:
1. Python shouldn't be in the business of #define'ing NULL, period.
2. Users of the Python C API shouldn't be in the business of not including
Python.h, period.
Hence:
1. Removed all #define's of NULL in Python source code (pyport.h and
object.h).
2. Since we're *relying* on stdio.h defining NULL, put an #error in
Python.h after its #include of stdio.h if NULL isn't defined then.
Thomas Heller [Sat, 9 Sep 2000 21:15:12 +0000 (21:15 +0000)]
The installer now displays info about version of distutils
used to create the distribution and the creation date.
Takes care of the extra_path argument to the setup function,
installs the modules into <prefix>/extra_path and creates
a -pth file (like install_lib does).
Fred Drake [Sat, 9 Sep 2000 06:29:35 +0000 (06:29 +0000)]
Do not try to fix bugs while sleeping.
Paid more attention to the comments on the report; Martin suggested just
not having a __del__() method, which makes more sense in this case. So
I have removed it.
Fred Drake [Sat, 9 Sep 2000 06:26:40 +0000 (06:26 +0000)]
Kevin Jacobs <jacobs@darwin.cwru.edu>:
The posixfile __del__ method attempts to close the file (_file_) it
contains. However, if the open() method fails, then _file_ is never
assigned.
Tim Peters [Sat, 9 Sep 2000 06:13:41 +0000 (06:13 +0000)]
Fix for bug 113934. string*n and unicode*n did no overflow checking at
all, either to see whether the # of chars fit in an int, or that the
amount of memory needed fit in a size_t. Checking these is expensive, but
the alternative is silently wrong answers (as in the bug report) or
core dumps (which were easy to provoke using Unicode strings).
Fred Drake [Sat, 9 Sep 2000 06:07:37 +0000 (06:07 +0000)]
Add support for new \pep, \seepep, excclassdesc markup.
Update processing of module synopsis tables (found at the beginning of
most chapters of the library reference) to reflect changes in the
processing pattern of recent versions LaTeX2HMTL. Requires most
recent change to SynopsisTable.pm.
Fred Drake [Sat, 9 Sep 2000 03:30:34 +0000 (03:30 +0000)]
Improve a couple of references to the language reference, making them
hyperlinks to relevant sections.
Clarify the conditions under which the "softspace" attribute of file-like
objects can "just work" (with relation to overriding of attribute access
in user-defined classes).
Fred Drake [Sat, 9 Sep 2000 03:25:11 +0000 (03:25 +0000)]
Move the "See also" section to a location more consistent with other
module sections. Properly mark the name of the module in the content
of the reference there.
Add missing Py_PROTO macro for backward compatibility with old extensions
(sources) which may still use it and now fail to compile.
Reported by M-A Lemburg. Closes [ Bug #113576 ].
Fred Drake [Thu, 7 Sep 2000 18:55:08 +0000 (18:55 +0000)]
\file is not allowed in section titles -- converting to PDF fails due to
weird macro-expansion issues. A better solution may be available in the
future, but this will do for now.
Add an index entry. More should probably be added as well.
Thomas Heller [Thu, 7 Sep 2000 15:59:22 +0000 (15:59 +0000)]
Changes:
distutils/command/bdist_wininst.py:
- the windows installer is again able to compile after installing
the files. Note: The default has changed, the packager has to
give --no-target-compile/--no-target-optimize to NOT compile
on the target system. (Another note: install_lib's --compile
--optimize options have the same semantics to switch off
the compilation. Shouldn't the names change?)
- All references to specific python versions are gone.
- A small bug:
raise DistutilsPlatformError ("...")
instead of
raise DistutilsPlatformError, ("...")
- When bdist_wininst creates an installer for one specific python
version, this is reflected in the name:
Distutils-0.9.2.win32-py15.exe instead of
Distutils-0.9.2.win32.exe
- bdist_wininst, when run as script, reads the wininst.exe file
and rewrites itself. Previously this was done by hand.
misc/install.c
- All the changes needed for compilation
- Deleted a lot of debug/dead code
Tim Peters [Thu, 7 Sep 2000 08:34:01 +0000 (08:34 +0000)]
Windows installer, reflecting changes that went into a replacement 2.0b1
.exe that will show up on PythonLabs.com later today:
Include the Lib\xml\ package (directory + subdirectories).
Include the Lib\lib-old\ directory.
Include the Lib\test\*.xml test cases (well, just one now).
Remove the redundant install of Lib\*.py (looks like a stray duplicate
line that's been there a long time). Because of this, the new
installer is a little smaller despite having more stuff in it.