]> granicus.if.org Git - python/log
python
24 years agoThe _PyTuple_Resize() last_is_sticky flag must now always be false.
Neil Schemenauer [Thu, 5 Oct 2000 19:38:24 +0000 (19:38 +0000)]
The _PyTuple_Resize() last_is_sticky flag must now always be false.

24 years agoSimplify _PyTuple_Resize by not using the tuple free list and dropping
Neil Schemenauer [Thu, 5 Oct 2000 19:36:49 +0000 (19:36 +0000)]
Simplify _PyTuple_Resize by not using the tuple free list and dropping
support for the last_is_sticky flag.  A few hard to find bugs may be
fixed by this patch since the old code was buggy.

24 years agoSF "bug" 115973: patches from Norman Vine so that shared libraries and
Tim Peters [Thu, 5 Oct 2000 19:24:26 +0000 (19:24 +0000)]
SF "bug" 115973:  patches from Norman Vine so that shared libraries and
Tkinter work under Cygwin.  Accepted on faith & reasonableness.

24 years agotranslation(): Minor optimization patch which avoids instantiating the
Barry Warsaw [Thu, 5 Oct 2000 18:48:12 +0000 (18:48 +0000)]
translation(): Minor optimization patch which avoids instantiating the
default value's instance unless it's absolutely necessary.

24 years agoChange all occurances of
Barry Warsaw [Thu, 5 Oct 2000 18:45:53 +0000 (18:45 +0000)]
Change all occurances of

test -d "$directory"

to

test ! -z "directory" -a -d "directory"

Apparently, on SunOS 4.1.4_JL (and other?) OSes, -d on an empty string
always returns true.  This closes SF bug #115392.

24 years ago[ Patch #101730 ] Add initial static support for Darwin/MacOSX.
Guido van Rossum [Thu, 5 Oct 2000 18:00:06 +0000 (18:00 +0000)]
[ Patch #101730 ] Add initial static support for Darwin/MacOSX.
By D.K. Wolfe.

24 years agoAdded Py_FPROTO macro which was available in Python 1.5.x and below.
Marc-André Lemburg [Thu, 5 Oct 2000 17:25:45 +0000 (17:25 +0000)]
Added Py_FPROTO macro which was available in Python 1.5.x and below.
This should not be used for new code, but will probably make porting
old extensions to 2.0 a lot easier.

Also see Bug #116011.

24 years agoFix Bug #115907: encode '=' as '=3D' and not '=='
Jeremy Hylton [Thu, 5 Oct 2000 17:24:33 +0000 (17:24 +0000)]
Fix Bug #115907: encode '=' as '=3D' and not '=='

24 years agoDocument the lookbehind assertions (closing bug#115119)
Andrew M. Kuchling [Thu, 5 Oct 2000 15:22:28 +0000 (15:22 +0000)]
Document the lookbehind assertions (closing bug#115119)

24 years agoFix for SF bug #115987: PyInstance_HalfBinOp does not initialize the
Thomas Wouters [Thu, 5 Oct 2000 12:43:25 +0000 (12:43 +0000)]
Fix for SF bug #115987: PyInstance_HalfBinOp does not initialize the
result-object-pointer that is passed in, when an exception occurs during
coercion. The pointer has to be explicitly initialized in the caller to avoid
putting trash on the Python stack.

24 years agoDocument expand() method of MatchObjects
Andrew M. Kuchling [Thu, 5 Oct 2000 12:35:29 +0000 (12:35 +0000)]
Document expand() method of MatchObjects

24 years agoDetect conflicting Python DLL on module import under Windows - as per [ Patch #101676 ]
Mark Hammond [Thu, 5 Oct 2000 10:54:45 +0000 (10:54 +0000)]
Detect conflicting Python DLL on module import under Windows - as per [ Patch #101676 ]

24 years agoBetter add at least a short docstring to the module!
Fred Drake [Thu, 5 Oct 2000 05:20:55 +0000 (05:20 +0000)]
Better add at least a short docstring to the module!

24 years agoAdd a link to the new acks.html file.
Fred Drake [Thu, 5 Oct 2000 05:17:29 +0000 (05:17 +0000)]
Add a link to the new acks.html file.

24 years agoAdd rules for generating the acks.html file at the top of the document tree.
Fred Drake [Thu, 5 Oct 2000 05:16:56 +0000 (05:16 +0000)]
Add rules for generating the acks.html file at the top of the document tree.

24 years agoIgnore the acks.html file, since it is generated.
Fred Drake [Thu, 5 Oct 2000 05:16:12 +0000 (05:16 +0000)]
Ignore the acks.html file, since it is generated.

24 years agoNew script to convert the ACKS file to a nicely formatted HTML file.
Fred Drake [Thu, 5 Oct 2000 05:15:29 +0000 (05:15 +0000)]
New script to convert the ACKS file to a nicely formatted HTML file.
Uses the new support module.

24 years agoUse the new support module instead of including all the getopt
Fred Drake [Thu, 5 Oct 2000 05:14:26 +0000 (05:14 +0000)]
Use the new support module instead of including all the getopt
processing and style information directly.

24 years agoFactor out some of the presentation and shared code from mkmodindex and
Fred Drake [Thu, 5 Oct 2000 05:11:57 +0000 (05:11 +0000)]
Factor out some of the presentation and shared code from mkmodindex and
a mkackshtml (not yet checked in).

24 years agoList of acknowledgements culled from CVS checkin logs and memory.
Fred Drake [Thu, 5 Oct 2000 04:05:30 +0000 (04:05 +0000)]
List of acknowledgements culled from CVS checkin logs and memory.
The documentation ACKS list will be maintained separately from the
CPython ACKS list.

24 years agoNew tool for normalizing indentation of .py files.
Tim Peters [Thu, 5 Oct 2000 03:48:38 +0000 (03:48 +0000)]
New tool for normalizing indentation of .py files.

24 years agoUpdate for next planned release.
Fred Drake [Thu, 5 Oct 2000 03:24:00 +0000 (03:24 +0000)]
Update for next planned release.

24 years agoMove LONG_BIT from intobject.c to pyport.h. #error if it's already been
Tim Peters [Thu, 5 Oct 2000 01:42:25 +0000 (01:42 +0000)]
Move LONG_BIT from intobject.c to pyport.h.  #error if it's already been
#define'd to an unreasonable value (several recent gcc systems have
misdefined it, causing bogus overflows in integer multiplication).  Nuke
CHAR_BIT entirely.

24 years agoEnable the binascii module for Win64. It builds and passes the test suite.
Trent Mick [Wed, 4 Oct 2000 20:57:29 +0000 (20:57 +0000)]
Enable the binascii module for Win64. It builds and passes the test suite.
(I had explicitly disabled it a while ago, possibly unecessarily, along with
rgbimg, audioop, and imageop, which are advertised as "not for 64-bit
platforms.)

24 years agoFix for test_class.py on Win64. id(self), which on Win64 returns a
Trent Mick [Wed, 4 Oct 2000 17:50:59 +0000 (17:50 +0000)]
Fix for test_class.py on Win64. id(self), which on Win64 returns a
PyLong, was used for the return value of a class __hash__ method, which
*must* return a PyInt. Solution: hash() the id(self) value.

24 years ago- update Neil's email address
Neil Schemenauer [Wed, 4 Oct 2000 16:34:09 +0000 (16:34 +0000)]
- update Neil's email address

24 years ago- do not start collection during processing of an exception
Neil Schemenauer [Wed, 4 Oct 2000 16:25:07 +0000 (16:25 +0000)]
- do not start collection during processing of an exception

24 years ago- Fix a GC bug caused by PyDict_New() failing.
Neil Schemenauer [Wed, 4 Oct 2000 16:22:26 +0000 (16:22 +0000)]
- Fix a GC bug caused by PyDict_New() failing.

24 years ago- fix a GC bug caused by malloc() failing
Neil Schemenauer [Wed, 4 Oct 2000 16:20:41 +0000 (16:20 +0000)]
- fix a GC bug caused by malloc() failing

24 years agoAdded deprecation notices to atof(), atoi(), and atol(), recommending
Fred Drake [Wed, 4 Oct 2000 13:59:52 +0000 (13:59 +0000)]
Added deprecation notices to atof(), atoi(), and atol(), recommending
use of the float(), int(), and long() built-ins instead.

Fixed minor markup nit elsewhere (use of \optional).

24 years agoAdded \versionchanged comment to os.popen() noting that it was unreliable
Fred Drake [Wed, 4 Oct 2000 13:57:27 +0000 (13:57 +0000)]
Added \versionchanged comment to os.popen() noting that it was unreliable
in earlier versions of Python; this is useful information for people
interested in writing code that is portable across Python versions.

Suggested by Peter Funk <pf@artcom-gmbh.de>.

24 years agoRemove styling information that conflicts with or duplicates the stylesheet;
Fred Drake [Wed, 4 Oct 2000 13:39:24 +0000 (13:39 +0000)]
Remove styling information that conflicts with or duplicates the stylesheet;
different browsers resolve the conflicts differently, and the "proper"
resolution is not what we actually want.

Reported by Peter Funk <pf@artcom-gmbh.de>.

24 years agoRewrites to section on new development process, after Usenet discussion
Andrew M. Kuchling [Wed, 4 Oct 2000 12:40:44 +0000 (12:40 +0000)]
Rewrites to section on new development process, after Usenet discussion
    of the text

24 years agoUse \obindex{...} instead of \indexii{...}{type} in many places; this is
Fred Drake [Wed, 4 Oct 2000 04:21:19 +0000 (04:21 +0000)]
Use \obindex{...} instead of \indexii{...}{type} in many places; this is
more consistent with other index entries in the documentation.

24 years agotest_popen2 broke on Windows shortly after 2.0b2 was released. Fixed it.
Tim Peters [Tue, 3 Oct 2000 23:07:13 +0000 (23:07 +0000)]
test_popen2 broke on Windows shortly after 2.0b2 was released.  Fixed it.

24 years agoSupport non-namespace elements in *ElementNS of XMLGenerator.
Martin v. Löwis [Tue, 3 Oct 2000 22:35:29 +0000 (22:35 +0000)]
Support non-namespace elements in *ElementNS of XMLGenerator.

24 years agoPreliminary tool to troll through the CVS logs and LaTeX sources for
Fred Drake [Tue, 3 Oct 2000 22:10:25 +0000 (22:10 +0000)]
Preliminary tool to troll through the CVS logs and LaTeX sources for
the names of people that should be in the ACKS file.

This relies on some personal code that is not yet available, but should
be by the time we release 2.0c1.

24 years ago_PyUnicode_Fini(): Initialize the local freelist walking variable `u'
Barry Warsaw [Tue, 3 Oct 2000 20:45:26 +0000 (20:45 +0000)]
_PyUnicode_Fini(): Initialize the local freelist walking variable `u'
after unicode_empty has been freed, otherwise it might not point to
the real start of the unicode_freelist.  Final closure for SF bug
#110681, Jitterbug PR#398.

24 years agoAccept keyword arguments for (most) pattern and match object
Fredrik Lundh [Tue, 3 Oct 2000 20:43:34 +0000 (20:43 +0000)]
Accept keyword arguments for (most) pattern and match object
methods.  Closes buglet #115845.

24 years agoRecompile pattern if (?x) flag was found inside the pattern during the
Fredrik Lundh [Tue, 3 Oct 2000 19:22:26 +0000 (19:22 +0000)]
Recompile pattern if (?x) flag was found inside the pattern during the
first scan.  Closes bug #115040.

24 years agoIn _PyUnicode_Fini(), decref unicode_empty before tearng down the free
Guido van Rossum [Tue, 3 Oct 2000 18:09:04 +0000 (18:09 +0000)]
In _PyUnicode_Fini(), decref unicode_empty before tearng down the free
list.  Discovered by Barry, fix approved by MAL.

24 years agoRemove old note that os.popen() on Windows is unreliable; this is no
Fred Drake [Tue, 3 Oct 2000 17:14:27 +0000 (17:14 +0000)]
Remove old note that os.popen() on Windows is unreliable; this is no
longer true.

24 years agoFix a few problems with the _Printer class and the license variable.
Guido van Rossum [Tue, 3 Oct 2000 17:11:37 +0000 (17:11 +0000)]
Fix a few problems with the _Printer class and the license variable.

1. repr(license) will no longer print to stdout and read from stdin;
you have to use license().  `license` is a short message explaining
this.

2. Use lazy initialization so that startup isn't slowed down by the
search for the LICENSE file.

3. repr(license) actually returns the desired string, rather than
printing to stdout and returning ''.  (Why didn't we think of this
before?)

4. Use the pythonlabs license URL as the license fallback instead of
the CNRI license handle.

24 years agoClarify that isatty is only guaranteed to return true for slave ends of
Thomas Wouters [Tue, 3 Oct 2000 16:54:24 +0000 (16:54 +0000)]
Clarify that isatty is only guaranteed to return true for slave ends of
terminals, not the master end (though it does, on most systems.)

24 years agoOn some systems (like Solaris), the master end of a tty/pty pair is
Thomas Wouters [Tue, 3 Oct 2000 16:51:08 +0000 (16:51 +0000)]
On some systems (like Solaris), the master end of a tty/pty pair is
apparently not considered a terminal, and so isatty(3) returns false. So we
skip the test for ttyness of the master side and just check the slave side,
which should really be a terminal.

24 years agoBump the release number for the upcoming candidate.
Fred Drake [Tue, 3 Oct 2000 16:50:48 +0000 (16:50 +0000)]
Bump the release number for the upcoming candidate.

24 years agoFixed negative lookahead/lookbehind. Closes bug #115618.
Fredrik Lundh [Tue, 3 Oct 2000 16:29:23 +0000 (16:29 +0000)]
Fixed negative lookahead/lookbehind.  Closes bug #115618.

24 years ago_PyImport_Fini(): Closed small memory leak when an embedded app calls
Barry Warsaw [Tue, 3 Oct 2000 16:02:05 +0000 (16:02 +0000)]
_PyImport_Fini(): Closed small memory leak when an embedded app calls
Py_Initialize()/Py_Finalize() in a loop.  _PyImport_Filetab needed to
be deallocated.  Partial closure of SF #110681, Jitterbug PR#398.

24 years agoJim Ahlstrom sent a few corrections to my changes. (Thanks!)
Fred Drake [Tue, 3 Oct 2000 15:16:31 +0000 (15:16 +0000)]
Jim Ahlstrom sent a few corrections to my changes.  (Thanks!)

24 years agoUndo Ping's change.
Guido van Rossum [Tue, 3 Oct 2000 13:51:09 +0000 (13:51 +0000)]
Undo Ping's change.

CGI scripts should *not* use /usr/bin/env, since on systems that don't
come standard with Python installed, Python isn't on the default $PATH.

Too bad that this breaks on Linux, where Python is in /usr/bin which
is on the default path -- the point is that you must manually edit
your CGI scripts when you install them.

24 years agoChange first line to #!/usr/bin/env python (really just to test check-in).
Ka-Ping Yee [Tue, 3 Oct 2000 08:32:00 +0000 (08:32 +0000)]
Change first line to #!/usr/bin/env python (really just to test check-in).

24 years ago$OFF_SITE_LINK_ICON: Don't define here; simply defining it overrides a
Fred Drake [Tue, 3 Oct 2000 06:05:25 +0000 (06:05 +0000)]
$OFF_SITE_LINK_ICON:  Don't define here; simply defining it overrides a
        definition provided by previously loaded configuration code, and
        testing whether it's defined isn't needed since the default was
        false anyway.

get_link_icon():  Add support for $OFF_SITE_LINK_ICON_HEIGHT and
        $OFF_SITE_LINK_ICON_WIDTH, giving the dimensions of the icon
        being used.  This can make for faster page display.  Both are
        optional.

make_my_titlegraphic():  Fix insertion of the off-site icon link.

do_env_funcdesc():  Remove debugging print.

handle_rfclike_reference():  Remove trailing colon from first line; it
        doesn't really make sense and looks bad if we add an icon to
        mark off-site links.

24 years agoReplace minimal \seetext references with better annotated \seerfc
Fred Drake [Tue, 3 Oct 2000 05:56:55 +0000 (05:56 +0000)]
Replace minimal \seetext references with better annotated \seerfc
references, telling the reader more about what to expect at the other end
of the links.

24 years agoBump version to 1.0.
Greg Ward [Tue, 3 Oct 2000 03:48:43 +0000 (03:48 +0000)]
Bump version to 1.0.

24 years agoRemove some debugging prints.
Greg Ward [Tue, 3 Oct 2000 03:32:37 +0000 (03:32 +0000)]
Remove some debugging prints.

24 years agoFixed so --no-compile is a negative alias for --compile.
Greg Ward [Tue, 3 Oct 2000 03:31:52 +0000 (03:31 +0000)]
Fixed so --no-compile is a negative alias for --compile.

24 years agoAdded a long-winded comment (and commented-out comment to go with out)
Greg Ward [Tue, 3 Oct 2000 03:31:05 +0000 (03:31 +0000)]
Added a long-winded comment (and commented-out comment to go with out)
about how it would be nice to write absolute paths to the temporary
byte-compilation script, but this doesn't work because it screws up the
trailing-slash trickery done to 'prefix' in build_py's 'byte_compile()'
method.

Fixed to use 'execute()' instead of 'os.remove()' to remove the temporary
script: now it doesn't blow up in dry-run mode!

24 years agoProvide a clearer error message when urlopen fails because of an
Jeremy Hylton [Mon, 2 Oct 2000 23:04:02 +0000 (23:04 +0000)]
Provide a clearer error message when urlopen fails because of an
invalid proxy setting.

Minor change to call of unknown_url; always pass data argument
explicitly since data defaults to None.

PEP 42: Add as a feature that urllib handle proxy setting that contain
only the host and port of the proxy.

24 years agoAdded some comments on the interaction of reload() and extension modules.
Fred Drake [Mon, 2 Oct 2000 22:38:09 +0000 (22:38 +0000)]
Added some comments on the interaction of reload() and extension modules.
Based on comments from Chris Barker <cbarker@jps.net>.

24 years agoAdd deprecation note since the XML support is shaping up.
Fred Drake [Mon, 2 Oct 2000 22:14:09 +0000 (22:14 +0000)]
Add deprecation note since the XML support is shaping up.

24 years agoRemove redundent information from a docstring.
Fred Drake [Mon, 2 Oct 2000 22:11:47 +0000 (22:11 +0000)]
Remove redundent information from a docstring.

24 years agoMinor change to attributes so that the stylesheets can have better control.
Fred Drake [Mon, 2 Oct 2000 21:26:28 +0000 (21:26 +0000)]
Minor change to attributes so that the stylesheets can have better control.

24 years agoRemove comment about -lucb for the mmap module -- the module has been
Fred Drake [Mon, 2 Oct 2000 21:20:22 +0000 (21:20 +0000)]
Remove comment about -lucb for the mmap module -- the module has been
changed so that this is no longer needed on the only platform this is
known to have been needed on.

Fixed on indentation-related consistency nit.

24 years agoDelay import of py_compile until needed, since is is only used by the
Fred Drake [Mon, 2 Oct 2000 21:14:52 +0000 (21:14 +0000)]
Delay import of py_compile until needed, since is is only used by the
PyZipFile class.

End sentences in docstrings with periods.

Reformat docstrings to be more similar to those of other modules.

24 years agoSubstantially revised documentation for the zipfile module, partially based
Fred Drake [Mon, 2 Oct 2000 20:56:30 +0000 (20:56 +0000)]
Substantially revised documentation for the zipfile module, partially based
on revised text from Jim Ahlstrom <jim@interet.com>.

This closes SourceForge bug #115681.

24 years agoMinor stylesheet nit.
Fred Drake [Mon, 2 Oct 2000 17:36:27 +0000 (17:36 +0000)]
Minor stylesheet nit.

24 years agoSupporting rl_library_version is more trouble than it's worth --
Guido van Rossum [Mon, 2 Oct 2000 15:53:08 +0000 (15:53 +0000)]
Supporting rl_library_version is more trouble than it's worth --
readline doesn't have it before readline 2.2 and there's no
compile-time way to find out which readline version is in use.

Sigh.  GNU readline sucks.

24 years agoAdded Daniel Dittmar, for helping get the configuration working for
Fred Drake [Mon, 2 Oct 2000 14:52:31 +0000 (14:52 +0000)]
Added Daniel Dittmar, for helping get the configuration working for
Reliant UNIX.

24 years agomake_icon_filename(): Convenience function to turn a partial filename
Fred Drake [Mon, 2 Oct 2000 14:43:38 +0000 (14:43 +0000)]
make_icon_filename():  Convenience function to turn a partial filename
                       into a usable filename using $ICONSERVER and
                       $IMAGE_TYPE as needed.

get_link_icon():  Function to examine a URL and return the string to use
                  to insert an icon if the link points off-site, if needed
                  and $OFF_SITE_LINK_ICON is set.

Adjusted appropriate places to use these new functions.

24 years agotypo
Jeremy Hylton [Mon, 2 Oct 2000 13:43:33 +0000 (13:43 +0000)]
typo

24 years agoFix a bug in stack overflow error handling. This fixes half of Bug
Guido van Rossum [Mon, 2 Oct 2000 10:21:59 +0000 (10:21 +0000)]
Fix a bug in stack overflow error handling.  This fixes half of Bug
#115555.

The error from s_push() on stack overflow was -1, which was passed
through unchanged by push(), but not tested for by push()'s caller --
which only expected positive error codes.  Fixed by changing s_push()
to return E_NOMEM on stack overflow.  (Not quite the proper error code
either, but I can't be bothered adding a new E_STACKOVERFLOW error
code in all the right places.)

24 years agoMinor usage fix.
Fred Drake [Mon, 2 Oct 2000 03:42:43 +0000 (03:42 +0000)]
Minor usage fix.
Add a note that some way of reliably detecting the use of KDE would be
really nice.

24 years agoDo not set Konquerer to be the default browser if $KDEDIR is set -- some
Fred Drake [Mon, 2 Oct 2000 03:40:51 +0000 (03:40 +0000)]
Do not set Konquerer to be the default browser if $KDEDIR is set -- some
Linux distributions which provide both KDE and Gnome set this environment
variable even if the user is not using KDE.  We do *not* want to start
Konquerer if KDE is not running unless the user actually tells us to!

24 years agoAdd documentation and warnings for the isCallable(), isMappingType(),
Fred Drake [Mon, 2 Oct 2000 03:36:18 +0000 (03:36 +0000)]
Add documentation and warnings for the isCallable(), isMappingType(),
isNumberType(), and isSequenceType() functions.

This closes SourceForge bug #115789.

24 years agoTypo fix.
Greg Ward [Mon, 2 Oct 2000 02:25:51 +0000 (02:25 +0000)]
Typo fix.

24 years agoAdded the ability to do byte-compilation at build time, currently off
Greg Ward [Mon, 2 Oct 2000 02:19:04 +0000 (02:19 +0000)]
Added the ability to do byte-compilation at build time, currently off
by default (since compiling at install time works just fine).  Details:
  - added 'compile' and 'optimize' options
  - added 'byte_compile()' method
  - changed 'get_outputs()' so it includes bytecode files
A lot of the code added is very similar to code in install_lib.py;
would be nice to factor it out further.

24 years agoAdded --compile, --optimize options so users have an easy way to
Greg Ward [Mon, 2 Oct 2000 02:16:04 +0000 (02:16 +0000)]
Added --compile, --optimize options so users have an easy way to
instruct the "install_lib" command from the command-line.

24 years agoFinished the overhaul of byte-compilation options: there's now a 6-way
Greg Ward [Mon, 2 Oct 2000 02:15:08 +0000 (02:15 +0000)]
Finished the overhaul of byte-compilation options: there's now a 6-way
choice between (compile, no-compile) * (optimize=0, optimize=1,
optimize=2).  Details:
  - added --no-compile option to complement --compile, which has
    been there for ages
  - changed --optimize (which never worked) to a value option, which
    expects 0, 1, or 2
  - renamed 'bytecompile()' method to 'byte_compile()', and beefed
    it up to handle both 'compile' and 'optimize' options
  - fix '_bytecode_filenames()' to respect the new options

24 years agoRemove the temporary byte-compilation script when we're done with it.
Greg Ward [Mon, 2 Oct 2000 02:09:55 +0000 (02:09 +0000)]
Remove the temporary byte-compilation script when we're done with it.

24 years agoFrom 'run()', only call 'bytecompile()' if we actually have
Greg Ward [Sun, 1 Oct 2000 23:50:13 +0000 (23:50 +0000)]
From 'run()', only call 'bytecompile()' if we actually have
pure Python modules to compile.

24 years agoTweaked 'byte_compile()' so it silently skips non-Python files, rather than
Greg Ward [Sun, 1 Oct 2000 23:49:30 +0000 (23:49 +0000)]
Tweaked 'byte_compile()' so it silently skips non-Python files, rather than
blowing up.

24 years agoDon't rename Tkinter to Tk; closes bug 115714
Martin v. Löwis [Sun, 1 Oct 2000 17:52:01 +0000 (17:52 +0000)]
Don't rename Tkinter to Tk; closes bug 115714
Subclass Error from Exception.

24 years agomy_getpagesize(): New function; returns the size of a page of memory.
Fred Drake [Sun, 1 Oct 2000 17:50:46 +0000 (17:50 +0000)]
my_getpagesize():  New function; returns the size of a page of memory.
                   Versions are defined for Windows and Unix; the Unix
                   flavor uses sysconf() to get the page size; this avoids
                   the use of getpagesize(), which is deprecated and
                   requires an additional library on some platforms
                   (specifically, Reliant UNIX).

This partially closes SourceForge bug #113797.

24 years agoAdded a zip() test where one of the arguments is an instance whose
Barry Warsaw [Sun, 1 Oct 2000 04:28:43 +0000 (04:28 +0000)]
Added a zip() test where one of the arguments is an instance whose
class has no __getitem__().  This raises an AttributeError.

24 years agoAdd missing "s" from format string.
Fred Drake [Sat, 30 Sep 2000 23:59:04 +0000 (23:59 +0000)]
Add missing "s" from format string.
This closes SourceForge patch #101714.

24 years agoAdded skeletal "Building Extensions: Tips and Tricks" section. This
Greg Ward [Sat, 30 Sep 2000 21:06:40 +0000 (21:06 +0000)]
Added skeletal "Building Extensions: Tips and Tricks" section.  This
is where all the FAQs about extension-building will be answered.

24 years agoReduced the 'bytecompile()' method to a one-line wrapper around
Greg Ward [Sat, 30 Sep 2000 20:39:09 +0000 (20:39 +0000)]
Reduced the 'bytecompile()' method to a one-line wrapper around
'util.byte_compile()'.  Currently just reproduces the existing functionality
-- doesn't use any of the fancy features in the new 'byte_compile()'.

24 years agoAdded 'byte_compile(): an all-singing, all-dancing wrapper around the
Greg Ward [Sat, 30 Sep 2000 20:37:56 +0000 (20:37 +0000)]
Added 'byte_compile(): an all-singing, all-dancing wrapper around the
standard 'py_compile.compile()' function.  Laundry list of features:
  - handles standard Distutils 'force', 'verbose', 'dry_run' flags
  - handles various levels of optimization: can compile directly in
    this interpreter process, or write a temporary script that is
    then executed by a new interpreter with the appropriate flags
  - can rewrite the source filename by stripping an optional prefix
    and preprending an optional base dir.

24 years agoVarious docstring tweaks.
Greg Ward [Sat, 30 Sep 2000 18:49:14 +0000 (18:49 +0000)]
Various docstring tweaks.
Fixed 'subst_vars()' so it actually blows up like the docstring claims
  (and fixed the docstring not to claim it handles ${var}, which it
  doesn't).

24 years agoReformat docstrings.
Greg Ward [Sat, 30 Sep 2000 18:40:42 +0000 (18:40 +0000)]
Reformat docstrings.

24 years agoStandardized whitespace around function calls.
Greg Ward [Sat, 30 Sep 2000 18:27:54 +0000 (18:27 +0000)]
Standardized whitespace around function calls.

24 years agoAndrew Kuchling: changed so the '_path_created' dictionary is keyed on
Greg Ward [Sat, 30 Sep 2000 17:47:17 +0000 (17:47 +0000)]
Andrew Kuchling: changed so the '_path_created' dictionary is keyed on
absolute pathnames; this lets it keep working in the face of chdir'ing
around.

24 years agoFixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None.
Greg Ward [Sat, 30 Sep 2000 17:35:26 +0000 (17:35 +0000)]
Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None.

24 years agoExpect a tuple (dest_name, copied) from 'copy_file()'.
Greg Ward [Sat, 30 Sep 2000 17:34:50 +0000 (17:34 +0000)]
Expect a tuple (dest_name, copied) from 'copy_file()'.

24 years agoFix header file usage so that NULL is defined. NULL is needed by
Marc-André Lemburg [Sat, 30 Sep 2000 17:34:31 +0000 (17:34 +0000)]
Fix header file usage so that NULL is defined. NULL is needed by
unicodedata_db.h.

24 years agoChanged 'build_module()' so it returns the result of 'copy_file()'
Greg Ward [Sat, 30 Sep 2000 17:33:05 +0000 (17:33 +0000)]
Changed 'build_module()' so it returns the result of 'copy_file()'
on the module file -- could be useful for subclasses overriding it.

24 years agoChanged 'copy_file()' so it returns a tuple (dest_name, copied) -- hopefully,
Greg Ward [Sat, 30 Sep 2000 17:29:35 +0000 (17:29 +0000)]
Changed 'copy_file()' so it returns a tuple (dest_name, copied) -- hopefully,
this will please everyone (as if that's possible).

24 years agoIn 'get_platform()', handle so-called POSIX systems that don't have
Greg Ward [Sat, 30 Sep 2000 17:09:39 +0000 (17:09 +0000)]
In 'get_platform()', handle so-called POSIX systems that don't have
'uname()' -- specifically NeXTSTEP.

24 years agoChanged to use the 'sub-commands' machinery:
Greg Ward [Sat, 30 Sep 2000 17:08:12 +0000 (17:08 +0000)]
Changed to use the 'sub-commands' machinery:
  - added 'sub_commands' class attr
  - added 'has_*()' predicates referenced by the sub-command list
  - rewrote 'run()' so it's a trivial loop over relevant sub-commands

24 years agoMoved some things around for better organization.
Greg Ward [Sat, 30 Sep 2000 17:05:37 +0000 (17:05 +0000)]
Moved some things around for better organization.