]> granicus.if.org Git - python/log
python
25 years agoAdded 'force' and 'quiet' (negative alias for 'verbose') to the
Greg Ward [Sun, 3 Oct 1999 21:02:48 +0000 (21:02 +0000)]
Added 'force' and 'quiet' (negative alias for 'verbose') to the
  global options table.
Every Command instance now has its own copies of the global options,
  which automatically fallback to the Distribution instance.  Changes:
  - initialize them in constructor
  - added '__getattr__()' to handle the fallback logic
  - changed every 'self.distribution.{verbose,dry_run}' in Command to
    'self.{verbose,dry_run}'.
  - filesystem utility methods ('copy_file()' et al) don't take 'update'
    parameter anymore -- instead we pass 'not force' to the underlying
    function as 'update'
Changed parsing of command line so that global options apply to all
  commands as well -- that's how (eg.) Command.verbose will be initialized.
Simplified 'make_file()' to use 'newer_group()' (from util module).
Deleted some cruft.
Some docstring tweaks.

25 years agoFixed 'mkpath()' to normalize the path right off the bat -- cleans up
Greg Ward [Sun, 3 Oct 1999 20:50:41 +0000 (20:50 +0000)]
Fixed 'mkpath()' to normalize the path right off the bat -- cleans up
  the code a bit and should make it work under Windows even with trailing
  backslash.
Fixed a couple of docstrings.
Added comment about 'make_file()' possibly being redundant and unnecessary.

25 years agoHacked to support the notion of "negative alias" options, to handle
Greg Ward [Sun, 3 Oct 1999 20:48:53 +0000 (20:48 +0000)]
Hacked to support the notion of "negative alias" options, to handle
-q/--quiet reasonably elegantly.

25 years agoCatch up with changes in 'gen_lib_options()':
Greg Ward [Sun, 3 Oct 1999 20:47:52 +0000 (20:47 +0000)]
Catch up with changes in 'gen_lib_options()':
  - change how we call it
  - added methods 'library_dir_option()', 'library_option()', and
    'find_library_file()' that it calls
Added 'force' flag; it's automatically "respected", because this class
  always rebuilds everything!  (Which it to say, "force=0" is not respected.)

25 years agoFixed order of link options: object files now precede library stuff.
Greg Ward [Sun, 3 Oct 1999 20:45:33 +0000 (20:45 +0000)]
Fixed order of link options: object files now precede library stuff.
Catch up with changes in 'gen_lib_options()':
  - change how we call it
  - added methods 'library_dir_option()', 'library_option()', and
    'find_library_file()' that it calls
Added 'force' flag and changed compile/link methods to respect it.

25 years agoSlight change to the meaning of the 'libraries' list: if a library name
Greg Ward [Sun, 3 Oct 1999 20:41:02 +0000 (20:41 +0000)]
Slight change to the meaning of the 'libraries' list: if a library name
  has a directory component, then we only search for the library in
  that one directory, ie. ignore the 'library_dirs' lists for that
  one library.
Changed calling convention to 'gen_lib_options()' again: now, it takes
  a CCompiler instance and calls methods on it instead of taking
  format strings.  Also implemented the new "library name" semantics
  using the 'find_library_file()' method in the CCompiler instance.
Added 'force' flag to CCompiler; added to constructor and 'new_compiler()'.
Added 'warn()' method.

25 years agoMark Hammond writes:
Guido van Rossum [Fri, 1 Oct 1999 14:29:17 +0000 (14:29 +0000)]
Mark Hammond writes:

Attached is a context diff to winsound.c that adds a Beep() function
to play a sound through the PC speaker.  Seems to make sense to have
this added, so I just went and did it!

25 years agoOptionally bracket all external declarations of init functions with "ifndef"s.
Jack Jansen [Fri, 1 Oct 1999 08:28:01 +0000 (08:28 +0000)]
Optionally bracket all external declarations of init functions with "ifndef"s.

25 years agovec_longjmp added to list of "forbidden" functions in .exp file.
Jack Jansen [Thu, 30 Sep 1999 19:48:49 +0000 (19:48 +0000)]
vec_longjmp added to list of "forbidden" functions in .exp file.

25 years agoCW Pro 5 projects.
Jack Jansen [Thu, 30 Sep 1999 19:47:33 +0000 (19:47 +0000)]
CW Pro 5 projects.

25 years agoPatches by Jack Jansen: new type OptionalInBuffer allows
Guido van Rossum [Thu, 30 Sep 1999 14:15:14 +0000 (14:15 +0000)]
Patches by Jack Jansen: new type OptionalInBuffer allows
passing either a string/input buffer or None.

25 years agoPatch by Jack Jansen to add with_ifdef option, which places #ifndef
Guido van Rossum [Thu, 30 Sep 1999 14:12:44 +0000 (14:12 +0000)]
Patch by Jack Jansen to add with_ifdef option, which places #ifndef
around external decls.

25 years agoAdded module "ce" to list of modules known not to exist on the mac.
Jack Jansen [Thu, 30 Sep 1999 11:21:24 +0000 (11:21 +0000)]
Added module "ce" to list of modules known not to exist on the mac.

25 years agoBigger buffer size for C profiler (if profiling is enabled).
Jack Jansen [Thu, 30 Sep 1999 11:20:11 +0000 (11:20 +0000)]
Bigger buffer size for C profiler (if profiling is enabled).

25 years agoOptimization: don't try to get a tabsize resource if we know the file
Jack Jansen [Thu, 30 Sep 1999 11:19:16 +0000 (11:19 +0000)]
Optimization: don't try to get a tabsize resource if we know the file
doesn't have one (stdin and such), OpenRF appears to be an expensive call.

25 years agoRegenerated, no significant diferences.
Jack Jansen [Thu, 30 Sep 1999 11:17:15 +0000 (11:17 +0000)]
Regenerated, no significant diferences.

25 years agoMake macglue.h C++ compatible.
Jack Jansen [Thu, 30 Sep 1999 11:14:49 +0000 (11:14 +0000)]
Make macglue.h C++ compatible.

25 years agoDistribution files for 1.5.1c1.
Jack Jansen [Thu, 30 Sep 1999 11:13:31 +0000 (11:13 +0000)]
Distribution files for 1.5.1c1.

25 years ago1.5.2c1 version.
Jack Jansen [Thu, 30 Sep 1999 11:12:13 +0000 (11:12 +0000)]
1.5.2c1 version.

25 years agoDuncan Grisby noted a typo in _DummyThread.
Guido van Rossum [Wed, 29 Sep 1999 15:26:52 +0000 (15:26 +0000)]
Duncan Grisby noted a typo in _DummyThread.

25 years agoAdded 'list_only' option (and modified 'run()' to respect it).
Greg Ward [Wed, 29 Sep 1999 13:14:27 +0000 (13:14 +0000)]
Added 'list_only' option (and modified 'run()' to respect it).

25 years agoAdded all documentation.
Greg Ward [Wed, 29 Sep 1999 13:03:32 +0000 (13:03 +0000)]
Added all documentation.
Slightly improved the code for dealing with newline on a comment line,
  and for stripping whitespace.

25 years agoNew command to generate source distribution based on a manifest file.
Greg Ward [Wed, 29 Sep 1999 12:50:13 +0000 (12:50 +0000)]
New command to generate source distribution based on a manifest file.

25 years agoAdded 'package' option.
Greg Ward [Wed, 29 Sep 1999 12:49:35 +0000 (12:49 +0000)]
Added 'package' option.
Catch up with renamed 'platdir' -> 'build_platlib' option in 'build'.
Don't call 'set_final_options()' in 'run()' anymore -- that's now
  guaranteed to be taken care of for us by the Distribution instance.
If 'include_dirs' is a string, split it on os.pathsep (this is half-
  hearted -- support for setting compile/link options on the command
  line is totally lame and probably won't work at all).
Added 'get_source_files()' for use by 'dist' command.
Added code to 'build_extensions()' to figure out the "def file" to use
  with MSVC++ and add it to the linker command line as an "extra_postarg".

25 years agoRenamed 'dir' option to be consistent with other commands.
Greg Ward [Wed, 29 Sep 1999 12:44:57 +0000 (12:44 +0000)]
Renamed 'dir' option to be consistent with other commands.
Don't call 'set_final_options()' in 'run()' anymore -- that's now
  guaranteed to be taken care of for us by the Distribution instance.
Rearranged to bit to allow outsiders (specifically, the 'dist' command)
  to find out what modules we would build:
  - 'find_modules()' renamed to 'find_package_modules()'
  - most of 'build_modules()' abstracted out to 'find_modules()'
  - added 'get_source_files()' (for the 'dist' command to use)
  - drastically simplified 'build_modules()' -- now just a wrapper around
    'find_modules()' and 'build_module()'

25 years agoRenamed many options to be consistent across commands.
Greg Ward [Wed, 29 Sep 1999 12:38:18 +0000 (12:38 +0000)]
Renamed many options to be consistent across commands.
Tweaked some help strings to be consistent with documentation.
Don't call 'set_final_options()' in 'run()' anymore -- that's now
  guaranteed to be taken care of for us by the Distribution instance.

25 years agoCatch up with latest changes in CCompiler:
Greg Ward [Wed, 29 Sep 1999 12:29:10 +0000 (12:29 +0000)]
Catch up with latest changes in CCompiler:
  - add 'extra_preargs' and 'extra_postargs' parameters (and use them!)
  - got rid of 'build_info' kludge parameter
  - added 'compiler_type' class attribute
  - respect reordered arguments to 'gen_lib_options()'
Also added 'output_dir' parameter (catching up with older change in
  CCompiler) -- BUT this is presently ignored by all methods!
Deleted some more docstrings redundant with CCompiler.
Dropped generated of "/DEF:" argument --- that's now done by
  the 'build_ext' command.

25 years agoCatch up with latest changes in CCompiler:
Greg Ward [Wed, 29 Sep 1999 12:22:50 +0000 (12:22 +0000)]
Catch up with latest changes in CCompiler:
  - add 'extra_preargs' and 'extra_postargs' parameters (and use them!)
  - added 'compiler_type' class attribute
  - respect reordered arguments to 'gen_lib_options()'

25 years agoAdded 'extra_preargs' and 'extra_postargs' parameters to most methods,
Greg Ward [Wed, 29 Sep 1999 12:20:55 +0000 (12:20 +0000)]
Added 'extra_preargs' and 'extra_postargs' parameters to most methods,
  which allowed us to get rid of the 'build_info' used in some places
  (a temporary kludge to support MSVC++ "def" files).
Deleted big comment whining about that kludge.
Added 'compiler_type' class attribute.
Overhauled 'new_compiler()': now takes 'compiler' argument along with
  'plat' (both optional with sensible defaults), and looks them both up
  in the new 'default_compiler' and 'compiler_class' dictionaries to
  figure out where to get the concrete compiler class from.
Reordered arguments to 'gen_lib_options()' to match the order in
  which the arguments are generated (ie. -L before -l).

25 years agoMore tweaks to 'mkpath()':
Greg Ward [Wed, 29 Sep 1999 12:14:16 +0000 (12:14 +0000)]
More tweaks to 'mkpath()':
  - deal with empty tail from os.path.split() (eg. from trailing slash,
    or backslash, or whatever)
  - check PATH_CREATED hash inside loop as well

25 years agoAdded 'ready' flag and 'ensure_ready()' method to Command: together
Greg Ward [Wed, 29 Sep 1999 12:12:19 +0000 (12:12 +0000)]
Added 'ready' flag and 'ensure_ready()' method to Command: together
  they make sure that 'set_final_options()' has been called, but isn't
  called redundantly.
Changed Distribution to call 'ensure_ready()' where it used to call
  'set_final_options()', and in a few extra places as well.
Lots of comment/docstring revisions and additions in both classes.
New one-liner utility methods in Command: 'find_peer()', 'spawn()'.

25 years agoPatch by Tim Peters fixing PR#88:
Guido van Rossum [Mon, 27 Sep 1999 17:12:47 +0000 (17:12 +0000)]
Patch by Tim Peters fixing PR#88:

Integer division can crash under Windows.

25 years agoPatch by Tim Peters fixing PR#89:
Guido van Rossum [Mon, 27 Sep 1999 17:11:52 +0000 (17:11 +0000)]
Patch by Tim Peters fixing PR#89:

long(+/- infinity) returns nonsense.

25 years agoInitial checkin of IDE scripts. (jvr)
Just van Rossum [Sun, 26 Sep 1999 12:25:06 +0000 (12:25 +0000)]
Initial checkin of IDE scripts. (jvr)

25 years agoAdded support for global default font settings. (jvr)
Just van Rossum [Sun, 26 Sep 1999 12:21:32 +0000 (12:21 +0000)]
Added support for global default font settings. (jvr)

25 years ago1) added "typingcasesens" keyword arg to constructor, and support for case sensitive...
Just van Rossum [Sun, 26 Sep 1999 12:20:08 +0000 (12:20 +0000)]
1) added "typingcasesens" keyword arg to constructor, and support for case sensitive typing in lists.
2) minor cleanups
(jvr)

25 years agoadded do_setwindowfont() menu callback: brings up a font selection dialog. (jvr)
Just van Rossum [Sun, 26 Sep 1999 12:18:19 +0000 (12:18 +0000)]
added do_setwindowfont() menu callback: brings up a font selection dialog. (jvr)

25 years agoadded getdefaultfont() function. Returns default font settings. (jvr)
Just van Rossum [Sun, 26 Sep 1999 12:17:04 +0000 (12:17 +0000)]
added getdefaultfont() function. Returns default font settings. (jvr)

25 years ago1 - added "set default window font" menu
Just van Rossum [Sun, 26 Sep 1999 12:16:22 +0000 (12:16 +0000)]
1 - added "set default window font" menu
2 - updated scripts folder location
(jvr)

25 years agominor cleanup, avoiding rare traceback (jvr)
Just van Rossum [Sun, 26 Sep 1999 12:11:50 +0000 (12:11 +0000)]
minor cleanup, avoiding rare traceback (jvr)

25 years ago"make clobber" should remove modindex.html as well.
Fred Drake [Fri, 24 Sep 1999 13:51:19 +0000 (13:51 +0000)]
"make clobber" should remove modindex.html as well.

Added realclean and distclean as synonyms for clobber.

25 years agoicons/ should not be ignored here now that this is it's real home.
Fred Drake [Fri, 24 Sep 1999 13:48:38 +0000 (13:48 +0000)]
icons/ should not be ignored here now that this is it's real home.

25 years agoAdded --about option to specify the file to load "About this
Fred Drake [Thu, 23 Sep 1999 16:55:09 +0000 (16:55 +0000)]
Added --about option to specify the file to load "About this
document..." text from, defaulting to ../html/about.dat.

25 years agoTell mkhowto to use stdabout.dat for the documents it processes here.
Fred Drake [Thu, 23 Sep 1999 16:54:06 +0000 (16:54 +0000)]
Tell mkhowto to use stdabout.dat for the documents it processes here.

25 years agoRemove some <SPAN> elements that were used only to carry a CLASS
Fred Drake [Thu, 23 Sep 1999 16:53:09 +0000 (16:53 +0000)]
Remove some <SPAN> elements that were used only to carry a CLASS
attribute; stick the CLASS on an existing element.

Use a variable for the name of the file to get "About this
document..." text from.

25 years agoRemove the "Comments and Questions" section, allowing this to be used
Fred Drake [Thu, 23 Sep 1999 16:48:54 +0000 (16:48 +0000)]
Remove the "Comments and Questions" section, allowing this to be used
for non-standard Python documentation.

25 years agoVersion of about.dat that should only be used for the standard
Fred Drake [Thu, 23 Sep 1999 16:48:05 +0000 (16:48 +0000)]
Version of about.dat that should only be used for the standard
documentation.

25 years agoRemove some <SPAN> elements that were used only to carry a CLASS
Fred Drake [Thu, 23 Sep 1999 16:45:08 +0000 (16:45 +0000)]
Remove some <SPAN> elements that were used only to carry a CLASS
attribute; stick the CLASS on an existing element.

25 years agoOops, missed this one!
Fred Drake [Thu, 23 Sep 1999 15:38:14 +0000 (15:38 +0000)]
Oops, missed this one!

25 years agoimg_tag(): Tighten up the generated SRC attribute a bit; if the image
Fred Drake [Thu, 23 Sep 1999 15:29:45 +0000 (15:29 +0000)]
img_tag():  Tighten up the generated SRC attribute a bit; if the image
            relative URL starts with "./", remove "./".

25 years agodo_cmd_rfc(): Simplify the generated markup.
Fred Drake [Wed, 22 Sep 1999 19:58:51 +0000 (19:58 +0000)]
do_cmd_rfc():  Simplify the generated markup.

25 years agoAdded --image-type option to allow use of either GIF or PNG images.
Fred Drake [Wed, 22 Sep 1999 19:55:35 +0000 (19:55 +0000)]
Added --image-type option to allow use of either GIF or PNG images.

Job.warning():  New method; use this instead of writing to sys.stderr
                directly.  Ensures warnings are also sent to the log
                file.

Job.log():  New method; write a message to the log file.  Use from
            .message() and .warning().

25 years agoSome updates to allow ../tools/mkhowto to add various bits to the
Fred Drake [Wed, 22 Sep 1999 19:50:51 +0000 (19:50 +0000)]
Some updates to allow ../tools/mkhowto to add various bits to the
supplemental l2h initialization file it creates and still get all the
right behavior.  In particular, it can change the image type and icon
location and not get inconsistent results.

Some code to help suppress various navigational pages; this might be
interesting when generating HTML to create HTML Help documents, since
the navigation support creates confusing hits in the full text
search.  HTML Help also provides a lot of the navigational
infrastructure, so duplicating it makes it more tedious to use.

25 years agomain(): wrap the device.setinfo() call around an exception handler.
Barry Warsaw [Wed, 22 Sep 1999 15:45:51 +0000 (15:45 +0000)]
main(): wrap the device.setinfo() call around an exception handler.
It's possible to get a sunaudiodev.error (errno == EINVAL), although
I'm not exactly sure why, this at least won't crash the application.

25 years agoAdded docstring and RCS id (apparently some Windows tar extractors
Greg Ward [Wed, 22 Sep 1999 15:24:04 +0000 (15:24 +0000)]
Added docstring and RCS id (apparently some Windows tar extractors
ignore zero-byte files: grr...).

25 years agoPNG version of the icons, converted from the GIFs
Fred Drake [Wed, 22 Sep 1999 14:38:25 +0000 (14:38 +0000)]
PNG version of the icons, converted from the GIFs
by Michael Hudson <mwh21@cam.ac.uk>.

25 years agoDitched the whole notion of "alias options": this meant dropping the
Greg Ward [Tue, 21 Sep 1999 18:41:36 +0000 (18:41 +0000)]
Ditched the whole notion of "alias options": this meant dropping the
  'alias_options' table and getting rid of some hairy code in the
  Distribution constructor.
Resurrected the distribution options that describe the modules present
  in the module distribution ('py_modules', 'ext_modules'), and added
  a bunch more: 'packages', 'package_dir', 'ext_package', 'include_dirs',
  'install_path'.
Updated some comments.
Added 'warn()' method to Command.
'Command.get_command_name()' now stores generated command name in
  self.command_name.

25 years agoAdded 'write_file()' function.
Greg Ward [Tue, 21 Sep 1999 18:37:51 +0000 (18:37 +0000)]
Added 'write_file()' function.
Added global cache PATH_CREATED used by 'mkpath()' to ensure it doesn't
  try to create the same path more than once in a session (and, more
  importantly, to ensure that it doesn't print "creating X" more than
  once for each X per session!).

25 years agoIn 'link_shared_object()', try to be less sensitive to missing input files
Greg Ward [Tue, 21 Sep 1999 18:36:15 +0000 (18:36 +0000)]
In 'link_shared_object()', try to be less sensitive to missing input files
in dry-run mode.

25 years agoTypecheck elements of 'macros' parameter in 'gen_preprocess_options().
Greg Ward [Tue, 21 Sep 1999 18:35:09 +0000 (18:35 +0000)]
Typecheck elements of 'macros' parameter in 'gen_preprocess_options().

25 years agoAdded docstring, brought __all__ up-to-date.
Greg Ward [Tue, 21 Sep 1999 18:33:09 +0000 (18:33 +0000)]
Added docstring, brought __all__ up-to-date.

25 years agoAdded 'install_path' option for giving non-packagized module
Greg Ward [Tue, 21 Sep 1999 18:31:14 +0000 (18:31 +0000)]
Added 'install_path' option for giving non-packagized module
  distributions their own directory (and .pth file).
Overhauled how we determine installation directories in
  'set_final_options()' to separate platform-dependence and take
  'install_path' option into account.
Added 'create_path_file()' to create path config file when 'install_path'
  given.
Only run 'install_py' and 'install_ext' when, respectively, there are
  some pure Python modules and some extension modules in the distribution.

25 years agoOnly run build_py if we have pure Python modules, and build_ext if we
Greg Ward [Tue, 21 Sep 1999 18:27:55 +0000 (18:27 +0000)]
Only run build_py if we have pure Python modules, and build_ext if we
have extension modules.

25 years agoSome option changes:
Greg Ward [Tue, 21 Sep 1999 18:27:12 +0000 (18:27 +0000)]
Some option changes:
  - rename 'dir' to 'build_dir'
  - take 'package' from distribution option 'ext_package'
  - take 'extensions' from distribution option 'ext_modules'
  - take 'include_dirs' from distribution
Name keyword args explictly when calling CCompiler methods.
Overhauled how we generate extension filenames (in 'extension_filename()
  and 'build_extension()') to take 'package' option into account.

25 years agoBasically a complete rewrite to support dealing with modules in whole
Greg Ward [Tue, 21 Sep 1999 18:22:34 +0000 (18:22 +0000)]
Basically a complete rewrite to support dealing with modules in whole
packages and searching for source files by 'package_dir'.

25 years agoAdded section about where to send comments, questions, & bug reports.
Fred Drake [Tue, 21 Sep 1999 15:45:06 +0000 (15:45 +0000)]
Added section about where to send comments, questions, & bug reports.

25 years agoparser__pickler(): Don't drop the third argument to
Fred Drake [Mon, 20 Sep 1999 22:32:18 +0000 (22:32 +0000)]
parser__pickler():  Don't drop the third argument to
        parser_ast2tuple().  Create an temporary empty dictionary to
        use.  Bug reported by Mark Favas <m.favas@per.dem.csiro.au>.

Fix a couple of comments.

25 years agoAdded comment with web location of bsddb windows port.
Guido van Rossum [Mon, 20 Sep 1999 13:28:18 +0000 (13:28 +0000)]
Added comment with web location of bsddb windows port.

25 years agoPeter Haight discovered that this code uses a mutable default for cnf
Guido van Rossum [Mon, 20 Sep 1999 00:39:47 +0000 (00:39 +0000)]
Peter Haight discovered that this code uses a mutable default for cnf
and then (under certain circumstances) can clobber the default!
He also submitted this patch as PR#82.

25 years agoTim Peters fixed PR#75: very long lines cause incorrect tracebacks.
Guido van Rossum [Sat, 18 Sep 1999 20:49:39 +0000 (20:49 +0000)]
Tim Peters fixed PR#75: very long lines cause incorrect tracebacks.

25 years agoErik Lindvall contributed a BSD/OS 4 patch for LDSHARED.
Guido van Rossum [Fri, 17 Sep 1999 15:40:40 +0000 (15:40 +0000)]
Erik Lindvall contributed a BSD/OS 4 patch for LDSHARED.

25 years agoos.name: Note that 'java' is one of the registered names.
Fred Drake [Fri, 17 Sep 1999 14:38:39 +0000 (14:38 +0000)]
os.name:  Note that 'java' is one of the registered names.

25 years agoAdded documentation for inet_aton() and inet_ntoa(), from Ben
Fred Drake [Thu, 16 Sep 1999 15:50:00 +0000 (15:50 +0000)]
Added documentation for inet_aton() and inet_ntoa(), from Ben
Gertzfield <che@debian.org> (with minor changes).

(Should have been here instead of in the branch in the first place,
since these weren't in for the 1.5.2 release.)

25 years agoTim Peters writes:
Guido van Rossum [Wed, 15 Sep 1999 22:48:09 +0000 (22:48 +0000)]
Tim Peters writes:

For a long time I've seen absurd tracebacks under -O (e.g., negative
line numbers), but very rarely.  Since I was looking at tracebacks
anyway, thought I'd track it down.  Turns out to be Guido's only
predictable blind spot <wink -- "char" is signed on some non-GvR
systems>.  Patch follows.

25 years agoAfter much hemming and hawing, we decided to roll back Fred's change.
Guido van Rossum [Wed, 15 Sep 1999 22:15:23 +0000 (22:15 +0000)]
After much hemming and hawing, we decided to roll back Fred's change.
It breaks Mailman, it was actually documented in the docstring, so it
was an intentional deviation from the usual del semantics.  Let's
document the original behavior in Doc/lib/librfc822.tex.

25 years ago(1) On Linux, we really need to trust the configure script to select
Guido van Rossum [Wed, 15 Sep 1999 22:01:40 +0000 (22:01 +0000)]
(1) On Linux, we really need to trust the configure script to select
the right variant of gethostbyname_r for us, since not all Linuxes are
equal in this respect.  Reported by Laurent Pointal.

(2) On BeOS, Chris Herborth reports that instead of arpa/inet.h you
must include net/netdb.h to get the inet_ntoa() and inet_addr()
prototypes.

25 years agoTypo: the method called is do_SPAM, not handle_SPAM.
Guido van Rossum [Wed, 15 Sep 1999 15:28:25 +0000 (15:28 +0000)]
Typo: the method called is do_SPAM, not handle_SPAM.

25 years agoPut Sam Rushing's original RCS ID string back, without dollars around it.
Guido van Rossum [Tue, 14 Sep 1999 20:17:50 +0000 (20:17 +0000)]
Put Sam Rushing's original RCS ID string back, without dollars around it.

25 years agoPut Sam Rushing's original RCS ID string back, without dollars around it.
Guido van Rossum [Tue, 14 Sep 1999 20:16:00 +0000 (20:16 +0000)]
Put Sam Rushing's original RCS ID string back, without dollars around it.

25 years agoAdded "import string" to a couple of examples that describe string
Fred Drake [Tue, 14 Sep 1999 18:00:49 +0000 (18:00 +0000)]
Added "import string" to a couple of examples that describe string
module functions, to clarify that the import is not automatic.
Suggested by Koray Oner <Koray.Oner@Eng.Sun.COM>.

25 years agoChanged selection of installation directories (in 'set_final_options()')
Greg Ward [Mon, 13 Sep 1999 13:58:34 +0000 (13:58 +0000)]
Changed selection of installation directories (in 'set_final_options()')
so that pure Python modules are installed to the platform-specific
directory if there are any extension modules in this distribution.

25 years agoStraightened up the selection of installation directories for platform-
Greg Ward [Mon, 13 Sep 1999 13:57:26 +0000 (13:57 +0000)]
Straightened up the selection of installation directories for platform-
  specific files; it was somewhat broken, and the comments were dead
  wrong.
Now runs 'install_ext' command after 'install_py'.

25 years agoAdded support for 'package' option, including where to link the
Greg Ward [Mon, 13 Sep 1999 13:55:34 +0000 (13:55 +0000)]
Added support for 'package' option, including where to link the
actual extension module to.

25 years agoComment addition.
Greg Ward [Mon, 13 Sep 1999 13:54:06 +0000 (13:54 +0000)]
Comment addition.

25 years agoNow run 'build_ext'.
Greg Ward [Mon, 13 Sep 1999 13:52:12 +0000 (13:52 +0000)]
Now run 'build_ext'.
Default platform-specific build directory changed to 'build/platlib'.

25 years agoTim Peters discovered a bug in the Python-supplied getopt():
Guido van Rossum [Mon, 13 Sep 1999 13:45:32 +0000 (13:45 +0000)]
Tim Peters discovered a bug in the Python-supplied getopt():
it doesn't recognize a lone dash as a non-flag argument.
Now it does.

25 years agoAdded 'output_dir' parameter to 'compile()' and 'link_shared_object().
Greg Ward [Mon, 13 Sep 1999 03:12:53 +0000 (03:12 +0000)]
Added 'output_dir' parameter to 'compile()' and 'link_shared_object().
Changed those two methods to only compile/link if necessary (according
  to simplistic timestamp checks).
Added 'output_dir' to 'object_filenames()' and 'shared_object_filename()'.

25 years agoNew command -- install_ext to install extension modules.
Greg Ward [Mon, 13 Sep 1999 03:10:25 +0000 (03:10 +0000)]
New command -- install_ext to install extension modules.

25 years agoAdded 'newer_pairwise()' and 'newer_group()'.
Greg Ward [Mon, 13 Sep 1999 03:09:38 +0000 (03:09 +0000)]
Added 'newer_pairwise()' and 'newer_group()'.
Terminology change in 'newer()'.
Made 'copy_tree' respect dry_run flag a little better.
Added 'move_file()'.

25 years agoAdded 'output_dir' attribute, and 'output_dir' parameter to several method
Greg Ward [Mon, 13 Sep 1999 03:07:24 +0000 (03:07 +0000)]
Added 'output_dir' attribute, and 'output_dir' parameter to several method
  signatures, and updated some docstrings to reflect it.
Some comments added.
Added 'announce()' and 'move_file()' methods.

25 years agoFixed some goofs in 'alias_options'.
Greg Ward [Mon, 13 Sep 1999 03:03:01 +0000 (03:03 +0000)]
Fixed some goofs in 'alias_options'.
Error message tweak in Command.set_option().
Added Command.get_peer_option().
Added Command.move_file() wrapper.

25 years agoMessage.__delitem__(): If the key doesn't exist in the dictionary,
Fred Drake [Fri, 10 Sep 1999 20:54:53 +0000 (20:54 +0000)]
Message.__delitem__():  If the key doesn't exist in the dictionary,
        raise KeyError instead of failing silently!

25 years agoFix for PR#74 -- use int() instead of eval() to extract the exponent.
Guido van Rossum [Fri, 10 Sep 1999 14:34:48 +0000 (14:34 +0000)]
Fix for PR#74 -- use int() instead of eval() to extract the exponent.

25 years agocanonic(): This used to be equivalent to str() but that caused too
Barry Warsaw [Thu, 9 Sep 1999 23:24:33 +0000 (23:24 +0000)]
canonic(): This used to be equivalent to str() but that caused too
much breakage (esp. in JPython which holds absolute path names in
co_filename already).  This implementation uses os.path.abspath() as a
slightly better way to canonicalize path names.  It implements a
cache.

25 years agoPdb.lineinfo(): Don't use os.popen('egrep ...') to find the line in
Barry Warsaw [Thu, 9 Sep 1999 16:32:41 +0000 (16:32 +0000)]
Pdb.lineinfo(): Don't use os.popen('egrep ...') to find the line in
the file that a function is defined on.  Non-portable to Windows and
JPython.  Instead, new find_function() uses re module on a similar
(simple-minded) pattern.

25 years agoIt appears that inet_aton() doesn't really exist except in libresolv;
Guido van Rossum [Thu, 9 Sep 1999 15:42:59 +0000 (15:42 +0000)]
It appears that inet_aton() doesn't really exist except in libresolv;
the proper function to call is inet_addr().  Since we already had code
to do that (for MS-Windows), this simplifies things a lot!

25 years agoMake the maxsize constructor argument default to 0 (an unlimited queue size).
Guido van Rossum [Thu, 9 Sep 1999 14:54:28 +0000 (14:54 +0000)]
Make the maxsize constructor argument default to 0 (an unlimited queue size).

25 years agoAdded keyword parameter support to all public interfaces; keyword
Fred Drake [Thu, 9 Sep 1999 14:21:52 +0000 (14:21 +0000)]
Added keyword parameter support to all public interfaces; keyword
names match the documentation.

Removed broken code that supports the __methods__ attribute on ast
objects; the right magic was added to Py_FindMethod() since this was
originally written.  <ast-object>.__methods__ now works, so dir() and
rlcompleter are happy.

25 years agoName the parameter to expr() and suite() "source" instead of "string".
Fred Drake [Thu, 9 Sep 1999 14:16:36 +0000 (14:16 +0000)]
Name the parameter to expr() and suite() "source" instead of "string".

25 years agoA few new TODO entries.
Guido van Rossum [Thu, 9 Sep 1999 14:16:02 +0000 (14:16 +0000)]
A few new TODO entries.