]> granicus.if.org Git - python/log
python
25 years agoCorrect typo in module doc string doscovered by Jonathan Giddy.
Guido van Rossum [Mon, 15 Nov 1999 14:19:15 +0000 (14:19 +0000)]
Correct typo in module doc string doscovered by Jonathan Giddy.

25 years agoAdded request to please not send HTML email to the newsgroup/mailing
Fred Drake [Fri, 12 Nov 1999 17:20:40 +0000 (17:20 +0000)]
Added request to please not send HTML email to the newsgroup/mailing
list or to python-docs.

25 years agoDocument \citetitle and \programopt.
Fred Drake [Wed, 10 Nov 1999 22:51:18 +0000 (22:51 +0000)]
Document \citetitle and \programopt.

25 years agoUse \citetitle and \programopt as appropriate.
Fred Drake [Wed, 10 Nov 1999 16:21:37 +0000 (16:21 +0000)]
Use \citetitle and \programopt as appropriate.

25 years agoUse \citetitle as appropriate.
Fred Drake [Wed, 10 Nov 1999 16:13:25 +0000 (16:13 +0000)]
Use \citetitle as appropriate.

25 years agoUse \citetitle in several places, and \programopt where appropriate.
Fred Drake [Wed, 10 Nov 1999 16:01:43 +0000 (16:01 +0000)]
Use \citetitle in several places, and \programopt where appropriate.

25 years agoUse \citetitle in several places.
Fred Drake [Wed, 10 Nov 1999 15:54:57 +0000 (15:54 +0000)]
Use \citetitle in several places.

25 years agoUse \citetitle instead of \emph.
Fred Drake [Tue, 9 Nov 1999 20:11:17 +0000 (20:11 +0000)]
Use \citetitle instead of \emph.

25 years agoUse \citetitle in one place.
Fred Drake [Tue, 9 Nov 1999 20:10:01 +0000 (20:10 +0000)]
Use \citetitle in one place.

25 years agoUse the new markup as apporpriate.
Fred Drake [Tue, 9 Nov 1999 19:45:59 +0000 (19:45 +0000)]
Use the new markup as apporpriate.

25 years agoUse \programopt in one place.
Fred Drake [Tue, 9 Nov 1999 19:44:44 +0000 (19:44 +0000)]
Use \programopt in one place.

25 years agoAdded citetitle and programopt.
Fred Drake [Tue, 9 Nov 1999 19:33:24 +0000 (19:33 +0000)]
Added citetitle and programopt.

Made var get renamed to varname (more like DocBook).
Other names should probably be changed as well; still waiting for the
DocBook book to arrive.

25 years agoUse \programopt in one place.
Fred Drake [Tue, 9 Nov 1999 18:03:00 +0000 (18:03 +0000)]
Use \programopt in one place.

25 years agoMissed a couple of program options that had been marked by \code.
Fred Drake [Tue, 9 Nov 1999 17:31:42 +0000 (17:31 +0000)]
Missed a couple of program options that had been marked by \code.

25 years agoUse \programopt in one place.
Fred Drake [Tue, 9 Nov 1999 17:03:45 +0000 (17:03 +0000)]
Use \programopt in one place.

25 years agoUse \citetitle and \programopt as appropriate.
Fred Drake [Tue, 9 Nov 1999 17:03:03 +0000 (17:03 +0000)]
Use \citetitle and \programopt as appropriate.

25 years ago\programopt: New macro, used to mark command-line parameters in the
Fred Drake [Tue, 9 Nov 1999 17:02:11 +0000 (17:02 +0000)]
\programopt:  New macro, used to mark command-line parameters in the
              text.  Looks like \program.

\citetitle:   New macro, used to mark titles of cited works (like the
              names of the Python manuals).  Accepts & discards an
              optional parameter that is only used by the HTML
              formatter.  Looks like \emph.

25 years agodo_cmd_programopt(): New function, similar to do_cmd_program().
Fred Drake [Tue, 9 Nov 1999 16:59:42 +0000 (16:59 +0000)]
do_cmd_programopt():  New function, similar to do_cmd_program().

do_cmd_citetitle():  New function.  Extracts one optional and one
                     required parameter.  If the optional one is
                     provided, it is used a URL (or relative URL) and
                     the text of the required parameter is turned into
                     a hyperlink.

25 years agoOops. Remove some garbage from the doc string that was accidentally
Guido van Rossum [Tue, 9 Nov 1999 16:36:45 +0000 (16:36 +0000)]
Oops.  Remove some garbage from the doc string that was accidentally
checked in due to a patching mishap.  Reported by Detlef Lannert;
thanks!

25 years agoJack Jansen: Mac has no EINTR.
Guido van Rossum [Mon, 8 Nov 1999 15:32:27 +0000 (15:32 +0000)]
Jack Jansen: Mac has no EINTR.

25 years agoAdd some header comments to all the files.
Greg Stein [Sun, 7 Nov 1999 13:14:58 +0000 (13:14 +0000)]
Add some header comments to all the files.

25 years agoinitial checkin for my Python stuff.
Greg Stein [Sun, 7 Nov 1999 12:54:45 +0000 (12:54 +0000)]
initial checkin for my Python stuff.

25 years agoPatch by Dieter Maurer to make things work for Tcl/Tk 8.1. This
Guido van Rossum [Fri, 5 Nov 1999 18:11:23 +0000 (18:11 +0000)]
Patch by Dieter Maurer to make things work for Tcl/Tk 8.1.  This
simply moves the call to Tk_MainWindow() after the Tcl/Tk
initialization calls.  The patch is unconditional, it works with
earlier and later versions as well.

25 years agoPatch by Dieter Maurer to make things work for Tcl/Tk 8.1 (tested with
Guido van Rossum [Fri, 5 Nov 1999 18:09:56 +0000 (18:09 +0000)]
Patch by Dieter Maurer to make things work for Tcl/Tk 8.1 (tested with
8.1.1).  His approach doesn't work with Tcl/Tk 8.2, so I've placed it
inside #if TKMAJORMINOR == 8001 and #endif.  See also his patch for
tkappinit.c.

25 years agoAdded HAVE_LIMITS_H, MAVE_MEMMOVE, HAVE_STRERROR, HAVE_LOCALE_H
Jack Jansen [Fri, 5 Nov 1999 15:54:46 +0000 (15:54 +0000)]
Added HAVE_LIMITS_H, MAVE_MEMMOVE, HAVE_STRERROR, HAVE_LOCALE_H
since we have these in the current CW release (and probably already had them
quite some time, but never added the defines).

25 years agoChanges to ProgressBar:
Jack Jansen [Fri, 5 Nov 1999 15:53:10 +0000 (15:53 +0000)]
Changes to ProgressBar:
- Don't crash if max=0
- set() now has an optional max parameter, to set the maximum value.

25 years agoChecking in text versions of release forms and explanation.
Guido van Rossum [Fri, 5 Nov 1999 15:21:08 +0000 (15:21 +0000)]
Checking in text versions of release forms and explanation.

25 years agosplit() docstring: Made signature and description for the first
Fred Drake [Thu, 4 Nov 1999 19:19:48 +0000 (19:19 +0000)]
split() docstring:  Made signature and description for the first
                    parameter match.  Error pointed out by François
                    Pinard <pinard@iro.umontreal.ca> on c.l.py.

25 years agoBugfix by Jack Jansen for Macintosh (for the inet_ntoa/aton changes):
Guido van Rossum [Thu, 4 Nov 1999 18:22:29 +0000 (18:22 +0000)]
Bugfix by Jack Jansen for Macintosh (for the inet_ntoa/aton changes):

<arpa/inet.h> doesn't exist and isn't needed; and inet_addr() returns
a structure containing a long rather than a long.

25 years agoTypo fixed in docstring; removed unneccesary import. (jvr)
Just van Rossum [Thu, 4 Nov 1999 10:30:13 +0000 (10:30 +0000)]
Typo fixed in docstring; removed unneccesary import. (jvr)

25 years agoAdapted to new macmudulefinder.process() API. (jvr)
Just van Rossum [Thu, 4 Nov 1999 10:28:59 +0000 (10:28 +0000)]
Adapted to new macmudulefinder.process() API. (jvr)

25 years ago- changed the API of process() so it will return a list of missing modules instead...
Just van Rossum [Thu, 4 Nov 1999 10:28:00 +0000 (10:28 +0000)]
- changed the API of process() so it will return a list of missing modules instead of raising an exception.
- minor cleanups
(jvr)

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.