]> granicus.if.org Git - python/log
python
25 years agoSeveral improvements, some of where were contributed by Bernhard
Barry Warsaw [Wed, 3 Nov 1999 18:47:52 +0000 (18:47 +0000)]
Several improvements, some of where were contributed by Bernhard
Herzog <herzog@online.de>.  Specifically,

--verbose/-v flag added

pot_header added to make msgmerge and Emacs po-mode work better

normalize(), escape(), safe_eval(): Improved normalization of strings
for more .po file compatibility (e.g. C style).  Handles emmbedded
newlines better.

Also added an identity function called _() and use it in the file
where messages are printed.  This allows us to selftest pygettext.py
with itself as input.

25 years agoPython equivalent of xgettext(1). This was originally released
Barry Warsaw [Wed, 3 Nov 1999 16:46:05 +0000 (16:46 +0000)]
Python equivalent of xgettext(1).  This was originally released
separately but now is included in the standard Python distribution.

25 years agoSjoerd Mullender writes:
Guido van Rossum [Wed, 3 Nov 1999 13:10:07 +0000 (13:10 +0000)]
Sjoerd Mullender writes:

I regularly find that pdb sets the breakpoint on the wrong line when I
try to set a breakpoint on a function.  This fixes the problem
somewhat.
The real problem is that pdb tries to parse the Python source code to
find the first executable line.  A better way might be to inspect the
code object, or even have a variable in the code object
co_firstexecutablelineno, but that's too much work.

The patch fixes the problem when the first code line after the def
statement contains the start *and* end of a triple-quoted string.  The
code assumed that the end of a triple-quoted string is not on the same
line as the start, and so it would skip to the end of the *next*
triple-quoted string.

25 years agoOops. spawnl() and spawnle() should be implemented on Windows too.
Guido van Rossum [Tue, 2 Nov 1999 20:44:07 +0000 (20:44 +0000)]
Oops.  spawnl() and spawnle() should be implemented on Windows too.

Also added a comment that the 'p' variants (spawnvp() etc.) are *not*
supported on Windows.  (They could be by adding them to posixmodule.c)

25 years agoFix a bug reported by Toby Dickenson (on 18 May 1999).
Guido van Rossum [Tue, 2 Nov 1999 15:46:44 +0000 (15:46 +0000)]
Fix a bug reported by Toby Dickenson (on 18 May 1999).
Sometimes there's no parent, so don't try to get its __name__.

25 years agoSjoerd Mullender:
Guido van Rossum [Tue, 2 Nov 1999 15:44:40 +0000 (15:44 +0000)]
Sjoerd Mullender:

Added some declarations to shut up compiler.

25 years agoCorrect typo in walk.__doc__ reported by Francois Pinard.
Guido van Rossum [Tue, 2 Nov 1999 13:29:08 +0000 (13:29 +0000)]
Correct typo in walk.__doc__ reported by Francois Pinard.

25 years agoChecking in a bunch of spawn functions. These are only defined if we
Guido van Rossum [Tue, 2 Nov 1999 13:27:32 +0000 (13:27 +0000)]
Checking in a bunch of spawn functions.  These are only defined if we
have fork and execv (and friends) but not spawnv.  They operate
exactly like the spawn functions on Windows.  A limited set of needed
constants is also defined (P_WAIT, P_NOWAIT etc.).

Also add getenv() as a familiar alias for environ.get().

25 years ago- windowbounds() now works with multiple screens (window position prefs!)
Just van Rossum [Sat, 30 Oct 1999 11:49:07 +0000 (11:49 +0000)]
- windowbounds() now works with multiple screens (window position prefs!)
- Minor tab behavior tweak
-- jvr

25 years agoVery minor little things... -- jvr
Just van Rossum [Sat, 30 Oct 1999 11:46:18 +0000 (11:46 +0000)]
Very minor little things... -- jvr

25 years agoNew __version__ number (1.0!) -- jvr
Just van Rossum [Sat, 30 Oct 1999 11:45:16 +0000 (11:45 +0000)]
New __version__ number (1.0!) -- jvr

25 years agoMinor indentation cleanup -- jvr
Just van Rossum [Sat, 30 Oct 1999 11:44:25 +0000 (11:44 +0000)]
Minor indentation cleanup -- jvr

25 years agoString values will now always be shown with quotes, so one can see the difference...
Just van Rossum [Sat, 30 Oct 1999 11:43:25 +0000 (11:43 +0000)]
String values will now always be shown with quotes, so one can see the difference between the value 2 and the value '2'. -- jvr

25 years agoChange the suggestions pointer at the bottom of generated HTML pages.
Fred Drake [Fri, 29 Oct 1999 20:51:43 +0000 (20:51 +0000)]
Change the suggestions pointer at the bottom of generated HTML pages.

25 years agoStraighten out dependencies so changes in the texinputs/* get reflected.
Fred Drake [Fri, 29 Oct 1999 20:49:23 +0000 (20:49 +0000)]
Straighten out dependencies so changes in the texinputs/* get reflected.

25 years agopathes --> paths; typo reported by Gerry Wiener <gerry@ucar.edu>.
Fred Drake [Fri, 29 Oct 1999 17:51:29 +0000 (17:51 +0000)]
pathes --> paths; typo reported by Gerry Wiener <gerry@ucar.edu>.

25 years agoAdded dependency on filecmp section, removed dependencies on cmp and
Fred Drake [Fri, 29 Oct 1999 17:27:08 +0000 (17:27 +0000)]
Added dependency on filecmp section, removed dependencies on cmp and
cmpcache sections.

25 years agoMake references to new filecmp module hyperlinks now that there's
Fred Drake [Fri, 29 Oct 1999 17:25:59 +0000 (17:25 +0000)]
Make references to new filecmp module hyperlinks now that there's
documentation.

25 years agoAdded section for filecmp.
Fred Drake [Fri, 29 Oct 1999 17:24:12 +0000 (17:24 +0000)]
Added section for filecmp.

25 years agofilecmp documentation from Moshe Zadka <moshez@math.huji.ac.il>.
Fred Drake [Fri, 29 Oct 1999 17:23:15 +0000 (17:23 +0000)]
filecmp documentation from Moshe Zadka <moshez@math.huji.ac.il>.

25 years agoAdded deprecation notes, in case anyone decides to read these anyway.
Fred Drake [Tue, 26 Oct 1999 16:31:51 +0000 (16:31 +0000)]
Added deprecation notes, in case anyone decides to read these anyway.

25 years agocmp and cmpcache are now obsolete, so don't include their
Fred Drake [Tue, 26 Oct 1999 16:28:04 +0000 (16:28 +0000)]
cmp and cmpcache are now obsolete, so don't include their
documentation sections.

25 years agoAdded cmp and cmpcache to the "Obsolete" section.
Fred Drake [Tue, 26 Oct 1999 16:27:28 +0000 (16:27 +0000)]
Added cmp and cmpcache to the "Obsolete" section.

25 years agoNew module by Moshe Zadka (submitted on Sept. 25). This unifies the
Guido van Rossum [Tue, 26 Oct 1999 14:02:01 +0000 (14:02 +0000)]
New module by Moshe Zadka (submitted on Sept. 25).  This unifies the
functionality of cmp.py and cmpcache.py, which are hereby declared
obsolescent.

25 years agoPatch by Michael Hudson: when the object of attribute expansion is a
Guido van Rossum [Tue, 26 Oct 1999 13:09:08 +0000 (13:09 +0000)]
Patch by Michael Hudson: when the object of attribute expansion is a
class instance, include the class attributes in the list of possible
expansions.

25 years agoFix by Moshe Zadka (cleaned up and documented by GvR) to break out the
Guido van Rossum [Tue, 26 Oct 1999 13:01:36 +0000 (13:01 +0000)]
Fix by Moshe Zadka (cleaned up and documented by GvR) to break out the
request handling into separate parse_request() and handle_request()
methods.

25 years agoMrC also needs BAD_STATIC_FORWARD define.
Jack Jansen [Tue, 26 Oct 1999 09:25:32 +0000 (09:25 +0000)]
MrC also needs BAD_STATIC_FORWARD define.

25 years agoFix PR117. The error message is "keywords must be strings". Perhaps
Guido van Rossum [Tue, 26 Oct 1999 00:12:20 +0000 (00:12 +0000)]
Fix PR117.  The error message is "keywords must be strings".  Perhaps
not as descriptive as what Barry suggests, but this also catches the
(in my opinion important) case where some other C code besides apply()
constructs a kwdict that doesn't have the right format.  All the other
possibilities of getting it wrong (non-dict, wrong keywords etc) are
already caught so this makes sense to check here.

25 years agoDon't assume GNU tar -- generate tar file and compress in separate steps.
Greg Ward [Sat, 23 Oct 1999 19:25:05 +0000 (19:25 +0000)]
Don't assume GNU tar -- generate tar file and compress in separate steps.
Now supports the full range of intended formats (tar, ztar, gztar, zip).
"-f" no longer a short option for "--formats" -- conflicts with new
  global option "--force"!

25 years agoRemoved massive comment speculating about needlessly complex variations
Greg Ward [Sat, 23 Oct 1999 19:10:59 +0000 (19:10 +0000)]
Removed massive comment speculating about needlessly complex variations
on the manifest file syntax.

25 years agoQualified use of 'newer_group' function.
Greg Ward [Sat, 23 Oct 1999 19:06:56 +0000 (19:06 +0000)]
Qualified use of 'newer_group' function.

25 years agoFix how we run 'zip' -- give explicit .zip extension.
Greg Ward [Sat, 23 Oct 1999 19:06:20 +0000 (19:06 +0000)]
Fix how we run 'zip' -- give explicit .zip extension.

25 years agoDocumented Beep() function.
Fred Drake [Fri, 22 Oct 1999 21:08:56 +0000 (21:08 +0000)]
Documented Beep() function.

25 years agoIn helo() and ehlo(), Don't fail when gethostbyaddr() fails -- just
Guido van Rossum [Fri, 22 Oct 1999 13:09:20 +0000 (13:09 +0000)]
In helo() and ehlo(), Don't fail when gethostbyaddr() fails -- just
keep whatever gethostname() returns.  After a suggestion by Doug Wyatt.

25 years agoModule/script to parse the reference count data file and make the
Fred Drake [Wed, 20 Oct 1999 21:50:31 +0000 (21:50 +0000)]
Module/script to parse the reference count data file and make the
information accessible to Python.

When run as a script, just dumps the information back out in the data
format, with functions in sorted order and a blank line between
different functions.

Still need to apply the information somehow.

25 years agoAdded note that Skip created the initial version of this file.
Fred Drake [Wed, 20 Oct 1999 16:03:38 +0000 (16:03 +0000)]
Added note that Skip created the initial version of this file.

Fixed up a few of his ??? comments.

25 years agoInitial version as provided by Skip Montanaro <skip@mojam.com>.
Fred Drake [Wed, 20 Oct 1999 15:06:24 +0000 (15:06 +0000)]
Initial version as provided by Skip Montanaro <skip@mojam.com>.

25 years agoFix PR#107: wm_colormapwindows() did the wrong thing when presented
Guido van Rossum [Wed, 20 Oct 1999 12:29:56 +0000 (12:29 +0000)]
Fix PR#107: wm_colormapwindows() did the wrong thing when presented
more than one window argument.

25 years agoTest output.
Guido van Rossum [Tue, 19 Oct 1999 19:09:00 +0000 (19:09 +0000)]
Test output.
(XXX perhaps a bit too verbose; in particular it is sensitive to
all the doc strings.)

25 years agoRewritten -- this now tests the binascii *except* for the binhex
Guido van Rossum [Tue, 19 Oct 1999 19:08:13 +0000 (19:08 +0000)]
Rewritten -- this now tests the binascii *except* for the binhex
module, which is tested by test_binhex.py.

25 years agoTest output for test_binhex.py.
Guido van Rossum [Tue, 19 Oct 1999 19:07:33 +0000 (19:07 +0000)]
Test output for test_binhex.py.

25 years agoPatch by Jason Trowbridge. (Followup to his PR#110.) (Slightly
Guido van Rossum [Tue, 19 Oct 1999 19:05:14 +0000 (19:05 +0000)]
Patch by Jason Trowbridge.  (Followup to his PR#110.)  (Slightly
reformatted.)

- Illegal padding is now ignored.  (Recommendation by GvR.)

- Padding no longer removes characters from data string (resulting in
lost data/strings with negative lengths).

- Illegal characters outside the ASCII range are now ignored, instead
of possibly being remapped to a valid character.

25 years agoThis test really only tests the binhex module.
Guido van Rossum [Tue, 19 Oct 1999 17:48:54 +0000 (17:48 +0000)]
This test really only tests the binhex module.
Renamed it and adapted a comment and an error message.

25 years agoJohn DuBois tells us that SCO OpenServer 5.0 and later requires _SVID3
Guido van Rossum [Tue, 19 Oct 1999 13:29:23 +0000 (13:29 +0000)]
John DuBois tells us that SCO OpenServer 5.0 and later requires _SVID3
before it reveals the needed definitions in sys/statvfs.h.

25 years agoFix PR#110 -- bad input ("====") for a2b_base64() caused it to call
Guido van Rossum [Tue, 19 Oct 1999 04:47:13 +0000 (04:47 +0000)]
Fix PR#110 -- bad input ("====") for a2b_base64() caused it to call
_PyString_Resize() with a negative size.

25 years agoprint a warning if the password will be echoed.
Jeremy Hylton [Mon, 18 Oct 1999 22:25:22 +0000 (22:25 +0000)]
print a warning if the password will be echoed.

At import time, getpass will be bound to the appropriate
platform-specific function.  If the platform's echo-disabler is not
available, default_getpass, which prints the warning, will be used

25 years agoFixed PR#106: winfo_visualsavailable() with the includeids=1 option
Guido van Rossum [Mon, 18 Oct 1999 22:06:38 +0000 (22:06 +0000)]
Fixed PR#106: winfo_visualsavailable() with the includeids=1 option
didn't properly handle the hex numbers returned.

25 years agoFix for PR#111: when using the inplace option, give the new file the
Guido van Rossum [Mon, 18 Oct 1999 21:41:43 +0000 (21:41 +0000)]
Fix for PR#111: when using the inplace option, give the new file the
same permissions as the old file, plugging a security hole.
(Not using exactly the suggested bugfix.)

25 years agoFixed typo in explanation of abspath(); noticed by Paul Prescod
Fred Drake [Mon, 18 Oct 1999 14:10:06 +0000 (14:10 +0000)]
Fixed typo in explanation of abspath(); noticed by Paul Prescod
<paul@prescod.net>.

25 years agoos.fork raises AttributeError, not NameError, if fork() isn't
Fred Drake [Mon, 18 Oct 1999 13:43:44 +0000 (13:43 +0000)]
os.fork raises AttributeError, not NameError, if fork() isn't
supported.  Pointed out by Moshe Zadka <moshez@math.huji.ac.il>.

25 years agoBased on comments from Paul Prescod:
Fred Drake [Sat, 16 Oct 1999 02:07:50 +0000 (02:07 +0000)]
Based on comments from Paul Prescod:

If os.fork() doesn't exist, raise SystemError with an explanation at
the top of the module.  Added a note to the module docstring.

25 years agoMainlining the string_methods branch. See branch revision log
Barry Warsaw [Tue, 12 Oct 1999 19:54:53 +0000 (19:54 +0000)]
Mainlining the string_methods branch.  See branch revision log
messages for specific changes.

25 years agoupdate to use threading module instead of thread.
Jeremy Hylton [Tue, 12 Oct 1999 16:20:13 +0000 (16:20 +0000)]
update to use threading module instead of thread.

25 years agofixed a typo in a docstring, and slightly expanded the module
Barry Warsaw [Tue, 12 Oct 1999 16:12:48 +0000 (16:12 +0000)]
fixed a typo in a docstring, and slightly expanded the module
docstring info for readfp().

25 years agoFix PR#66. Solution: add error checking around l_divmod() calls in
Guido van Rossum [Mon, 11 Oct 1999 22:34:41 +0000 (22:34 +0000)]
Fix PR#66.  Solution: add error checking around l_divmod() calls in
long_pow().

25 years agoFix PR#31 -- zfill() mishandles empty string.
Guido van Rossum [Mon, 11 Oct 1999 22:15:41 +0000 (22:15 +0000)]
Fix PR#31 -- zfill() mishandles empty string.

25 years agoFix for PR#98 (Adrian Eyre) -- in instancemethod_repr, the funcname
Guido van Rossum [Mon, 11 Oct 1999 14:03:12 +0000 (14:03 +0000)]
Fix for PR#98 (Adrian Eyre) -- in instancemethod_repr, the funcname
object is DECREFed too early.

25 years agoJeremy writes:
Guido van Rossum [Sun, 10 Oct 1999 21:14:25 +0000 (21:14 +0000)]
Jeremy writes:

I found the following patch helpful in tracking down a bug in some
code.  I had appended time, the module, instead of time.time().  Not
sure if it is generally true that printing the repr of the object is
good, but I expect that most unpicklable things will have fairly
information and concise reprs (like files or sockets or modules).

25 years agomain(): Arg! I wasn't properly ignoring EINVAL; now only re-raise the
Barry Warsaw [Thu, 7 Oct 1999 20:00:01 +0000 (20:00 +0000)]
main(): Arg!  I wasn't properly ignoring EINVAL; now only re-raise the
exception if code <> errno.EINVAL.  Jeremy this should fix your
problem.

25 years agoFix PR#3, submitted by Skip Montanaro: if no space appears after the
Guido van Rossum [Wed, 6 Oct 1999 15:19:19 +0000 (15:19 +0000)]
Fix PR#3, submitted by Skip Montanaro: if no space appears after the
colon, the first character of the value is lost.

25 years agoIn PySys_GetObject(), it's possible that tstate->interp->sysdict is
Guido van Rossum [Tue, 5 Oct 1999 22:17:41 +0000 (22:17 +0000)]
In PySys_GetObject(), it's possible that tstate->interp->sysdict is
NULL.  In that case, return NULL rather than dumping core.

This fixes PR#91, submitted by Lele Gaifax.

25 years agoAdd -v flag. Comment duplicate Py_Finalize().
Guido van Rossum [Tue, 5 Oct 1999 22:16:07 +0000 (22:16 +0000)]
Add -v flag.  Comment duplicate Py_Finalize().

25 years agoDynamic linking support for BSD/OS 4.x as suggested by Vivek Khera
Guido van Rossum [Tue, 5 Oct 1999 21:59:33 +0000 (21:59 +0000)]
Dynamic linking support for BSD/OS 4.x as suggested by Vivek Khera

25 years agoAskString always set the dialog id to 257. Fixed.
Jack Jansen [Tue, 5 Oct 1999 08:54:17 +0000 (08:54 +0000)]
AskString always set the dialog id to 257. Fixed.

25 years agoAdded has_option(); fix bug in get() which botched interpolation if
Guido van Rossum [Mon, 4 Oct 1999 19:58:22 +0000 (19:58 +0000)]
Added has_option(); fix bug in get() which botched interpolation if
'%(' was found in first position (found by Fred Drake).

25 years agoUrmpfh!
Guido van Rossum [Mon, 4 Oct 1999 18:57:27 +0000 (18:57 +0000)]
Urmpfh!

Withdraw the change that Fred just checked in -- it was a poorly
documented feature, not a bug, to ignore I/O errors in read().

The new docstring explains the reason for the feature:
"""
this is designed so that you can specifiy a list of potential
configuration file locations (e.g. current directory, user's home
directory, systemwide directory), and all existing configuration files
in the list will be read.
"""

Also add a lower-level function, readfp(), which takes an open file
object (and optionally a filename).

XXX There are some other problems with this module, but I don't have
time to dig into these; in particular, there are complaints that the
%(name)s substitution from the [DEFAULTS] section doesn't work
correctly.

25 years agoConfigParser.read(): Don't mask IOError exceptions.
Fred Drake [Mon, 4 Oct 1999 18:11:56 +0000 (18:11 +0000)]
ConfigParser.read():  Don't mask IOError exceptions.

25 years agoFilter 'glob()' results so we only look at regular files.
Greg Ward [Sun, 3 Oct 1999 21:09:14 +0000 (21:09 +0000)]
Filter 'glob()' results so we only look at regular files.

25 years agoPass 'force' flag to 'new_compiler()'.
Greg Ward [Sun, 3 Oct 1999 21:08:42 +0000 (21:08 +0000)]
Pass 'force' flag to 'new_compiler()'.

25 years agoDon't import what we don't use.
Greg Ward [Sun, 3 Oct 1999 21:07:21 +0000 (21:07 +0000)]
Don't import what we don't use.

25 years agoTweaked verbosity messages for byte-compilation.
Greg Ward [Sun, 3 Oct 1999 21:03:26 +0000 (21:03 +0000)]
Tweaked verbosity messages for byte-compilation.

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).