]> granicus.if.org Git - python/log
python
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.

24 years agoFixed spelling of module; closes bug 115712.
Martin v. Löwis [Sat, 30 Sep 2000 17:04:40 +0000 (17:04 +0000)]
Fixed spelling of module; closes bug 115712.

24 years agoAdd mimetools testcase.
Martin v. Löwis [Sat, 30 Sep 2000 17:03:19 +0000 (17:03 +0000)]
Add mimetools testcase.

24 years agoReturn after writing 7bit or 8bit encodings. Closes bug 115712
Martin v. Löwis [Sat, 30 Sep 2000 16:52:45 +0000 (16:52 +0000)]
Return after writing 7bit or 8bit encodings. Closes bug 115712

24 years agoMention in the module's doc string that other functions of the socket API
Martin v. Löwis [Sat, 30 Sep 2000 11:34:30 +0000 (11:34 +0000)]
Mention in the module's doc string that other functions of the socket API
appear as methods on socket objects.

24 years agoReplace to XXX notes to add references with real references.
Fred Drake [Sat, 30 Sep 2000 00:11:45 +0000 (00:11 +0000)]
Replace to XXX notes to add references with real references.

24 years agoAlways use the same name for the exception defined in this module!
Fred Drake [Fri, 29 Sep 2000 20:44:48 +0000 (20:44 +0000)]
Always use the same name for the exception defined in this module!
Error reported via email by Pete Shinners <pete@visionart.com>.

Fixed some indentation inconsistencies.

24 years agoPyModule_AddStringConstant(): Make this static since it isn't used
Fred Drake [Fri, 29 Sep 2000 19:23:29 +0000 (19:23 +0000)]
PyModule_AddStringConstant():  Make this static since it isn't used
                               elsewhere in 1.5.2.

24 years agoRemove unused VERSION #define.
Martin v. Löwis [Fri, 29 Sep 2000 19:05:48 +0000 (19:05 +0000)]
Remove unused VERSION #define.
Add PyModule_AddStringConstant and PyModule_AddObject if version <2.0,
to allow to share this file with PyXML.

24 years agoUse string functions instead of methods to allow sharing this module with PyXML
Martin v. Löwis [Fri, 29 Sep 2000 19:00:40 +0000 (19:00 +0000)]
Use string functions instead of methods to allow sharing this module with PyXML

24 years agoRemove dependency from saxutils when loading xmlreader
Martin v. Löwis [Fri, 29 Sep 2000 18:59:50 +0000 (18:59 +0000)]
Remove dependency from saxutils when loading xmlreader

24 years agoCapitalized an "if" that should have been -- noted by Grant Griffin
Fred Drake [Fri, 29 Sep 2000 17:54:40 +0000 (17:54 +0000)]
Capitalized an "if" that should have been -- noted by Grant Griffin
<grant.griffin@honeywell.com>.

24 years agoAdd a paragraph about an optimization bug in SGI compilers which affects
Fred Drake [Fri, 29 Sep 2000 17:45:05 +0000 (17:45 +0000)]
Add a paragraph about an optimization bug in SGI compilers which affects
complex objects, and explain how to build so that Objects/complexobject.c
is compiled without optimization.

Closing SourceForge bug #110695 as "Won't Fix".

24 years agoReversely --> Conversely
Fred Drake [Fri, 29 Sep 2000 17:31:54 +0000 (17:31 +0000)]
Reversely --> Conversely

This closes SourceForge bug #115673.

24 years agoAdded a missing "is" -- noted by Grant Griffin
Fred Drake [Fri, 29 Sep 2000 17:09:11 +0000 (17:09 +0000)]
Added a missing "is" -- noted by Grant Griffin
<grant.griffin@honeywell.com>.

24 years agoSpelling: internalization --> internationalization
Fred Drake [Fri, 29 Sep 2000 15:17:36 +0000 (15:17 +0000)]
Spelling:  internalization --> internationalization
Fixed displays of the interactive prompt in running text.
These close SourceForge bug #115658.

Also:

Updated discussion of tuple unpacking to reflect the general ability
to unpack any sequence type.  Explained that it is possible to create
tuples which contain mutable values, and noted in the dictionary
section that such tuples cannot be used as keys.

Noted that .pyc and .pyo files can be run directly when provided as
the script parameter to the interpreter, and slightly clarified
comments about using modules with only the byte compiled code.

Removed some XXX comments that are no longer relevant.
Removed commented-out paragraph about __private names being experimental.

Adjusted markup for consistency in some places.

24 years agoRemoved the extra_dirs and path_file metadata options.
Thomas Heller [Fri, 29 Sep 2000 11:36:55 +0000 (11:36 +0000)]
Removed the extra_dirs and path_file metadata options.
They are unneeded: All this stuff is already done by the
install command which is run by bdist_wininst.

One bug has been fixed:
The root of the fake install tree is install.install_purelib,
not install.install_lib!
They are different if the extra_path option is used in
the setup function.

Rebuild after the changes to wininst.exe.

24 years agoos.startfile() documentation, based on text from Tim Peters.
Fred Drake [Fri, 29 Sep 2000 04:15:19 +0000 (04:15 +0000)]
os.startfile() documentation, based on text from Tim Peters.

24 years agoThe 2.0b2 change to write .pyc files in exclusive mode (if possible)
Tim Peters [Fri, 29 Sep 2000 04:03:10 +0000 (04:03 +0000)]
The 2.0b2 change to write .pyc files in exclusive mode (if possible)
unintentionally caused them to get written in text mode under Windows.
As a result, when .pyc files were later read-- in binary mode --the
magic number was always wrong (note that .pyc magic numbers deliberately
include \r and \n characters, so this was "good" breakage, 100% across
all .pyc files, not random corruption in a subset).  Fixed that.

24 years agoUpdate list of extension modules that may be interesting to enable on
Fred Drake [Fri, 29 Sep 2000 00:30:05 +0000 (00:30 +0000)]
Update list of extension modules that may be interesting to enable on
most modern Unix flavors.

The age of this portion of the README was noted in SourceForge bug #115625.

24 years agoClarify that the Tk interface is not enabled by default when building
Fred Drake [Thu, 28 Sep 2000 23:28:30 +0000 (23:28 +0000)]
Clarify that the Tk interface is not enabled by default when building
from sources, not in general.

This closes SourceForge bug #115608.

24 years agoAdd #ifdef's for platforms that don't have the constants POLLRDNORM and
Andrew M. Kuchling [Thu, 28 Sep 2000 21:33:44 +0000 (21:33 +0000)]
Add #ifdef's for platforms that don't have the constants POLLRDNORM and
    friends.  (Modified version of patch #101682 from Neil Schemenauer)

24 years agoFix typo: config.stat --> config.status
Fred Drake [Thu, 28 Sep 2000 20:53:39 +0000 (20:53 +0000)]
Fix typo:  config.stat --> config.status