]> granicus.if.org Git - python/log
python
26 years agoContributions by Eric Raymond: documentation for modules
Guido van Rossum [Sun, 28 Jun 1998 17:55:53 +0000 (17:55 +0000)]
Contributions by Eric Raymond: documentation for modules
cmd, multifile and smtplib.

26 years ago# Added missing semicolon (was #ifdef'ed out in edit on Windows).
Guido van Rossum [Sun, 28 Jun 1998 17:00:19 +0000 (17:00 +0000)]
# Added missing semicolon (was #ifdef'ed out in edit on Windows).

26 years agoAdded doc strings.
Guido van Rossum [Sun, 28 Jun 1998 16:54:49 +0000 (16:54 +0000)]
Added doc strings.

26 years agoWindows-specific hack to make sure that when LoadLibrary() is called,
Guido van Rossum [Sat, 27 Jun 1998 21:53:17 +0000 (21:53 +0000)]
Windows-specific hack to make sure that when LoadLibrary() is called,
the filename contains at least a rudimentary pathname.
(The bad part is that we need to call getcwd() because only a prefix
of ".\\" is not enough -- we prefix the drive letter.)

26 years agoAdded doc strings.
Guido van Rossum [Sat, 27 Jun 1998 20:38:36 +0000 (20:38 +0000)]
Added doc strings.

26 years ago# Remove an extra blank line from a doc string.
Guido van Rossum [Sat, 27 Jun 1998 19:45:17 +0000 (19:45 +0000)]
# Remove an extra blank line from a doc string.

26 years agoAdded doc strings. Maybe the doc string for the module itself is a bit
Guido van Rossum [Sat, 27 Jun 1998 19:43:25 +0000 (19:43 +0000)]
Added doc strings.  Maybe the doc string for the module itself is a bit
long, but it sure helps!

26 years agoNew feature: if the object's type has a non-NULL tp_doc field, that
Guido van Rossum [Sat, 27 Jun 1998 18:28:59 +0000 (18:28 +0000)]
New feature: if the object's type has a non-NULL tp_doc field, that
is returned as the object's __doc__ attribute.

(If only the list of methods would be referenced from the type...)

26 years agoDocument optional kwargs argument to start_new_thread(). Also
Guido van Rossum [Sat, 27 Jun 1998 18:25:44 +0000 (18:25 +0000)]
Document optional kwargs argument to start_new_thread().  Also
document new LockType and reverse the preference for exit()
vs. exit_thread() -- exit() is now preferred and exit_thread() is
obsolete.

26 years agoDefine new macro Py_InitModule3(name, methods, doc) which calls
Guido van Rossum [Sat, 27 Jun 1998 18:21:59 +0000 (18:21 +0000)]
Define new macro Py_InitModule3(name, methods, doc) which calls
Py_InitModule4() with appropriate arguments.

26 years agoAdded doc strings. Also export LockType from the modoule, and give it
Guido van Rossum [Sat, 27 Jun 1998 18:21:06 +0000 (18:21 +0000)]
Added doc strings.  Also export LockType from the modoule, and give it
a doc string.

26 years agoAdded doc strings.
Guido van Rossum [Fri, 26 Jun 1998 21:23:49 +0000 (21:23 +0000)]
Added doc strings.

26 years agoIn raw_input(prompt), make sure that str(prompt) really a string
Guido van Rossum [Fri, 26 Jun 1998 18:25:38 +0000 (18:25 +0000)]
In raw_input(prompt), make sure that str(prompt) really a string
object before using it.

26 years agoSlight rearrangement of some code to make it faster, by Vladimir
Guido van Rossum [Fri, 26 Jun 1998 15:53:50 +0000 (15:53 +0000)]
Slight rearrangement of some code to make it faster, by Vladimir
Marangozov.

26 years agoAdded build.macfreeze to the "special" folders.
Jack Jansen [Fri, 26 Jun 1998 15:05:29 +0000 (15:05 +0000)]
Added build.macfreeze to the "special" folders.

26 years agoConfig file for frozen binaries.
Jack Jansen [Fri, 26 Jun 1998 15:04:11 +0000 (15:04 +0000)]
Config file for frozen binaries.

26 years agoInitial documentation on freezing.
Jack Jansen [Fri, 26 Jun 1998 15:01:52 +0000 (15:01 +0000)]
Initial documentation on freezing.

26 years agoTemplate project, bundle file and config.c file for frozen applications.
Jack Jansen [Fri, 26 Jun 1998 15:00:19 +0000 (15:00 +0000)]
Template project, bundle file and config.c file for frozen applications.

26 years agoA well-known example for freeze.
Jack Jansen [Fri, 26 Jun 1998 14:56:38 +0000 (14:56 +0000)]
A well-known example for freeze.

26 years agoMac version of freeze. Uses standard freeze modules where it can,
Jack Jansen [Fri, 26 Jun 1998 14:56:00 +0000 (14:56 +0000)]
Mac version of freeze. Uses standard freeze modules where it can,
augmenting them here and there. For now, it works more-or-less similar
to unix/windows freeze, generating a config.c file, but storing
modules in PYC resources. A template project is also copied.

The hooks are in place to freeze by merging shared libraries so you
can freeze without a C compiler/linker, but this does not work yet.

26 years agoPrint message when we load a PYC resource, if verbose import flag is on.
Jack Jansen [Fri, 26 Jun 1998 14:52:04 +0000 (14:52 +0000)]
Print message when we load a PYC resource, if verbose import flag is on.

26 years agoRemove RCS and #! cruft at top.
Guido van Rossum [Fri, 26 Jun 1998 13:38:38 +0000 (13:38 +0000)]
Remove RCS and #! cruft at top.

26 years agoAllow binding a Tcl command (given as a string) as well as a Python
Guido van Rossum [Thu, 25 Jun 1998 18:54:49 +0000 (18:54 +0000)]
Allow binding a Tcl command (given as a string) as well as a Python
function.

26 years agoMark the 'whence' parameter of the file object's seek() method as optional;
Fred Drake [Thu, 25 Jun 1998 16:26:56 +0000 (16:26 +0000)]
Mark the 'whence' parameter of the file object's seek() method as optional;
it's already decribed that way in the description.

26 years agoTreat "HEAD" same as "GET", so that CGI scripts won't fail.
Guido van Rossum [Thu, 25 Jun 1998 02:40:17 +0000 (02:40 +0000)]
Treat "HEAD" same as "GET", so that CGI scripts won't fail.

26 years agoRewrite the (test) main program so that when used as a script, it can
Guido van Rossum [Thu, 25 Jun 1998 02:39:00 +0000 (02:39 +0000)]
Rewrite the (test) main program so that when used as a script, it can
retrieve one or more URLs to stdout.  Use -t to run the self-test.

26 years agoPiers' latest version, labeled 2.11. This time he integrated my
Guido van Rossum [Thu, 25 Jun 1998 02:22:16 +0000 (02:22 +0000)]
Piers' latest version, labeled 2.11.  This time he integrated my
changes, and made only a few minor changes.  No changes of my own this
time.

26 years agoEric Raymond added support for ESMTP protocol and corrected some typos
Guido van Rossum [Thu, 25 Jun 1998 02:15:50 +0000 (02:15 +0000)]
Eric Raymond added support for ESMTP protocol and corrected some typos
in comments and doc strings.

26 years agoIgnore Windows case check for ALL CAPS 8.3 files
Guido van Rossum [Wed, 24 Jun 1998 03:54:06 +0000 (03:54 +0000)]
Ignore Windows case check for ALL CAPS 8.3 files

26 years agoSubsume the interact() function in a class. This should make it
Guido van Rossum [Tue, 23 Jun 1998 19:31:19 +0000 (19:31 +0000)]
Subsume the interact() function in a class.  This should make it
possible to use this in PythonWin, and to replace Fredrik Lundh's
PythonInterpreter class.  Fredrik is credited with the class' API.

26 years ago"if match(x) >= 0:" smells of regex matching; should use "if match(x):"
Guido van Rossum [Tue, 23 Jun 1998 14:43:06 +0000 (14:43 +0000)]
"if match(x) >= 0:" smells of regex matching; should use "if match(x):"

26 years agoPatch by Eric Raymond: add an optional 'seekable' flag to the
Guido van Rossum [Tue, 23 Jun 1998 14:20:27 +0000 (14:20 +0000)]
Patch by Eric Raymond: add an optional 'seekable' flag to the
MultiFile constructor, and only do the posstack bookkeeping when it is
true.

26 years agoRemoved loading of shared font stuff from howto.cls and manual.cls, moving it
Fred Drake [Mon, 22 Jun 1998 17:50:34 +0000 (17:50 +0000)]
Removed loading of shared font stuff from howto.cls and manual.cls, moving it
to pypaper.sty.

Added the use of the "avant" package to use AvantGarde for the sans-serif
font instead of the helvetica font loaded by the "times" package.

26 years agoMake the large letter at the top of each section use the sans-serif font,
Fred Drake [Mon, 22 Jun 1998 17:27:48 +0000 (17:27 +0000)]
Make the large letter at the top of each section use the sans-serif font,
like any other header.

26 years agoAdded texinputs/pypaper.sty to the list of manual style files, so that the
Fred Drake [Mon, 22 Jun 1998 17:14:47 +0000 (17:14 +0000)]
Added texinputs/pypaper.sty to the list of manual style files, so that the
.dvi files are properly dependent on it.

26 years agoBugfix to ESR's code reported by himself: should use hasattr() to test
Guido van Rossum [Mon, 22 Jun 1998 15:46:26 +0000 (15:46 +0000)]
Bugfix to ESR's code reported by himself: should use hasattr() to test
for presence unread, not getattr()!

26 years agoFix unclear wording pointed out by Tim Peters, about the interaction between
Andrew M. Kuchling [Mon, 22 Jun 1998 15:02:42 +0000 (15:02 +0000)]
Fix unclear wording pointed out by Tim Peters, about the interaction between
    ^ and the pos argument to re.match().
Also, fixed a typo in libregex.tex.

26 years agoThere's no point in mentioning F6 as an alternate EOF on DOS -- it
Guido van Rossum [Mon, 22 Jun 1998 14:28:39 +0000 (14:28 +0000)]
There's no point in mentioning F6 as an alternate EOF on DOS -- it
doesn't work on modern Windows systems, and Control-Z works
everywhere.

26 years agoRevert the change of revision 1.30. While it's in general a laudable
Guido van Rossum [Mon, 22 Jun 1998 14:07:36 +0000 (14:07 +0000)]
Revert the change of revision 1.30.  While it's in general a laudable
goal to use isinstance(x, y) instead of comparing type(x) to y, it
doesn't make sense to change this in the example code for the type()
builtin...

26 years agoAdd check in long-to-int conversion for at least one digit.
Guido van Rossum [Mon, 22 Jun 1998 03:54:46 +0000 (03:54 +0000)]
Add check in long-to-int conversion for at least one digit.

26 years agoFix the tests for various anomalies in the string-to-numbers
Guido van Rossum [Mon, 22 Jun 1998 03:54:15 +0000 (03:54 +0000)]
Fix the tests for various anomalies in the string-to-numbers
conversions.  Formerly, for example, int('-') would return 0 instead
of raising ValueError, and int(' 0') would raise ValueError
(complaining about a null byte!) instead of 0...

26 years agoTranslated to use re instead of regex. Also replaced one use of
Guido van Rossum [Fri, 19 Jun 1998 21:39:27 +0000 (21:39 +0000)]
Translated to use re instead of regex.  Also replaced one use of
L.append(a,b,c,d) with the correct L.append((a,b,c,d)).

26 years agoeval() example: Removed final interpreter prompt; other examples don't have
Fred Drake [Fri, 19 Jun 1998 21:19:50 +0000 (21:19 +0000)]
eval() example:  Removed final interpreter prompt; other examples don't have
the empty prompt.

26 years agoSomewhat updated, but not checked for everything (just the stuff I was using).
Fred Drake [Fri, 19 Jun 1998 21:18:28 +0000 (21:18 +0000)]
Somewhat updated, but not checked for everything (just the stuff I was using).

26 years agoAdded Py_{Get,Set}PythonHome.
Guido van Rossum [Fri, 19 Jun 1998 19:24:08 +0000 (19:24 +0000)]
Added Py_{Get,Set}PythonHome.

26 years agoAdded {Get,Set}PopupData calls to get at the data for popup menu controls.
Jack Jansen [Fri, 19 Jun 1998 13:35:14 +0000 (13:35 +0000)]
Added {Get,Set}PopupData calls to get at the data for popup menu controls.

26 years agoTurns out that 'winfo id' returns the id as a hex string, with 0x prefix.
Guido van Rossum [Fri, 19 Jun 1998 04:35:45 +0000 (04:35 +0000)]
Turns out that 'winfo id' returns the id as a hex string, with 0x prefix.
The int() function (aliased to getint()) doesn't handle that, so we must
use self.tk.getint() again...

26 years agoDifferent trick to get the _test() window to pop up.
Guido van Rossum [Fri, 19 Jun 1998 04:34:19 +0000 (04:34 +0000)]
Different trick to get the _test() window to pop up.

26 years agoAdded <ctype.h>, needed for Windows.
Guido van Rossum [Fri, 19 Jun 1998 04:33:30 +0000 (04:33 +0000)]
Added <ctype.h>, needed for Windows.

26 years agoAdded _locale
Guido van Rossum [Fri, 19 Jun 1998 04:29:55 +0000 (04:29 +0000)]
Added _locale

26 years agoThere was an error check in a loop in PythonCmd which called
Guido van Rossum [Fri, 19 Jun 1998 04:28:10 +0000 (04:28 +0000)]
There was an error check in a loop in PythonCmd which called
PythonCmd_Error() but failed to return.  The error wasn't very likely
(only when we run out of memory) but since the check is there we might
as well return the error.  (I think that Barry introduced this buglet
when he added error checks everywhere.)

26 years agoAdded a stronger warning about changing the dictionary returned by
Guido van Rossum [Thu, 18 Jun 1998 16:45:34 +0000 (16:45 +0000)]
Added a stronger warning about changing the dictionary returned by
locals().

26 years agoPiers' latest version -- authentication added by Donn Cave.
Guido van Rossum [Thu, 18 Jun 1998 14:24:28 +0000 (14:24 +0000)]
Piers' latest version -- authentication added by Donn Cave.

26 years ago# Untabified the example :-(
Guido van Rossum [Wed, 17 Jun 1998 22:38:09 +0000 (22:38 +0000)]
# Untabified the example :-(

26 years agoDocumented that by default the output goes to stderr, and that a file
Guido van Rossum [Wed, 17 Jun 1998 22:37:26 +0000 (22:37 +0000)]
Documented that by default the output goes to stderr, and that a file
keyword argument can be used to direct it somewhere else.  Also
documented all the other functions in this module, and even added a
little example.

# Haven't tested the latex for correctness -- all latex installations
# appear broken.

26 years agoIn class _Subfile, make sure read(n) can't read beyond EOF. Also
Guido van Rossum [Wed, 17 Jun 1998 18:34:40 +0000 (18:34 +0000)]
In class _Subfile, make sure read(n) can't read beyond EOF.  Also
allow negative numbers to specify read until EOF (like for a regular
file's read() method).

26 years agoChange the description of input() -- it is exactly equivalent to
Guido van Rossum [Wed, 17 Jun 1998 15:16:40 +0000 (15:16 +0000)]
Change the description of input() -- it is exactly equivalent to
eval(raw_input(s)).  The statement about breaking a long expression
over multiple lines is no longer true.

26 years agoMinor cleanup by Tim after my changes:
Guido van Rossum [Wed, 17 Jun 1998 14:15:44 +0000 (14:15 +0000)]
Minor cleanup by Tim after my changes:

+ Took the "list" argument out of the other functions that no longer need
it.  This speeds things up a little more.

+ Small comment changes in accord with that.

+ Exploited the now-safe ability to cache values in the partitioning loop.
Makes no timing difference on my flavor of Pentium, but this machine ran out
of registers 12 iterations ago.  It should yield a small speedup on a RISC
machine, and not hurt in any case.

26 years agoAdd __getitem__ to AddressList object, to make it a sequence.
Guido van Rossum [Tue, 16 Jun 1998 22:29:03 +0000 (22:29 +0000)]
Add __getitem__ to AddressList object, to make it a sequence.

26 years agoSome extra notes, and describe a new class (AddressList), all by ESR.
Guido van Rossum [Tue, 16 Jun 1998 22:27:40 +0000 (22:27 +0000)]
Some extra notes, and describe a new class (AddressList), all by ESR.

26 years agoSome extra comments and docstrings, and a new class (AddressList), all by ESR.
Guido van Rossum [Tue, 16 Jun 1998 22:27:09 +0000 (22:27 +0000)]
Some extra comments and docstrings, and a new class (AddressList), all by ESR.

26 years agoTim's latest, with some of my changes (also a TP suggestion) added:
Guido van Rossum [Tue, 16 Jun 1998 15:18:28 +0000 (15:18 +0000)]
Tim's latest, with some of my changes (also a TP suggestion) added:
instead of testing whether the list changed size after each
comparison, temporarily set the type of the list to an immutable list
type.  This should allow continued use of the list for legitimate
purposes but disallows all operations that can change it in any way.
(Changes to the internals of list items are not caught, of cause;
that's not possible to detect, and it's not necessary to protect the
sort code, either.)

26 years agoFixed the UDP server -- this never worked. Ray Loyzaga deserves
Guido van Rossum [Tue, 16 Jun 1998 02:27:33 +0000 (02:27 +0000)]
Fixed the UDP server -- this never worked.  Ray Loyzaga deserves
credit for complaining about this and for testing these changes.

26 years agoSubject: Bug in PC/import_nt.c
Guido van Rossum [Mon, 15 Jun 1998 18:01:34 +0000 (18:01 +0000)]
Subject: Bug in PC/import_nt.c
From: Dan Pierson <dan@remote.control.com>
To: "Mark Hammond (E-mail)" <MHammond@skippinet.com.au>,
    "Guido van Rossum (E-mail)" <guido@cnri.reston.va.us>
Date: Mon, 8 Jun 1998 17:25:07 -0400

RegistryQueryValue requires that its fourth argument be initialized to
the length of the buffer being passed in, this wasn't being done.  I
also split the call and status test into two lines with a local variable
so that I could look at the status in the debugger.

26 years agoLots of changes to get this in sync with the Frame version.
Guido van Rossum [Mon, 15 Jun 1998 18:00:50 +0000 (18:00 +0000)]
Lots of changes to get this in sync with the Frame version.
Added raw strings, imaginary literals, assert and exec (!) keywords, a
table about Resererved classes of identifiers, and more.

26 years agoTwo small additions to make it identical to the obsolete Frame version.
Guido van Rossum [Mon, 15 Jun 1998 16:27:37 +0000 (16:27 +0000)]
Two small additions to make it identical to the obsolete Frame version.

26 years agoNewNew abstract, copied from the obsolete Frame version.
Guido van Rossum [Mon, 15 Jun 1998 16:27:09 +0000 (16:27 +0000)]
NewNew abstract, copied from the obsolete Frame version.

26 years ago# This is a new module I wrote over the weekend. Again, you missed the
Guido van Rossum [Mon, 15 Jun 1998 14:49:16 +0000 (14:49 +0000)]
# This is a new module I wrote over the weekend.  Again, you missed the
# checkin email because my PC doesn't have the "Mail" command.

Add threading (now that it works).  Also some small adaptations to
Unix again.

26 years ago# Note: a previous checkin message was lost because I can now use CVS
Guido van Rossum [Mon, 15 Jun 1998 14:03:52 +0000 (14:03 +0000)]
# Note: a previous checkin message was lost because I can now use CVS
# from my PC at home, but it can't send email :-(

Add a clarifying comment about the new ENTER_OVERLAP and
LEAVE_OVERLAP_TCL macros; get rid of all the bogus tests for deleted
interpreters (Tcl already tests for this; they were left over from an
earlier misguided attempt to fix the threading).

26 years agoPrimitive GUI for websucker.
Guido van Rossum [Mon, 15 Jun 1998 12:35:19 +0000 (12:35 +0000)]
Primitive GUI for websucker.

26 years agoFix the way a trailing / is changed to /index.html so that it
Guido van Rossum [Mon, 15 Jun 1998 12:34:41 +0000 (12:34 +0000)]
Fix the way a trailing / is changed to /index.html so that it
doesn't depend on the value of os.sep.  (I.e. ported to Windows :-)

26 years agosort the urls in the todo list
Guido van Rossum [Mon, 15 Jun 1998 12:33:02 +0000 (12:33 +0000)]
sort the urls in the todo list

26 years ago# (My first checkin from Windows NT using remote CVS!)
Guido van Rossum [Mon, 15 Jun 1998 04:36:09 +0000 (04:36 +0000)]
# (My first checkin from Windows NT using remote CVS!)

There were some serious problem with the thread-safety code.
The basic problem was that often the result was gotten out of
the Tcl interpreter object after releasing the Tcl lock.
Of course, another thread might have changed the return value
already, and this was indeed happening.  (Amazing what trying
it on a different thread implementation does!)

The solution is to grab the Python lock without releasing the
Tcl lock, so it's safe to create a string object or set the
exceptions from the Tcl interpreter.  Once that's done, the
Tcl lock is released.

Note that it's now legal to acquire the Python lock while the
the Tcl lock is held; but the reverse is not true: the Python
lock must be released before the Tcl lock is acquired.  This
in order to avoid deadlines.  Fortunately, there don't seem to
be any problems with this.

26 years agoFixed the EventHook() code so that it also works on Windows, sort of.
Guido van Rossum [Sat, 13 Jun 1998 13:56:28 +0000 (13:56 +0000)]
Fixed the EventHook() code so that it also works on Windows, sort of.
(The "sort of" is because it uses kbhit() to detect that the user
starts typing, and then no events are processed until they hit
return.)

Also fixed a nasty locking bug: EventHook() is called without the Tcl
lock set, so it can't use the ENTER_PYTHON and LEAVE_PYTHON macros,
which manipulate both the Python and the Tcl lock.  I now only acquire
and release the Python lock.

(Haven't tested this on Unix yet...)

26 years agoIn completer(), return None instead of raising an IndexError when
Guido van Rossum [Fri, 12 Jun 1998 19:42:14 +0000 (19:42 +0000)]
In completer(), return None instead of raising an IndexError when
there are no more completions left.  (This for compatibility with
Donald Beaudry's code.)

26 years agoOn Windows, make the pipe() call return Unix file descriptors instead
Guido van Rossum [Fri, 12 Jun 1998 15:05:15 +0000 (15:05 +0000)]
On Windows, make the pipe() call return Unix file descriptors instead
of Windows file handles.  Now it is at least compatible with itself on
Unix!

26 years agoKeep Microsoft's compiler happy.
Guido van Rossum [Fri, 12 Jun 1998 15:03:58 +0000 (15:03 +0000)]
Keep Microsoft's compiler happy.

26 years agoDon't catch interrupts in getpass() -- the finally clause will reset
Guido van Rossum [Fri, 12 Jun 1998 14:28:38 +0000 (14:28 +0000)]
Don't catch interrupts in getpass() -- the finally clause will reset
the tty and the caller can deal with the interrupt.

In the windows version, recognize ^C and raise KeyboardInterrupt (not
sure if this is needed, but can't hurt).

26 years agoIn tcsetattr(), first initialize the mode structure by calling
Guido van Rossum [Fri, 12 Jun 1998 14:26:18 +0000 (14:26 +0000)]
In tcsetattr(), first initialize the mode structure by calling
tcgetattr().  This seems to be the only correct way to cope with
platform-specific structure members...

26 years agoUse the getpass module instead of having platform-specific echo on/off
Guido van Rossum [Fri, 12 Jun 1998 14:21:13 +0000 (14:21 +0000)]
Use the getpass module instead of having platform-specific echo on/off
code here.

26 years agoJonathan Giddy:
Guido van Rossum [Fri, 12 Jun 1998 14:09:34 +0000 (14:09 +0000)]
Jonathan Giddy:

This second problem only shows up if LDLAST is not an empty string (such
as with threads enabled on DEC Alphas).

26 years agoJonathan Giddy:
Guido van Rossum [Fri, 12 Jun 1998 14:09:03 +0000 (14:09 +0000)]
Jonathan Giddy:

The first one only shows up if $prefix != $exec_prefix, and the problem
is caused by the recent change in location for config.h.

26 years agoWith the recent change that makes numbers compare smaller than anything,
Guido van Rossum [Thu, 11 Jun 1998 22:25:59 +0000 (22:25 +0000)]
With the recent change that makes numbers compare smaller than anything,
the outcome of the test for max has changed.

26 years agoNow that test_MimeWriter is untabified, do the same here!
Guido van Rossum [Thu, 11 Jun 1998 22:22:39 +0000 (22:22 +0000)]
Now that test_MimeWriter is untabified, do the same here!

26 years agoAdd warning about use of lowercase/uppercase with maketrans().
Guido van Rossum [Thu, 11 Jun 1998 16:03:30 +0000 (16:03 +0000)]
Add warning about use of lowercase/uppercase with maketrans().

26 years agoAdd timegm to list of functions tested, for Marc-Andre L.
Guido van Rossum [Thu, 11 Jun 1998 15:19:05 +0000 (15:19 +0000)]
Add timegm to list of functions tested, for Marc-Andre L.

26 years agoOops, bug in release date!
Guido van Rossum [Thu, 11 Jun 1998 15:17:53 +0000 (15:17 +0000)]
Oops, bug in release date!

26 years agoBe more careful than the previous patch. The default content-type
Guido van Rossum [Thu, 11 Jun 1998 14:06:59 +0000 (14:06 +0000)]
Be more careful than the previous patch.  The default content-type
should only be set to application/x-www-form-urlencoded when the
method is POST.  E.g. for PUT, an empty default (defaulting to
text/plain later) makes more sense.

26 years agoSupport new overridable method, isheader() (ESR).
Guido van Rossum [Thu, 11 Jun 1998 13:58:40 +0000 (13:58 +0000)]
Support new overridable method, isheader() (ESR).

Also implement __setitem__(), more-or-less correctly (GvR).

26 years agoEric Raymond: added doc for isheader(); improved docs for constructor.
Guido van Rossum [Thu, 11 Jun 1998 13:50:02 +0000 (13:50 +0000)]
Eric Raymond: added doc for isheader(); improved docs for constructor.

26 years agoDocument the changes I just checked in.
Guido van Rossum [Wed, 10 Jun 1998 21:34:27 +0000 (21:34 +0000)]
Document the changes I just checked in.

26 years agoSome changes suggested/provided by Eric Raymond:
Guido van Rossum [Wed, 10 Jun 1998 21:31:01 +0000 (21:31 +0000)]
Some changes suggested/provided by Eric Raymond:

- explain seekable
- when seekable==1, test fp.tell() and set it to 0 if that fails
- support overridable method iscomment(line) to weed out comments
- check for unread() method on file object before trying to seek

And one of my own:

- Add a get() method which behaves like a dictionary's get(); this is
actually implemented by giving getheader() an optional second argument
to specify the default, and aliasing get to getheader.

26 years agoDocument several variables that were previously undocumented,
Guido van Rossum [Wed, 10 Jun 1998 17:57:44 +0000 (17:57 +0000)]
Document several variables that were previously undocumented,
including the new __stdin__, __stdout__ and __stderr__.
Also moved setttrace around to its proper place in the alphabet.

26 years agoAdd the __doc__ string from the original module on copy_none().
Guido van Rossum [Tue, 9 Jun 1998 21:33:44 +0000 (21:33 +0000)]
Add the __doc__ string from the original module on copy_none().

26 years agoAdded notes about epochs, the year 2038, and a small Y2K disclaimer
Guido van Rossum [Tue, 9 Jun 1998 21:25:41 +0000 (21:25 +0000)]
Added notes about epochs, the year 2038, and a small Y2K disclaimer
(all with index entries!).  Also update the list of functions that
take or yield a time represented as a 9-tuple.

26 years agoDefault content-type to application/x-www-form-urlencoded at the top
Guido van Rossum [Tue, 9 Jun 1998 19:49:16 +0000 (19:49 +0000)]
Default content-type to application/x-www-form-urlencoded at the top
level of a form.  This means that browsers that omit the content-type
header when sending a POST command aren't penalized so heavily.

26 years agoChanged runs of 8 spaces to tab -- to satisfy the tab nanny.
Guido van Rossum [Tue, 9 Jun 1998 19:20:12 +0000 (19:20 +0000)]
Changed runs of 8 spaces to tab -- to satisfy the tab nanny.

26 years agoUntabified -- to satisfy the tab nanny.
Guido van Rossum [Tue, 9 Jun 1998 19:19:40 +0000 (19:19 +0000)]
Untabified -- to satisfy the tab nanny.

26 years agoGet rid of tabnanny's last complaints.
Guido van Rossum [Tue, 9 Jun 1998 19:04:26 +0000 (19:04 +0000)]
Get rid of tabnanny's last complaints.

26 years agoFrom: "Tim Peters" <tim_one@msn.com>
Guido van Rossum [Tue, 9 Jun 1998 19:02:21 +0000 (19:02 +0000)]
From: "Tim Peters" <tim_one@msn.com>

The 1.5.1 tabnanny.py suffers an assert error if fed a script whose last
line is both indented and lacks a newline:

if 1:
    print 'oh fudge' # no newline here:

The attached version repairs that.