]> granicus.if.org Git - python/log
python
28 years agoChange all three fopen calls to use binary mode.
Guido van Rossum [Fri, 21 Feb 1997 15:19:03 +0000 (15:19 +0000)]
Change all three fopen calls to use binary mode.

28 years agoLee's next version. Careful: this now dumps core for me on SGI IRIX 5.3.
Guido van Rossum [Fri, 21 Feb 1997 01:22:47 +0000 (01:22 +0000)]
Lee's next version.  Careful: this now dumps core for me on SGI IRIX 5.3.
Lee is wondering whether to withdraw his patchs.  Sigh.

28 years agoRemoved nonstandard strftime formats (strftime is tested more
Guido van Rossum [Thu, 20 Feb 1997 16:23:01 +0000 (16:23 +0000)]
Removed nonstandard strftime formats (strftime is tested more
extensively in test_strftime.py anyway).

28 years agoRebuilt everything with Guido's new sources, added a few modules here
Jack Jansen [Thu, 20 Feb 1997 15:28:31 +0000 (15:28 +0000)]
Rebuilt everything with Guido's new sources, added a few modules here
and there, etc. These projects are still CW10.

28 years agoAdded calldll module
Jack Jansen [Thu, 20 Feb 1997 15:27:44 +0000 (15:27 +0000)]
Added calldll module

28 years ago- Put USE_MAC_DYNAMIC_LOADING beack here in stead of auto-enabling it
Jack Jansen [Thu, 20 Feb 1997 15:25:49 +0000 (15:25 +0000)]
- Put USE_MAC_DYNAMIC_LOADING beack here in stead of auto-enabling it
  in importdl.c (I had just one crash too many with a static python
  importing a dynamic module)
- On powerpc, enable USE_CACHE_ALIGNED with a linesize of 32 bytes.

28 years agoOnly go into eventloop/interrupt check 10 times per second
Jack Jansen [Thu, 20 Feb 1997 15:23:18 +0000 (15:23 +0000)]
Only go into eventloop/interrupt check 10 times per second

28 years agoComments around identifier after #endif
Jack Jansen [Thu, 20 Feb 1997 15:22:17 +0000 (15:22 +0000)]
Comments around identifier after #endif

28 years agoAdded operator, errno and soundex modules.
Jack Jansen [Thu, 20 Feb 1997 15:20:46 +0000 (15:20 +0000)]
Added operator, errno and soundex modules.

28 years agoRedid arg/return handling (still not as I would like it to be, though).
Jack Jansen [Thu, 20 Feb 1997 15:18:32 +0000 (15:18 +0000)]
Redid arg/return handling (still not as I would like it to be, though).

28 years agoRemove some bogus code that would cause a NameError if a -r option was passed.
Guido van Rossum [Wed, 19 Feb 1997 20:07:38 +0000 (20:07 +0000)]
Remove some bogus code that would cause a NameError if a -r option was passed.

28 years agoRemove %n and %t from the list of standard expectations.
Guido van Rossum [Wed, 19 Feb 1997 16:25:52 +0000 (16:25 +0000)]
Remove %n and %t from the list of standard expectations.

28 years agojoin(): Wax the incorrect leading comment
Barry Warsaw [Tue, 18 Feb 1997 22:06:21 +0000 (22:06 +0000)]
join(): Wax the incorrect leading comment

28 years agoDocument the new join() semantics.
Barry Warsaw [Tue, 18 Feb 1997 21:53:53 +0000 (21:53 +0000)]
Document the new join() semantics.

28 years agoRestructured quite a bit, hopefully Lee Busby will find this useful.
Guido van Rossum [Tue, 18 Feb 1997 21:53:32 +0000 (21:53 +0000)]
Restructured quite a bit, hopefully Lee Busby will find this useful.
Also grandly renamed.

Here's the new interface:

When WITH_READLINE is defined, two functions are defined:

  - PyOS_GnuReadline (what used to be my_readline() with WITH_READLINE)
  - PyOS_ReadlineInit (for Dave Ascher)

Always, these functions are defined:

  - PyOS_StdioReadline (what used to be my_readline() without WITH_READLINE)
  - PyOS_Readline (the interface used by tokenizer.c and [raw_]input().

There's a global function pointer PyOS_ReadlineFunctionPointer,
initialized to NULL.  When PyOS_Readline finds this to be NULL, it
sets it to either PyOS_GnuReadline or PyOS_StdioReadline depending on
which one makes more sense (i.e. it uses GNU only if it is defined
*and* stdin is indeed a tty device).

An embedding program that has its own wishes can set the function
pointer to a function of its own design.  It should take a char*
prompt argument (which may be NULL) and return a string *ending in a
\n character* -- or "" for EOF or NULL for a user interrupt.

--Guido van Rossum (home page: http://www.python.org/~guido/)

28 years agojoin(): join one or more path components
Barry Warsaw [Tue, 18 Feb 1997 21:53:25 +0000 (21:53 +0000)]
join(): join one or more path components

28 years agoAdded a paragraph to describe clear_cache(), and why it's necessary.
Barry Warsaw [Tue, 18 Feb 1997 18:59:37 +0000 (18:59 +0000)]
Added a paragraph to describe clear_cache(), and why it's necessary.

28 years agoDocument the new get_syntax() function.
Barry Warsaw [Tue, 18 Feb 1997 18:54:30 +0000 (18:54 +0000)]
Document the new get_syntax() function.

28 years agoStore the current regex syntax along with the regular expression
Barry Warsaw [Tue, 18 Feb 1997 18:52:55 +0000 (18:52 +0000)]
Store the current regex syntax along with the regular expression
string as the key to the cache.  This means that changing the syntax
will return the correct compiled pattern.

clear_cache(): New function.

28 years agoregex_get_syntax(): New module function exported to Python.
Barry Warsaw [Tue, 18 Feb 1997 18:48:50 +0000 (18:48 +0000)]
regex_get_syntax(): New module function exported to Python.

28 years agoPut back #! /usr/local/bin/python. For cgi scripts, /usr/bin/env is
Guido van Rossum [Tue, 18 Feb 1997 16:55:33 +0000 (16:55 +0000)]
Put back #! /usr/local/bin/python.  For cgi scripts, /usr/bin/env is
unlikely to find a python binary, as /usr/local/bin is usually not on
the default search path.

28 years agoChange the question about os.environ changes not working -- it now
Guido van Rossum [Mon, 17 Feb 1997 18:40:02 +0000 (18:40 +0000)]
Change the question about os.environ changes not working -- it now
works unless you don't have putenv.

28 years agoTwo changes:
Guido van Rossum [Mon, 17 Feb 1997 18:27:32 +0000 (18:27 +0000)]
Two changes:
- add awarning about reconfiguring after Slackware96 fix
- add reference to Jim F's ExtensionClass module

28 years agoAn initial stab at calling random C routines from Python
Jack Jansen [Mon, 17 Feb 1997 16:56:56 +0000 (16:56 +0000)]
An initial stab at calling random C routines from Python

28 years agoInitial stab at calling C routines from python dynamically
Jack Jansen [Mon, 17 Feb 1997 16:56:14 +0000 (16:56 +0000)]
Initial stab at calling C routines from python dynamically

28 years agoRequire _tkinter -- don't attempt to import tkinter when _tkinter does
Guido van Rossum [Sat, 15 Feb 1997 18:33:24 +0000 (18:33 +0000)]
Require _tkinter -- don't attempt to import tkinter when _tkinter does
not exist.  All 8 uses of tkinter are replaced with _tkinter.  Still
create a variable tkinter though, because that is used by other
modules importing Tkinter (e.g. tkinter.createfilehandler()).

Also added a comment to the 'import _tkinter' line saying that if this
fails, Python is not configured correctly.

28 years agoAdd fpectl and fpetest modules.
Guido van Rossum [Fri, 14 Feb 1997 23:03:31 +0000 (23:03 +0000)]
Add fpectl and fpetest modules.

28 years agoChanges for Lee Busby's SIGFPE patch set.
Guido van Rossum [Fri, 14 Feb 1997 23:00:34 +0000 (23:00 +0000)]
Changes for Lee Busby's SIGFPE patch set.
New symbol WANT_SIGFPE_HANDLER.

28 years agoChanges for Lee Busby's SIGFPE patch set.
Guido van Rossum [Fri, 14 Feb 1997 22:59:58 +0000 (22:59 +0000)]
Changes for Lee Busby's SIGFPE patch set.
Two new modules fpectl and fpetest.
Surround various and sundry f.p. operations with PyFPE_*_PROTECT macros.

28 years agoChanges for Lee Busby's SIGFPE patch set.
Guido van Rossum [Fri, 14 Feb 1997 22:58:07 +0000 (22:58 +0000)]
Changes for Lee Busby's SIGFPE patch set.
New file pyfpe.c and exception FloatingPointError.
Surround some f.p. operations with PyFPE macro brackets.

28 years agoChanges for Lee Busby's SIGFPE patch set.
Guido van Rossum [Fri, 14 Feb 1997 22:54:21 +0000 (22:54 +0000)]
Changes for Lee Busby's SIGFPE patch set.
Surround various f.p. operations with  PyFPE_{START,END}_PROTECT macros.

28 years agoChanges for Lee Busby's SIGFPE patch set.
Guido van Rossum [Fri, 14 Feb 1997 22:53:12 +0000 (22:53 +0000)]
Changes for Lee Busby's SIGFPE patch set.
New file pyfpe.h, new exception FloatingPointError.

28 years agoFix the comments for bitwise and/or.
Guido van Rossum [Fri, 14 Feb 1997 22:51:40 +0000 (22:51 +0000)]
Fix the comments for bitwise and/or.

28 years agoKeep gcc -Wall happy.
Guido van Rossum [Fri, 14 Feb 1997 21:12:56 +0000 (21:12 +0000)]
Keep gcc -Wall happy.

28 years agoAdded decl for Py_AddPendingCall and include mymalloc.h, all to keep
Guido van Rossum [Fri, 14 Feb 1997 21:12:24 +0000 (21:12 +0000)]
Added decl for Py_AddPendingCall and include mymalloc.h, all to keep
lint happy.

28 years agoAdd parentheses around && within || as gcc -Wall advises.
Guido van Rossum [Fri, 14 Feb 1997 21:00:50 +0000 (21:00 +0000)]
Add parentheses around && within || as gcc -Wall advises.

28 years agoOops, remove an unused variable from PyErr_Format().
Guido van Rossum [Fri, 14 Feb 1997 20:57:31 +0000 (20:57 +0000)]
Oops, remove an unused variable from PyErr_Format().

28 years agoAdded decl for Py_FdIsInteractive.
Guido van Rossum [Fri, 14 Feb 1997 19:51:34 +0000 (19:51 +0000)]
Added decl for Py_FdIsInteractive.

28 years agoAdded decl for Py_InteractiveFlag.
Guido van Rossum [Fri, 14 Feb 1997 19:51:09 +0000 (19:51 +0000)]
Added decl for Py_InteractiveFlag.

28 years agoMy version of Lee Busby's patches to make '-i' pretend stdin is a tty
Guido van Rossum [Fri, 14 Feb 1997 19:50:32 +0000 (19:50 +0000)]
My version of Lee Busby's patches to make '-i' pretend stdin is a tty
even if it isn't.  Changes:

- set the global flag Py_InteractiveFlag when -i is given
- call Py_FdIsInteractive() instead of isatty()
- make stdin unbuffered, too, when using -u
- make stdin and stdout line buffered, when stdin is interactive and not -u

Note that setting the environment variable PYTHONINSPECT does not have
these extra effects of -i.  (Should it?)

Unlike Lee's changes, I don't set change the prompt to go to stderr
when -i is given.

28 years agoAdded new global flag variable Py_InteractiveFlag and new function
Guido van Rossum [Fri, 14 Feb 1997 19:45:36 +0000 (19:45 +0000)]
Added new global flag variable Py_InteractiveFlag and new function
Py_FdIsInteractive().  The flag is supposed to be set by the -i
command line option.  The function is supposed to be called instead of
isatty().  This is used for Lee Busby's wish #1, to have an option
that pretends stdin is interactive even when it really isn't.

28 years agoAdded PyArg_ParseTupleAndKeywords, PyErr_Format.
Guido van Rossum [Fri, 14 Feb 1997 17:11:33 +0000 (17:11 +0000)]
Added PyArg_ParseTupleAndKeywords, PyErr_Format.

28 years agoAdded prototype for PyErr_Format(exception, formatstring, ...) -> NULL.
Guido van Rossum [Fri, 14 Feb 1997 17:10:25 +0000 (17:10 +0000)]
Added prototype for PyErr_Format(exception, formatstring, ...) -> NULL.

28 years agoAdded convenience function PyErr_Format(exception, formatstring, ...) -> NULL.
Guido van Rossum [Fri, 14 Feb 1997 17:09:47 +0000 (17:09 +0000)]
Added convenience function PyErr_Format(exception, formatstring, ...) -> NULL.

28 years agoAdded .cxx and .cpp to extensions recognized as source files.
Guido van Rossum [Fri, 14 Feb 1997 16:44:04 +0000 (16:44 +0000)]
Added .cxx and .cpp to extensions recognized as source files.

28 years agoAdded PyArg_ParseTupleAndKeywords() prototype.
Guido van Rossum [Fri, 14 Feb 1997 16:36:35 +0000 (16:36 +0000)]
Added PyArg_ParseTupleAndKeywords() prototype.

28 years agodjgpp support.
Guido van Rossum [Fri, 14 Feb 1997 16:36:08 +0000 (16:36 +0000)]
djgpp support.

28 years agodjgpp fix (SIGMAX).
Guido van Rossum [Fri, 14 Feb 1997 16:35:36 +0000 (16:35 +0000)]
djgpp fix (SIGMAX).

28 years agoIssue a more meaningful error if strftime keeps returning a NULL pointer.
Guido van Rossum [Fri, 14 Feb 1997 16:35:10 +0000 (16:35 +0000)]
Issue a more meaningful error if strftime keeps returning a NULL pointer.
Run the loop up to and including 8k.

28 years ago*Don't* kill all local variables on function exit. This will be done
Guido van Rossum [Fri, 14 Feb 1997 16:32:14 +0000 (16:32 +0000)]
*Don't* kill all local variables on function exit.  This will be done
by the frameobject dealloc when it is time for the locals to go.  When
there's still a traceback object referencing this stack frame, we
don't want the local variables to disappear yet.

(Hmm...  Shouldn't they be copied to the f_locals dictionary?)

28 years agoSlight tweak: in string_hash(), if the hash hasn't been computed yet,
Guido van Rossum [Fri, 14 Feb 1997 16:29:22 +0000 (16:29 +0000)]
Slight tweak: in string_hash(), if the hash hasn't been computed yet,
and if there's a pointer to an interned version of the string, use its
hash and store its hash in this object, rather than recomputing it.

28 years agoKill all local variables when the frame is deallocated (moved here
Guido van Rossum [Fri, 14 Feb 1997 16:27:29 +0000 (16:27 +0000)]
Kill all local variables when the frame is deallocated (moved here
from ceval.c).

Wrapped a long line.

28 years agoGave the Listbox selection methods their correct (longer) names.
Guido van Rossum [Fri, 14 Feb 1997 16:21:16 +0000 (16:21 +0000)]
Gave the Listbox selection methods their correct (longer) names.
Removed select_adjust -- Tk no longer supports this.

28 years agoChanges by Sjoerd (reformatted).
Guido van Rossum [Fri, 14 Feb 1997 16:14:03 +0000 (16:14 +0000)]
Changes by Sjoerd (reformatted).

add(): better handling of overflow (substitute maxval instead of
throwing away higher order bits).

ratecv(): some bugfixes, Sjoerd says.

28 years agoAdded doco for ratecv.
Guido van Rossum [Fri, 14 Feb 1997 15:59:49 +0000 (15:59 +0000)]
Added doco for ratecv.

28 years agoAdded test for ratecv (from Sjoerd, reformatted).
Guido van Rossum [Fri, 14 Feb 1997 15:58:00 +0000 (15:58 +0000)]
Added test for ratecv (from Sjoerd, reformatted).

28 years agoAdded intern() function.
Guido van Rossum [Fri, 14 Feb 1997 15:48:05 +0000 (15:48 +0000)]
Added intern() function.

28 years agoPut support for a cnf dictionary back in, since it is still supported
Guido van Rossum [Wed, 12 Feb 1997 16:49:57 +0000 (16:49 +0000)]
Put support for a cnf dictionary back in, since it is still supported
by all true Tkinter widgets.  (Not that I *like* this module -- it
stinks, but until I have something better, I can't nuke it.)

28 years agoMerged in Jack's fixes. This brings some lines beyond 79 chars again;
Guido van Rossum [Tue, 11 Feb 1997 16:39:31 +0000 (16:39 +0000)]
Merged in Jack's fixes.  This brings some lines beyond 79 chars again;
I'll clean that up later.  Also corrected a mistake introduced by the
previous reformatting: an 'else' belonging to a 'for' was accidentally
reindented to belong to the 'if' inside the 'for'.  Note that the
module uses inconsistent indentation -- most code is indented with 8
spaces, but some of the reformatted code uses 4 spaces.  I'll fix this
later in the promised cleanup pass.

28 years agoPut a new, more useful, set of references in the leading comment.
Guido van Rossum [Mon, 10 Feb 1997 17:51:56 +0000 (17:51 +0000)]
Put a new, more useful, set of references in the leading comment.

28 years agoCorrect typo in PyArg_ParseTuple example.
Guido van Rossum [Mon, 10 Feb 1997 16:51:52 +0000 (16:51 +0000)]
Correct typo in PyArg_ParseTuple example.

Add reference to DLD 3.3 at http://www-swiss.ai.mit.edu/~jaffer/DLD.html.

28 years agoThe USE_CACHE_ALIGNING define now has a value: the number of *words*
Jack Jansen [Mon, 3 Feb 1997 15:06:45 +0000 (15:06 +0000)]
The USE_CACHE_ALIGNING define now has a value: the number of *words*
in a cacheline.

28 years agoRestructured Checker class to get rid of 'ext' table.
Guido van Rossum [Sun, 2 Feb 1997 23:30:32 +0000 (23:30 +0000)]
Restructured Checker class to get rid of 'ext' table.
Links are now either in 'todo' or 'done', and ext links
are hadled more like local links except that no further
links are gathered (and sometimes they aren't checked,
e.g. for mailto and news URLs).  The -x option reverses
its meaning: it disables checking of ext links (they are
moved to 'done' without checking).  A new 'errors' table
collects pages with bad links as we go -- redundant,
but useful for the GUI version which needs to report
this as we go.  Some new methods, including reset().
New checkpoint format.

Adapted the GUI to the changes in the Checker class.
Added Quit and "Start over" buttons, and a checkbox
to disable checking external links.  The details
window now also shows bad links emanating from the
selected page.  Miscellaneous small chages.

28 years agoOptionally (on USE_CACHE_ALIGN) extend overhead structure to align
Jack Jansen [Sat, 1 Feb 1997 23:44:50 +0000 (23:44 +0000)]
Optionally (on USE_CACHE_ALIGN) extend overhead structure to align
returned addresses on 16-byte cacheline boundary.

28 years agoAdd root URL entry box, separate start/stop/step buttons.
Guido van Rossum [Sat, 1 Feb 1997 05:17:29 +0000 (05:17 +0000)]
Add root URL entry box, separate start/stop/step buttons.
If the users selects an item in 'To check', start checking there.

28 years agoProcess <img> and <frame> tags. Don't bother skipping second href.
Guido van Rossum [Sat, 1 Feb 1997 05:16:08 +0000 (05:16 +0000)]
Process <img> and <frame> tags. Don't bother skipping second href.

28 years agoCheck in another copy of tktools.py...
Guido van Rossum [Fri, 31 Jan 1997 18:58:53 +0000 (18:58 +0000)]
Check in another copy of tktools.py...

28 years agoTk interface to webchecker. Not fully featured yet, but usable.
Guido van Rossum [Fri, 31 Jan 1997 18:58:12 +0000 (18:58 +0000)]
Tk interface to webchecker.  Not fully featured yet, but usable.

28 years agoSpin off checking of external page in a subroutine.
Guido van Rossum [Fri, 31 Jan 1997 18:57:23 +0000 (18:57 +0000)]
Spin off checking of external page in a subroutine.
Increase MAXPAGE to 150K.
Add back printing of __doc__ for usage message.

28 years agoAdded/updated copyright notices
Jack Jansen [Fri, 31 Jan 1997 16:15:11 +0000 (16:15 +0000)]
Added/updated copyright notices
(and the &*^$%@ resource files got binhexed again, sigh)

28 years agoAdded _tkinter modules in Image extension
Jack Jansen [Fri, 31 Jan 1997 16:13:26 +0000 (16:13 +0000)]
Added _tkinter modules in Image extension

28 years agoImage libraries moved and small things
Jack Jansen [Fri, 31 Jan 1997 16:11:43 +0000 (16:11 +0000)]
Image libraries moved and small things

28 years agoMany misc changes.
Guido van Rossum [Fri, 31 Jan 1997 14:43:15 +0000 (14:43 +0000)]
Many misc changes.

- Faster HTML parser derivede from SGMLparser (Fred Gansevles).

- All manipulations of todo, done, ext, bad are done via methods, so a
derived class can override.  Also moved the 'done' marking to
dopage(), so run() is much simpler.

- Added a method status() which returns a string containing the
summary counts; added a "total" count.

- Drop the guessing of the file type before opening the document -- we
still need to check those links for validity!

- Added a subroutine to close a connection which first slurps up the
remaining data when it's an ftp URL -- apparently closing an ftp
connection without reading till the end makes it hang.

- Added -n option to skip running (only useful with -R).

- The Checker object now has an instance variable which is set to 1
when it is changed.  This is not pickled.

28 years ago(py-mode-map): Comment Out Region / Uncomment Region should use
Barry Warsaw [Thu, 30 Jan 1997 20:16:18 +0000 (20:16 +0000)]
(py-mode-map): Comment Out Region / Uncomment Region should use
py-comment-region instead of comment-region.

28 years ago#Updated authorship line
Barry Warsaw [Thu, 30 Jan 1997 19:50:39 +0000 (19:50 +0000)]
#Updated authorship line

28 years ago(py-parse-partial-sexp-works-p): New variable to work around a bug in
Barry Warsaw [Thu, 30 Jan 1997 19:49:39 +0000 (19:49 +0000)]
(py-parse-partial-sexp-works-p): New variable to work around a bug in
parse-partial-sexp in some Emacsen.

(py-goto-beyond-final-line): use py-parse-partial-sexp-works-p.

28 years agoMove the 'import os' in URLopener.cleanup() to inside the block
Guido van Rossum [Thu, 30 Jan 1997 15:54:58 +0000 (15:54 +0000)]
Move the 'import os' in URLopener.cleanup() to inside the block
guarded by 'if self.tempcache', to reduce the likelihood of this
causing an exception when invoked during __del__...

28 years agoRenamed
Jack Jansen [Thu, 30 Jan 1997 15:48:07 +0000 (15:48 +0000)]
Renamed

28 years agoAdded imgpng
Jack Jansen [Thu, 30 Jan 1997 15:47:08 +0000 (15:47 +0000)]
Added imgpng

28 years agoSet proper User-agent header (Python-webchecker/<version>).
Guido van Rossum [Thu, 30 Jan 1997 06:04:00 +0000 (06:04 +0000)]
Set proper User-agent header (Python-webchecker/<version>).

When -x is combined with -q, still do the checking, but don't print
the error in this phase -- they are reported by report_errors().

28 years agoSome refinements of the external-link checking code: insert the errors
Guido van Rossum [Thu, 30 Jan 1997 04:26:57 +0000 (04:26 +0000)]
Some refinements of the external-link checking code: insert the errors
in the 'bad' dictionary (sanitize them so they are picklable; the
sanitation code is now a subroutine); don't check mailto: URLs; omit
colon in Error message.

28 years agoAdded -x option to check external links. Slooooow!
Guido van Rossum [Thu, 30 Jan 1997 03:58:21 +0000 (03:58 +0000)]
Added -x option to check external links.  Slooooow!

28 years agoCatch I/O errors when parsing robots.txt file.
Guido van Rossum [Thu, 30 Jan 1997 03:30:20 +0000 (03:30 +0000)]
Catch I/O errors when parsing robots.txt file.
Add version number, printed at startup in non-quited mode.

28 years agoBasic README file
Guido van Rossum [Thu, 30 Jan 1997 03:24:00 +0000 (03:24 +0000)]
Basic README file

28 years agoAdded robots.txt support, using Skip Montanaro's parser.
Guido van Rossum [Thu, 30 Jan 1997 03:19:41 +0000 (03:19 +0000)]
Added robots.txt support, using Skip Montanaro's parser.
Fixed occasional inclusion of unpicklable objects (Message in errors).
Changed indent of a few messages.

28 years agoSkip Montanaro's robots.txt parser.
Guido van Rossum [Thu, 30 Jan 1997 03:18:23 +0000 (03:18 +0000)]
Skip Montanaro's robots.txt parser.

28 years agoweb tree checker
Guido van Rossum [Thu, 30 Jan 1997 02:44:48 +0000 (02:44 +0000)]
web tree checker

28 years agomime types guesser
Guido van Rossum [Thu, 30 Jan 1997 02:44:20 +0000 (02:44 +0000)]
mime types guesser

28 years agoDid nobody ever notice that "make test" didn't print the summary line
Guido van Rossum [Wed, 29 Jan 1997 16:03:45 +0000 (16:03 +0000)]
Did nobody ever notice that "make test" didn't print the summary line
any more?  This was because the *parent* process in test_socket.py did
an os._exit(0)!  Getting rid of that now...

28 years agoSmall lookmapping nits:
Guido van Rossum [Wed, 29 Jan 1997 15:53:56 +0000 (15:53 +0000)]
Small lookmapping nits:
- remove bogus initialization using uninitialized i
- derive initial incr from hash
- copy mp->ma_table into a local variable

28 years agoposix_execve(): Accept any mapping protocol object for the env
Barry Warsaw [Wed, 29 Jan 1997 15:08:24 +0000 (15:08 +0000)]
posix_execve(): Accept any mapping protocol object for the env
argument, not hardwired to a dictionary.

28 years agoFix bug reported by Per Lindqvist: "%#06x" % 1 stuck the 0 padding
Guido van Rossum [Wed, 29 Jan 1997 06:00:24 +0000 (06:00 +0000)]
Fix bug reported by Per Lindqvist: "%#06x" % 1 stuck the 0 padding
in front of the 0x, like such: "0000x1".

28 years agoFinal three poly table entries corrected by Tim Peters.
Guido van Rossum [Wed, 29 Jan 1997 04:45:16 +0000 (04:45 +0000)]
Final three poly table entries corrected by Tim Peters.
Reindented the whole table.

28 years agoChange bsddbmodule.o -> bsddbmodule.c.
Guido van Rossum [Tue, 28 Jan 1997 02:21:56 +0000 (02:21 +0000)]
Change bsddbmodule.o -> bsddbmodule.c.

28 years agoAdded LDLAST variable, substituted by configure script, for the final
Guido van Rossum [Tue, 28 Jan 1997 02:21:24 +0000 (02:21 +0000)]
Added LDLAST variable, substituted by configure script, for the final
argument to the linker (required for DEC Alpha threads).

28 years agoChanged the lookup algorithm again, based on Reimer Behrends's post.
Guido van Rossum [Tue, 28 Jan 1997 00:00:11 +0000 (00:00 +0000)]
Changed the lookup algorithm again, based on Reimer Behrends's post.
The table size is now constrained to be a power of two, and we use a
variable increment based on GF(2^n)-{0} (not that I have the faintest
idea what that is :-) which helps avoid the expensive '%' operation.

Some of the entries in the table of polynomials have been modified
according to a post by Tim Peters.

28 years agoTwo small changes:
Guido van Rossum [Mon, 27 Jan 1997 23:42:36 +0000 (23:42 +0000)]
Two small changes:

- Use co->... instead of f->f_code->...; save an extra lookup of what
we already have in a local variable).

- Remove test for nlocals > 0 before setting fastlocals to
f->f_localsplus; 0 is a rare case and the assignment is safe even
then.

28 years agonew.code() has grown another foot, eh, another two arguments.
Guido van Rossum [Mon, 27 Jan 1997 23:25:37 +0000 (23:25 +0000)]
new.code() has grown another foot, eh, another two arguments.

28 years agoPlug a leak with calling something other than a function or method is
Guido van Rossum [Mon, 27 Jan 1997 21:30:09 +0000 (21:30 +0000)]
Plug a leak with calling something other than a function or method is
called with keyword arguments -- the keyword and value were leaked.
This affected for instance with a __call__() method.

Bug reported and fix supplied by Jim Fulton.

28 years agoPatches for (two forms of) optional dynamic execution profiling --
Guido van Rossum [Fri, 24 Jan 1997 13:49:28 +0000 (13:49 +0000)]
Patches for (two forms of) optional dynamic execution profiling --
i.e., counting opcode frequencies, or (with DXPAIRS defined) opcode
pair frequencies.  Define DYNAMIC_EXECUTION_PROFILE on the command
line (for this file and for sysmodule.c) to enable.