]> granicus.if.org Git - python/log
python
27 years agoDon't store the exception info from an unhandled exception in a thread
Guido van Rossum [Fri, 6 Feb 1998 22:32:08 +0000 (22:32 +0000)]
Don't store the exception info from an unhandled exception in a thread
in sys.last_*; it prevents proper calling of destructors of local
variables.

27 years agoSet Py_FrozenFlag, to suppress error messages from getpath.c.
Guido van Rossum [Fri, 6 Feb 1998 22:30:29 +0000 (22:30 +0000)]
Set Py_FrozenFlag, to suppress error messages from getpath.c.

27 years ago- Use Py_GetPythonHome() instead of getenv("PYTHONHOME").
Guido van Rossum [Fri, 6 Feb 1998 22:29:30 +0000 (22:29 +0000)]
- Use Py_GetPythonHome() instead of getenv("PYTHONHOME").

- Don't print error messages when Py_FrozenFlag is set.

27 years ago- Add Py_GetPythonHome() and Py_SetPythonHome(), intended to allow
Guido van Rossum [Fri, 6 Feb 1998 22:28:05 +0000 (22:28 +0000)]
- Add Py_GetPythonHome() and Py_SetPythonHome(), intended to allow
embedders to force a different PYTHONHOME.

- Add new interface PyErr_PrintEx(flag); same as PyErr_Print() but
flag determines whether sys.last_* are set or not.  PyErr_Print()
now simply calls PyErr_PrintEx(1).

27 years ago- Add Py_FrozenFlag, intended to suppress error messages fron
Guido van Rossum [Fri, 6 Feb 1998 22:27:46 +0000 (22:27 +0000)]
- Add Py_FrozenFlag, intended to suppress error messages fron
getpath.c in frozen binaries.

27 years agoEhm, three unrelated changes.
Guido van Rossum [Fri, 6 Feb 1998 22:27:24 +0000 (22:27 +0000)]
Ehm, three unrelated changes.

- Add Py_FrozenFlag, intended to suppress error messages fron
getpath.c in frozen binaries.

- Add Py_GetPythonHome() and Py_SetPythonHome(), intended to allow
embedders to force a different PYTHONHOME.

- Add new interface PyErr_PrintEx(flag); same as PyErr_Print() but
flag determines whether sys.last_* are set or not.  PyErr_Print()
now simply calls PyErr_PrintEx(1).

27 years agoRemove commented-out \itembreak.
Fred Drake [Fri, 6 Feb 1998 22:26:04 +0000 (22:26 +0000)]
Remove commented-out \itembreak.

27 years agoUpdate two of the \indexsubitem values to use singular rather than plural form
Fred Drake [Fri, 6 Feb 1998 22:19:23 +0000 (22:19 +0000)]
Update two of the \indexsubitem values to use singular rather than plural form
of "variable": each individual variable should be identified as a single
variable and not a collection in the index.

27 years agoAdded rmtree(), to recursively remove a directory tree.
Guido van Rossum [Fri, 6 Feb 1998 21:38:09 +0000 (21:38 +0000)]
Added rmtree(), to recursively remove a directory tree.
Code by David Ascher (docstring by me).

27 years agoTwo more refinements of the cleanup process.
Guido van Rossum [Fri, 6 Feb 1998 17:16:02 +0000 (17:16 +0000)]
Two more refinements of the cleanup process.

(1) Explicitly clear __builtin__._ and sys.{last,exc}_* before
clearing anything else.  These are common places where user values
hide and people complain when their destructors fail.  Since the
modules containing them are deleted *last* of all, they would come too
late in the normal destruction order.  Sigh.

(2) Add some debugging aid to cleanup (after a suggestion by Marc
Lemburg) -- print the names of the modules being cleaned, and (when
-vv is used) print the names of the variables being cleared.

27 years ago(py-scroll-process-buffer): Default value changed to nil to act more
Barry Warsaw [Fri, 6 Feb 1998 16:01:52 +0000 (16:01 +0000)]
(py-scroll-process-buffer): Default value changed to nil to act more
like default shell-mode behavior.

27 years agoAdd ref to errno module, and change ref to posix.error to os.error.
Guido van Rossum [Fri, 6 Feb 1998 15:18:25 +0000 (15:18 +0000)]
Add ref to errno module, and change ref to posix.error to os.error.

27 years agoAdd ref to errno module.
Guido van Rossum [Fri, 6 Feb 1998 15:18:05 +0000 (15:18 +0000)]
Add ref to errno module.

27 years ago(py-parse-state): When looking for landing inside triple-quoted
Barry Warsaw [Thu, 5 Feb 1998 23:35:09 +0000 (23:35 +0000)]
(py-parse-state): When looking for landing inside triple-quoted
string, don't check for indentation at column zero.  This will falsely
hit a line inside a docstring that starts at column zero but ends in a
colon.

27 years ago(py-python-command-args): New variable, allows user to customize the
Barry Warsaw [Thu, 5 Feb 1998 20:45:49 +0000 (20:45 +0000)]
(py-python-command-args): New variable, allows user to customize the
arguments past to py-python-command when invoking the Python shell.

27 years agoRetract the statement that all functions called by Python (even method
Guido van Rossum [Thu, 5 Feb 1998 19:59:39 +0000 (19:59 +0000)]
Retract the statement that all functions called by Python (even method
defs) need to be declared extern "C" -- it seems to have no basis in
truth (any more?).

27 years agoTwo suggested features by Sjoerd:
Guido van Rossum [Thu, 5 Feb 1998 16:22:27 +0000 (16:22 +0000)]
Two suggested features by Sjoerd:

- use the tempcache in the open() method, too.

- use the "unwrap"ped url as key for the tempcache.

27 years ago(1) Use matchobj.groups(), not matchbj.group() to get all groups.
Guido van Rossum [Thu, 5 Feb 1998 16:21:28 +0000 (16:21 +0000)]
(1) Use matchobj.groups(), not matchbj.group() to get all groups.

(2) Provisional hack to avoid dying when trying to turn echo on or off
on Macs, where os.system() doesn't exist.

27 years agoFixed bitmaps; added include files and libs;
Guido van Rossum [Thu, 5 Feb 1998 02:26:02 +0000 (02:26 +0000)]
Fixed bitmaps; added include files and libs;
moved DLLs into their own directory (and added it to default path);
install zlib.dll in SYS32; fixed location of help root.

27 years agoAdd *.pdf files to the clobber target (same target as *.ps).
Fred Drake [Wed, 4 Feb 1998 20:33:13 +0000 (20:33 +0000)]
Add *.pdf files to the clobber target (same target as *.ps).

27 years agoTell CVS to ignore PDF files.
Fred Drake [Wed, 4 Feb 1998 20:27:39 +0000 (20:27 +0000)]
Tell CVS to ignore PDF files.

27 years agoAdded description of "D" format for PyArg_ParseTuple(), including example
Fred Drake [Wed, 4 Feb 1998 20:26:31 +0000 (20:26 +0000)]
Added description of "D" format for PyArg_ParseTuple(), including example
use with function name provided as well.

Wrapped up PyArg_ParseTupleAndKeywords() description and provided example
based on Geoff Philbrick's example to the mailing list.

27 years agoUse implicit rules to perform DVI->PS and PS->PDF conversions. PDF conversion
Fred Drake [Wed, 4 Feb 1998 19:54:40 +0000 (19:54 +0000)]
Use implicit rules to perform DVI->PS and PS->PDF conversions.  PDF conversion
requires "distill" from a FrameMaker installation.  ;-)  Would probably need
to be different for Windows/Mac.

27 years ago\modindex{}: New macro; index module without declaring it "built-in" or
Fred Drake [Wed, 4 Feb 1998 14:43:36 +0000 (14:43 +0000)]
\modindex{}:  New macro; index module without declaring it "built-in" or
"standard".  This is mostly for documentation of modules outside the
standard library.

27 years agoAdded missing "{" for "\code <?stuff?>}".
Fred Drake [Tue, 3 Feb 1998 23:12:13 +0000 (23:12 +0000)]
Added missing "{" for "\code <?stuff?>}".

27 years agoFix typo in format for strftime() used by cookie code.
Guido van Rossum [Mon, 2 Feb 1998 03:19:06 +0000 (03:19 +0000)]
Fix typo in format for strftime() used by cookie code.

27 years agoClarify that capwords() removes leading/trailing whitespace.
Guido van Rossum [Mon, 2 Feb 1998 03:01:10 +0000 (03:01 +0000)]
Clarify that capwords() removes leading/trailing whitespace.

Remove references to regsub, which is obsolescent.

27 years agoMoved toplevel widget to PyncheWidget.py
Barry Warsaw [Sat, 31 Jan 1998 23:39:28 +0000 (23:39 +0000)]
Moved toplevel widget to PyncheWidget.py

27 years agoInitial revision
Barry Warsaw [Sat, 31 Jan 1998 23:39:01 +0000 (23:39 +0000)]
Initial revision

27 years agoBadColor: new exception class
Barry Warsaw [Sat, 31 Jan 1998 23:38:48 +0000 (23:38 +0000)]
BadColor: new exception class

rrggbb_to_triplet(): New utility function

27 years agoBetter implementation of nearest(). Not faster, but better
Barry Warsaw [Sat, 31 Jan 1998 00:32:07 +0000 (00:32 +0000)]
Better implementation of nearest().  Not faster, but better

27 years agoInitial revision
Barry Warsaw [Sat, 31 Jan 1998 00:29:41 +0000 (00:29 +0000)]
Initial revision

27 years agomered Greg's suggestions, added docstring
Barry Warsaw [Fri, 30 Jan 1998 21:11:52 +0000 (21:11 +0000)]
mered Greg's suggestions, added docstring

27 years agoInitial revision
Barry Warsaw [Thu, 29 Jan 1998 23:48:55 +0000 (23:48 +0000)]
Initial revision

27 years agoAdd S_ISBLK().
Guido van Rossum [Thu, 29 Jan 1998 22:03:41 +0000 (22:03 +0000)]
Add S_ISBLK().

27 years agoMake this test work when imported from the interpreter instead of run
Guido van Rossum [Thu, 29 Jan 1998 21:53:17 +0000 (21:53 +0000)]
Make this test work when imported from the interpreter instead of run
from regrtest.py (it still works there too, of course).

27 years agoSez The Dragon:
Guido van Rossum [Thu, 29 Jan 1998 17:26:45 +0000 (17:26 +0000)]
Sez The Dragon:
Ok, I fixed the quotes, along with a bug or two.
Also added another exception.

27 years agoSMTP client by The Dragon De Monsyne <dragondm@integral.org>.
Guido van Rossum [Thu, 29 Jan 1998 17:24:40 +0000 (17:24 +0000)]
SMTP client by The Dragon De Monsyne <dragondm@integral.org>.

27 years agoNew version of xmllib from Sjoerd.
Guido van Rossum [Thu, 29 Jan 1998 14:55:24 +0000 (14:55 +0000)]
New version of xmllib from Sjoerd.
The main incompatibility is that the error reporting method is now
called as
 parser.syntax_error(msg)
instead of
 parser.syntax_error(lineno, msg)

This new version also has some code to deal with the <?xml?> and
<!DOCTYPE> tags at the start of an XML document.
The documentation has been updated, and a small test module has been
created.

27 years agoAdd Piet van Oostrum's name to the comments.
Guido van Rossum [Thu, 29 Jan 1998 04:04:04 +0000 (04:04 +0000)]
Add Piet van Oostrum's name to the comments.

27 years agoAdd simple Unix socket example by Piet van Oostrum.
Guido van Rossum [Wed, 28 Jan 1998 16:54:00 +0000 (16:54 +0000)]
Add simple Unix socket example by Piet van Oostrum.

27 years agoFixed typo reported by Grzegorz Makarewicz <mak@mikroplan.com.pl>.
Fred Drake [Wed, 28 Jan 1998 14:59:48 +0000 (14:59 +0000)]
Fixed typo reported by Grzegorz Makarewicz <mak@mikroplan.com.pl>.

27 years ago(This fix is really by Jeremy)
Guido van Rossum [Tue, 27 Jan 1998 19:29:45 +0000 (19:29 +0000)]
(This fix is really by Jeremy)

Here's my suggested replacement for gzip.py for 1.5.1.  I've
re-implemeted methods readline and readlines, added an _unread, and
tweaked read and _read.

I tried a more complicated buffer scheme for unread (using a list of
strings and string.join), but it was more complicated and slower.
This version is a lot faster than the current version and is still
pretty simple.

27 years agoAdd a note explaining that multiplying a sequence with a negative
Guido van Rossum [Tue, 27 Jan 1998 19:09:43 +0000 (19:09 +0000)]
Add a note explaining that multiplying a sequence with a negative
number is the same as multiplying it with zero, and yields an empty
sequence.

27 years agoInitial revision
Barry Warsaw [Tue, 27 Jan 1998 03:19:00 +0000 (03:19 +0000)]
Initial revision

27 years agoUnpickler.load_inst(), Unpickler.load_obj(), Unpickler.load_build():
Barry Warsaw [Mon, 26 Jan 1998 22:47:35 +0000 (22:47 +0000)]
Unpickler.load_inst(), Unpickler.load_obj(), Unpickler.load_build():
Fixed problems when unpickling in restricted execution environments.
These methods try to assign to an instance's __class__ attribute, or
access the instances __dict__, which are prohibited in REE.  For the
first two methods, I re-implemented the old behavior when assignment
to value.__class__ fails.

For the load_build() I also re-implemented the old behavior when
inst.__dict__.update() fails but this means that unpickling in REE is
semantically different than unpickling in unrestricted mode.

27 years agoget(): Fixed a bug in the merge order of the dictionaries. This makes
Barry Warsaw [Mon, 26 Jan 1998 22:42:48 +0000 (22:42 +0000)]
get(): Fixed a bug in the merge order of the dictionaries.  This makes
a copy of the defaults dictionary and merges the section's dictionary
into it so that sections can override the defaults.

27 years agoPy_AtExit(): Added brief note about the constraint on cleanup functions not
Fred Drake [Mon, 26 Jan 1998 19:16:27 +0000 (19:16 +0000)]
Py_AtExit():  Added brief note about the constraint on cleanup functions not
      calling the Python API.

27 years agoPaint demo by Dave Mitchell. There's clearly a demand for such a
Guido van Rossum [Mon, 26 Jan 1998 16:47:30 +0000 (16:47 +0000)]
Paint demo by Dave Mitchell.  There's clearly a demand for such a
demo, so here it is.

27 years agoUse \url{} to mark a URL.
Fred Drake [Thu, 22 Jan 1998 20:47:26 +0000 (20:47 +0000)]
Use \url{} to mark a URL.

27 years agoUse \url{} to mark URLs, \email{} to mark an email address.
Fred Drake [Thu, 22 Jan 1998 20:45:31 +0000 (20:45 +0000)]
Use \url{} to mark URLs, \email{} to mark an email address.

27 years agoUse \url{} to mark URLs.
Fred Drake [Thu, 22 Jan 1998 20:44:18 +0000 (20:44 +0000)]
Use \url{} to mark URLs.

27 years agoFixed indexing of {datadesc} environments.
Fred Drake [Thu, 22 Jan 1998 18:14:39 +0000 (18:14 +0000)]
Fixed indexing of {datadesc} environments.

Removed " (byte code instruction)" from the output of the {opcodedesc}
environment; this should only appear in the index (which it now does).

Removed some really old cruft related to otherwise removed debugging code.
(I *think* assignments to $* set & clear auto-flush of <STDOUT>, but don't
really remember.  Removing them seems to not change anything!)

27 years ago\seemodule{}: Use logical markup for the module name, to ensure it picks up
Fred Drake [Thu, 22 Jan 1998 17:43:15 +0000 (17:43 +0000)]
\seemodule{}:  Use logical markup for the module name, to ensure it picks up
any changes introduced there.  Also ensure a little more space between
the module name and the parenthesized comment.

27 years agoAdded descriptions for log() and log10().
Fred Drake [Thu, 22 Jan 1998 17:37:50 +0000 (17:37 +0000)]
Added descriptions for log() and log10().

Clarified that floor() and ceil() return reals.  Same for the integer part
returned by modf().

Some markup consistency changes.

27 years agoAdd support for the new macros, including hyperlink generation for \url{}.
Fred Drake [Thu, 22 Jan 1998 16:13:44 +0000 (16:13 +0000)]
Add support for the new macros, including hyperlink generation for \url{}.

27 years agoConverted to use new macros. This example demonstrate \method{} and, more
Fred Drake [Thu, 22 Jan 1998 16:11:18 +0000 (16:11 +0000)]
Converted to use new macros.  This example demonstrate \method{} and, more
importantly, \url{}.

27 years agoConverted to use semantic markup. This is an example of how many of the new
Fred Drake [Thu, 22 Jan 1998 15:56:41 +0000 (15:56 +0000)]
Converted to use semantic markup.  This is an example of how many of the new
constructs should be used.

27 years agoRevised new macros after discussion with Guido: Always use full names of
Fred Drake [Thu, 22 Jan 1998 15:55:21 +0000 (15:55 +0000)]
Revised new macros after discussion with Guido:  Always use full names of
semantic concepts.

Added two new ones (not discussed with Guido:

\constant{}:  Markup for constants defined in Python modules.

\cfunction{}:  Markup for C functions; these should probably be distinguished
by font, but are not at this time (since they're typically \code{} at
this point).

27 years ago(py-outdent-p): When looking at the previous line, watch out for
Barry Warsaw [Wed, 21 Jan 1998 05:36:18 +0000 (05:36 +0000)]
(py-outdent-p): When looking at the previous line, watch out for
continuation lines.  This fixes this bug report, reported by Frank
Stajano.

# But if I split the "raise" line and reindent, the else WRONGLY goes up a
# level (?!?)

while condition1:
    if condition2:
        raise error3, \
              moreInfo4
else: # meant to close "if condition2"
    action5()

27 years ago(py-goto-initial-line): Shut up the byte compiler.
Barry Warsaw [Wed, 21 Jan 1998 05:15:57 +0000 (05:15 +0000)]
(py-goto-initial-line): Shut up the byte compiler.

27 years ago(py-mode-map): Add a binding of C-m to py-newline-and-indent. This is
Barry Warsaw [Wed, 21 Jan 1998 05:14:24 +0000 (05:14 +0000)]
(py-mode-map): Add a binding of C-m to py-newline-and-indent.  This is
a religious issue: RMS decrees that the Enter (RET) key should just do
a newline and a LFD (C-j) should do a newline and indent (i.e. the
python-mode version of this).  Almost everyone I know disagrees and
finds that RET should do newline and indent.  Almost everyone hacks
their modes to do this, if they know how.  Because it's hard for
newbies to figure out how to do this, and because most DOS keyboards
lack a LFD (leaving users to the more obscure C-j), I think it makes
better sense to add this default binding.

27 years agoAdd entry for copy_reg module.
Fred Drake [Wed, 21 Jan 1998 05:04:52 +0000 (05:04 +0000)]
Add entry for copy_reg module.

27 years agoRemoved entry for copy_reg module.
Fred Drake [Wed, 21 Jan 1998 05:00:28 +0000 (05:00 +0000)]
Removed entry for copy_reg module.

27 years ago$(LIBFILES): Added libcopyreg.tex.
Fred Drake [Wed, 21 Jan 1998 04:59:44 +0000 (04:59 +0000)]
$(LIBFILES):  Added libcopyreg.tex.

27 years agoAdd entry for copy_reg module.
Fred Drake [Wed, 21 Jan 1998 04:58:39 +0000 (04:58 +0000)]
Add entry for copy_reg module.

27 years agoSimple documentation of the copy_reg module.
Fred Drake [Wed, 21 Jan 1998 04:58:10 +0000 (04:58 +0000)]
Simple documentation of the copy_reg module.

Guido, you should probably look at this.  The pickle documentation is out of
date; I don't see anything about the __reduce__() stuff or the
__safe_for_unpickling__ attribute.

27 years agoUpdate comment about relative URL internet draft to reflect current RFC status;
Fred Drake [Wed, 21 Jan 1998 04:55:02 +0000 (04:55 +0000)]
Update comment about relative URL internet draft to reflect current RFC status;
index references the appropriate RFCs.

Consistency:  Always use trailing "()" on function names in running text.

27 years ago(py-compute-indentation): In the most common case, where indentation
Barry Warsaw [Tue, 20 Jan 1998 22:52:56 +0000 (22:52 +0000)]
(py-compute-indentation): In the most common case, where indentation
is based on the line above, watch out for landing inside a triple
quoted string.  In this case, use iterative search +
parse-partial-sexp backwards to find the beginning of the string.

Note this does affect performance, but very little in the common cases
(I hope).  It could be made *much* faster by adding Emacs and XEmacs
dependent code -- different code naturally.  :-(

Fixes the following reported bug:

if len(sys.argv) >= 6:
    # More lines here
    fptr = open('/etc/hosts', 'w')
    fptr.write("""# /etc/hosts -- autocreated by /etc/ppp/ip-up
#
# Address from pppd
%-15s %s

# For loopbacking
127.0.0.1 localhost

255.255.255.255 broadcast
""" % (ipaddr, ipname) )

os.chmod('/etc/hosts', 0644)

27 years ago(py-master-file): New buffer-local variable which can be set in the
Barry Warsaw [Tue, 20 Jan 1998 21:43:34 +0000 (21:43 +0000)]
(py-master-file): New buffer-local variable which can be set in the
file local variable section of a file.  When set, and the user hits
C-c C-c, this file gets executed instead of the buffer's file.  Idea
given by Roy Dragseth <royd@math.uit.no>, but implemented differently.

(py-execute-buffer): Support py-master-file variable.  If this names a
relative path, default-directory is prepended via expand-file-name.

27 years agoAdded a bunch of "concept" index entries.
Fred Drake [Tue, 20 Jan 1998 05:52:23 +0000 (05:52 +0000)]
Added a bunch of "concept" index entries.

Use trailing "()" on function names in running text.

27 years agoAdded index entry and \label{} for exceptions module. This isn't in the
Fred Drake [Tue, 20 Jan 1998 05:26:12 +0000 (05:26 +0000)]
Added index entry and \label{} for exceptions module.  This isn't in the
normal modules portion of the manual, but that's the basic effect of this
section with the 1.5 change in exception support.

27 years agoAlways mark variables in the "Notes" following a table the same way as in the
Fred Drake [Tue, 20 Jan 1998 05:20:39 +0000 (05:20 +0000)]
Always mark variables in the "Notes" following a table the same way as in the
tables:  \var{}

Add a couple of index entries to the File Objects section.

27 years agoRemoved bogus index entry for the type() built-in.
Fred Drake [Tue, 20 Jan 1998 05:12:36 +0000 (05:12 +0000)]
Removed bogus index entry for the type() built-in.

Marked title of the Python Reference Manual as \emph{}, like other Python
manual titles.

27 years agoProposed new macros: see comments. These are not yet used.
Fred Drake [Tue, 20 Jan 1998 05:07:19 +0000 (05:07 +0000)]
Proposed new macros:  see comments.  These are not yet used.

These are intended to support semantic markup.  There are a number
of places in the documentation where the exact meaning of an
indentifier marked \code{} in the running text is ambiguous (could
be a module or a class, a function or a method, etc.).  These are
intended to clarify the intent of the identifier for processing
applications and more intelligent style processing.

27 years agoConsistency: "{\tt ...}" ==> "\code{...}"
Fred Drake [Tue, 20 Jan 1998 04:55:47 +0000 (04:55 +0000)]
Consistency:  "{\tt ...}" ==> "\code{...}"

27 years agoConsistency: "{\it ...}" ==> "\emph{...}"
Fred Drake [Tue, 20 Jan 1998 04:54:23 +0000 (04:54 +0000)]
Consistency:  "{\it ...}" ==> "\emph{...}"

27 years agoThe soundex module is built-in, not standard.
Fred Drake [Tue, 20 Jan 1998 04:45:44 +0000 (04:45 +0000)]
The soundex module is built-in, not standard.

"--" ==> "---"

27 years agoConsistency: {\it ...} ==> \emph{...}
Fred Drake [Tue, 20 Jan 1998 04:43:29 +0000 (04:43 +0000)]
Consistency:  {\it ...} ==> \emph{...}

27 years agoni is a standard module, not a built-in module. The only other reference to
Fred Drake [Tue, 20 Jan 1998 04:40:41 +0000 (04:40 +0000)]
ni is a standard module, not a built-in module.  The only other reference to
it already got it right.

27 years agoConsistency: (Yes, I know this section is not formatted by default, and
Fred Drake [Tue, 20 Jan 1998 04:32:09 +0000 (04:32 +0000)]
Consistency:  (Yes, I know this section is not formatted by default, and
      isn't likely to be of much interest these days....)

{\tt ...} ==> \code{...}

Added \label{module-blat} for the two supporting modules.

Added index entries for referred-to modules.

27 years agoRenamed Jim's PyErr_[JF]Format() to cPickle_ErrFormat(). It's not a
Guido van Rossum [Mon, 19 Jan 1998 23:18:18 +0000 (23:18 +0000)]
Renamed Jim's PyErr_[JF]Format() to cPickle_ErrFormat().  It's not a
standard Python API function so it should not have a Py prefix.

27 years agoRemoved a confusing note about coercions and __r*__ operators.
Guido van Rossum [Mon, 19 Jan 1998 23:16:55 +0000 (23:16 +0000)]
Removed a confusing note about coercions and __r*__ operators.

27 years agoVarious updates to the effect that the group argument is always optional.
Guido van Rossum [Mon, 19 Jan 1998 23:14:17 +0000 (23:14 +0000)]
Various updates to the effect that the group argument is always optional.
Also documented that groups() now always returns a tuple.

27 years agoAdd note about dropping latex 2.09 compatibility.
Guido van Rossum [Mon, 19 Jan 1998 23:10:21 +0000 (23:10 +0000)]
Add note about dropping latex 2.09 compatibility.

27 years agoRevamped, to match py_compile.py:
Guido van Rossum [Mon, 19 Jan 1998 23:07:55 +0000 (23:07 +0000)]
Revamped, to match py_compile.py:

- added docstrings
- support option to specify a different purported directory name
- reindented with 4 spaces

27 years agoAdd Gopher to list of protocols that support query strings.
Guido van Rossum [Mon, 19 Jan 1998 22:27:21 +0000 (22:27 +0000)]
Add Gopher to list of protocols that support query strings.

27 years agoFix bad new bug in ftp code -- the test for existing file using NLST
Guido van Rossum [Mon, 19 Jan 1998 22:26:54 +0000 (22:26 +0000)]
Fix bad new bug in ftp code -- the test for existing file using NLST
would set the transfer to text mode instead of the specified mode.

27 years agoFix to ismount(). Can't remember who told me this.
Guido van Rossum [Mon, 19 Jan 1998 22:25:59 +0000 (22:25 +0000)]
Fix to ismount().  Can't remember who told me this.

27 years agoPatch by Tim O'Malley for servers that send a response looking just like
Guido van Rossum [Mon, 19 Jan 1998 22:25:24 +0000 (22:25 +0000)]
Patch by Tim O'Malley for servers that send a response looking just like
    HTTP/1.x 200
instead of
    HTTP/1.x 200 OK

27 years agoProtect PyErr_Format format string argument from overflow.
Guido van Rossum [Mon, 19 Jan 1998 22:23:08 +0000 (22:23 +0000)]
Protect PyErr_Format format string argument from overflow.

27 years agoProtect PyErr_Format format string argument from overflow (ironically,
Guido van Rossum [Mon, 19 Jan 1998 22:22:44 +0000 (22:22 +0000)]
Protect PyErr_Format format string argument from overflow (ironically,
the error was about a bad format string :-).

27 years agoInstead of "attribute-less object", issue an error message that
Guido van Rossum [Mon, 19 Jan 1998 22:16:36 +0000 (22:16 +0000)]
Instead of "attribute-less object", issue an error message that
contains the type of the object and name of the attribute.

27 years agotok_nextc() should return unsigned characters, to avoid mistaking
Guido van Rossum [Mon, 19 Jan 1998 22:07:46 +0000 (22:07 +0000)]
tok_nextc() should return unsigned characters, to avoid mistaking
'\377' for EOF.

27 years agoInstead of a single exists(), differentiate between files, modules,
Guido van Rossum [Mon, 19 Jan 1998 22:06:22 +0000 (22:06 +0000)]
Instead of a single exists(), differentiate between files, modules,
executable files, and directories.  When expecting a module, we also
look for the .pyc or .pyo file.

27 years agoAdd unistd.h for isatty().
Guido van Rossum [Mon, 19 Jan 1998 22:05:22 +0000 (22:05 +0000)]
Add unistd.h for isatty().

27 years agoAdd LOG_SYSLOG if defined.
Guido van Rossum [Mon, 19 Jan 1998 22:05:08 +0000 (22:05 +0000)]
Add LOG_SYSLOG if defined.

27 years agoBetter #ifdefs for NetBSD, taking into account that at least on netBSD
Guido van Rossum [Mon, 19 Jan 1998 22:03:52 +0000 (22:03 +0000)]
Better #ifdefs for NetBSD, taking into account that at least on netBSD
1.3, dlopen() etc. are fully implemented, including dlerror().
From Jaromir Dolecek and Ty Sarna.

27 years agoIt seems obvious that when Py_Finalize() decides that there's nothing
Guido van Rossum [Mon, 19 Jan 1998 22:00:38 +0000 (22:00 +0000)]
It seems obvious that when Py_Finalize() decides that there's nothing
to do, it should not call sys.exitfunc either...

27 years agoSome patches by Lars Marius Garshol:
Guido van Rossum [Mon, 19 Jan 1998 21:59:48 +0000 (21:59 +0000)]
Some patches by Lars Marius Garshol:

- fix type_to_name(); it never worked
- add path_to_selector()
add path_to_datatype_name()