]> granicus.if.org Git - python/log
python
26 years agoRework startup
Barry Warsaw [Mon, 28 Sep 1998 23:41:53 +0000 (23:41 +0000)]
Rework startup

26 years agosimplify
Barry Warsaw [Mon, 28 Sep 1998 23:41:12 +0000 (23:41 +0000)]
simplify

26 years agotriplet_to_brightness(): New function
Barry Warsaw [Mon, 28 Sep 1998 23:39:18 +0000 (23:39 +0000)]
triplet_to_brightness(): New function

26 years agoDe PMW-ify
Barry Warsaw [Mon, 28 Sep 1998 23:38:44 +0000 (23:38 +0000)]
De PMW-ify

26 years agoFixed the brightness calculation
Barry Warsaw [Mon, 28 Sep 1998 22:52:02 +0000 (22:52 +0000)]
Fixed the brightness calculation

26 years agoUpdated to new post-PMW framework. Moved generators to here and added
Barry Warsaw [Mon, 28 Sep 1998 22:42:44 +0000 (22:42 +0000)]
Updated to new post-PMW framework.  Moved generators to here and added
the StripViewer class.

26 years agoRemove redundant definition of NEXITFUNCS.
Guido van Rossum [Mon, 28 Sep 1998 22:15:37 +0000 (22:15 +0000)]
Remove redundant definition of NEXITFUNCS.
(Reported by Jeff Rush.)

26 years agoFixes for OS/2 by Jeff Rush.
Guido van Rossum [Mon, 28 Sep 1998 22:07:11 +0000 (22:07 +0000)]
Fixes for OS/2 by Jeff Rush.

26 years agoMove the #include of <sys/select> to *after* mytime.h (or <time.h>),
Guido van Rossum [Mon, 28 Sep 1998 22:05:22 +0000 (22:05 +0000)]
Move the #include of <sys/select> to *after* mytime.h (or <time.h>),
as this is the logical order of dependencies.  Suggested by Jeff Rush.

26 years agoNew set of files for the OS/2 port by Jeff Rush.
Guido van Rossum [Mon, 28 Sep 1998 22:02:40 +0000 (22:02 +0000)]
New set of files for the OS/2 port by Jeff Rush.

26 years agoRemoved some OS/2 #defines (now in the OS/2 specific config.h).
Guido van Rossum [Mon, 28 Sep 1998 21:55:25 +0000 (21:55 +0000)]
Removed some OS/2 #defines (now in the OS/2 specific config.h).
Patch by Jeff Rush.

26 years agoformatting
Barry Warsaw [Mon, 28 Sep 1998 21:01:55 +0000 (21:01 +0000)]
formatting

26 years agoUn PMW-ified
Barry Warsaw [Mon, 28 Sep 1998 20:58:06 +0000 (20:58 +0000)]
Un PMW-ified

26 years agoUn PMW-ified
Barry Warsaw [Mon, 28 Sep 1998 16:28:04 +0000 (16:28 +0000)]
Un PMW-ified

26 years agoInitial revision
Barry Warsaw [Mon, 28 Sep 1998 15:59:21 +0000 (15:59 +0000)]
Initial revision

26 years agoNew version from Piers Lauder, who writes:
Guido van Rossum [Mon, 28 Sep 1998 15:34:46 +0000 (15:34 +0000)]
New version from Piers Lauder, who writes:

Added a debug function to replace 'print' statements.
Ensured that response attached to 'NO' replies is passed back.
added readonly exception.
Rearranged method order into types.
Ensure select returns a meaningful error on 'NO'.
'NO' returns from authenticate and login raise error with last message,
not list.

26 years agoDon't set a local variable named __args__; this feature no longer
Guido van Rossum [Mon, 28 Sep 1998 15:33:38 +0000 (15:33 +0000)]
Don't set a local variable named __args__; this feature no longer
works and Greg Ward just reported a problem it caused...

26 years agoAdd warning that on Windows it only works on sockets.
Guido van Rossum [Mon, 28 Sep 1998 14:28:38 +0000 (14:28 +0000)]
Add warning that on Windows it only works on sockets.

26 years agoDocument new urllib features by Eric Raymond.
Guido van Rossum [Mon, 28 Sep 1998 14:08:29 +0000 (14:08 +0000)]
Document new urllib features by Eric Raymond.

26 years agoChanges by Eric Raymond:
Guido van Rossum [Mon, 28 Sep 1998 14:07:00 +0000 (14:07 +0000)]
Changes by Eric Raymond:

1. Generate a correct Content-Length header visible through the info() method
   if a request to open an FTP URL gets a length in the response to RETR.

2. Take a third argument to urlretrieve() that makes it possible to progress-
   meter an urlretrieve call (this is what I needed the above change for).
   See the second patch band below for details.

3. To avoid spurious errors, I commented out the gopher test.  The target
   document no longer exists.

26 years agoTruncate messages if they are longer than 255 characters. Note that this is
Jack Jansen [Mon, 28 Sep 1998 10:37:08 +0000 (10:37 +0000)]
Truncate messages if they are longer than 255 characters. Note that this is
not really a good solution for default input strings...

26 years agoFixed unit test
Barry Warsaw [Fri, 25 Sep 1998 22:51:36 +0000 (22:51 +0000)]
Fixed unit test

26 years agoUpdated the docstring and class hierarchy diagram
Barry Warsaw [Fri, 25 Sep 1998 22:43:21 +0000 (22:43 +0000)]
Updated the docstring and class hierarchy diagram

26 years ago(py-comint-output-filter-function): Horrible kludgearound for making
Barry Warsaw [Fri, 25 Sep 1998 19:40:10 +0000 (19:40 +0000)]
(py-comint-output-filter-function): Horrible kludgearound for making
the de-queing of exec files work for NT XEmacs 21.0.

26 years agoIn PyFrame_New(), don't set extras to something derived from code
Guido van Rossum [Fri, 25 Sep 1998 14:11:46 +0000 (14:11 +0000)]
In PyFrame_New(), don't set extras to something derived from code
before code has been checked for validity.  Discovered by Vladimir
Marangozov.

26 years ago(py-guess-indent-offset): Only print message about py-indent-offset
Barry Warsaw [Fri, 25 Sep 1998 00:08:38 +0000 (00:08 +0000)]
(py-guess-indent-offset): Only print message about py-indent-offset
when in an interactive session (suggested by B. Wiener).

26 years ago(py-execute-file, py-execute-import-or-reload): Use a Python `raw'
Barry Warsaw [Thu, 24 Sep 1998 23:48:40 +0000 (23:48 +0000)]
(py-execute-file, py-execute-import-or-reload): Use a Python `raw'
string in the argument to execfile() so a Windows temp directory
named, e.g. c:\\tmp doesn't get interpreted as a file name with an
embedded tab!  (given by C. Waldman).

26 years agoAdd two constants (with the same value) to specify the on-board CD input.
Guido van Rossum [Thu, 24 Sep 1998 18:09:47 +0000 (18:09 +0000)]
Add two constants (with the same value) to specify the on-board CD input.

26 years agoAdded realclean and distclean targets to match ../Makefile.
Fred Drake [Wed, 23 Sep 1998 17:37:14 +0000 (17:37 +0000)]
Added realclean and distclean targets to match ../Makefile.

26 years agoAdd define of HAVE_STDDEF_H (to 1). Suggested by Greg Stein.
Guido van Rossum [Wed, 23 Sep 1998 13:35:45 +0000 (13:35 +0000)]
Add define of HAVE_STDDEF_H (to 1).  Suggested by Greg Stein.

26 years agoReworked it quite a bit. There are now two classes: a base class,
Guido van Rossum [Tue, 22 Sep 1998 20:38:53 +0000 (20:38 +0000)]
Reworked it quite a bit.  There are now two classes: a base class,
InteractiveInterpreter, which handles parsing and interpreter state
but doesn't know deal with buffering or prompting or input file
naming.  And a derived class, InteractiveConsole, which adds buffering
and prompting and supports setting the filename once.  Also tweak the
algorithm in compile_command() a bit so that input consisting of all
blank lines or comments always succeeds immediately, and note the fact
that apart from SyntaxError it can also raise OverflowError.

26 years ago(py-block-comment-prefix): Remove trailing space. Also explain that
Barry Warsaw [Tue, 22 Sep 1998 19:51:47 +0000 (19:51 +0000)]
(py-block-comment-prefix): Remove trailing space.  Also explain that
this string should not end with whitespace.

(py-compute-indentation): Append whitespace regexp to
py-block-comment-prefix so that any combination of intervening
whitespace will be recognized.

26 years agoDo the check for lacking sys.stdin.fileno() *before* testing for
Guido van Rossum [Tue, 22 Sep 1998 02:38:42 +0000 (02:38 +0000)]
Do the check for lacking sys.stdin.fileno() *before* testing for
Windows.  If sys.stdin doesn't appear to be a real file (characterized
by having a working fileno()), don't use any console specific methods
-- go straight to the default.

26 years agoWhen sys.stdin.fileno() doesn't work, fall back to default_getpass()
Guido van Rossum [Mon, 21 Sep 1998 20:00:35 +0000 (20:00 +0000)]
When sys.stdin.fileno() doesn't work, fall back to default_getpass()
-- don't just die.

26 years agoExplicitly document the fact that the search method returns a MatchObject.
Guido van Rossum [Mon, 21 Sep 1998 19:26:16 +0000 (19:26 +0000)]
Explicitly document the fact that the search method returns a MatchObject.
(Reported by Gary Herron.)

26 years agoAfter the previous changes, func_normalize() turned out to be redundant.
Guido van Rossum [Mon, 21 Sep 1998 17:40:47 +0000 (17:40 +0000)]
After the previous changes, func_normalize() turned out to be redundant.
This simplified some other places in the code.

26 years agoChanges so that JPython can also use this version of profile.py.
Guido van Rossum [Mon, 21 Sep 1998 16:52:44 +0000 (16:52 +0000)]
Changes so that JPython can also use this version of profile.py.
Suggested by Jim Hugunin.

26 years agoGet rid of the classes RModuleLoader and RModuleImporter -- these were
Guido van Rossum [Mon, 21 Sep 1998 14:53:26 +0000 (14:53 +0000)]
Get rid of the classes RModuleLoader and RModuleImporter -- these were
only there to override reload() in a way that doesn't make a whole lot
of sense and moreover broke since the latest changes in ihooks.

26 years agoComment out 't = t[0] + t[1]' in profiler_simulation() -- this
Guido van Rossum [Mon, 21 Sep 1998 14:52:22 +0000 (14:52 +0000)]
Comment out 't = t[0] + t[1]' in profiler_simulation() -- this
function is only used when running the calibration code, and it turns
out that recent changes in the timing code caused this statement to
raise an exception.

26 years agoGet rid of the test for non-NULL thread state in EventHook; it can be
Guido van Rossum [Mon, 21 Sep 1998 14:47:16 +0000 (14:47 +0000)]
Get rid of the test for non-NULL thread state in EventHook; it can be
triggered in situations that are not an error.

26 years agoWhen we have siginterrupt(), use it to disable restarting interrupted
Guido van Rossum [Mon, 21 Sep 1998 14:46:00 +0000 (14:46 +0000)]
When we have siginterrupt(), use it to disable restarting interrupted
system calls.

26 years agoEnable the 'new' module by default.
Guido van Rossum [Mon, 21 Sep 1998 14:45:22 +0000 (14:45 +0000)]
Enable the 'new' module by default.

26 years agoPatch by Greg Stein to document the 'P' flag.
Guido van Rossum [Mon, 21 Sep 1998 14:44:34 +0000 (14:44 +0000)]
Patch by Greg Stein to document the 'P' flag.

26 years agore.findall(): Mark as added in 1.5.2.
Fred Drake [Fri, 18 Sep 1998 17:11:49 +0000 (17:11 +0000)]
re.findall():  Mark as added in 1.5.2.

26 years agoPatches from Greg Stein to support 'P' format in struct module's
Guido van Rossum [Fri, 18 Sep 1998 14:14:13 +0000 (14:14 +0000)]
Patches from Greg Stein to support 'P' format in struct module's
native format, as void* (translated to Python int or long).
Also adds PyLong_FromVoidPtr and PyLong_AsVoidPtr to longobject.c.

26 years agoGet rid of 'ppp' that accidentally crept in.
Guido van Rossum [Thu, 17 Sep 1998 17:07:15 +0000 (17:07 +0000)]
Get rid of 'ppp' that accidentally crept in.

26 years agoAdded optional mouseregion parameter to WaitNextEvent (which is now
Jack Jansen [Thu, 17 Sep 1998 15:28:58 +0000 (15:28 +0000)]
Added optional mouseregion parameter to WaitNextEvent (which is now
manually generated).

26 years agoRichard Wolff's changes, documenting his changes to pdb.py.
Guido van Rossum [Thu, 17 Sep 1998 15:11:51 +0000 (15:11 +0000)]
Richard Wolff's changes, documenting his changes to pdb.py.

26 years agoUntabified and applied Richard Wolff's changes (plus my own reflowing
Guido van Rossum [Thu, 17 Sep 1998 15:01:38 +0000 (15:01 +0000)]
Untabified and applied Richard Wolff's changes (plus my own reflowing
of some paragraphs).

26 years agoRichard Wolff's additional changes; some layout nits, and change the
Guido van Rossum [Thu, 17 Sep 1998 15:00:30 +0000 (15:00 +0000)]
Richard Wolff's additional changes; some layout nits, and change the
alias delimiter to ';;'.

26 years agoDuplicate the decls for PySys_WriteStd{out,err} here so the VC++
Guido van Rossum [Thu, 17 Sep 1998 14:00:22 +0000 (14:00 +0000)]
Duplicate the decls for PySys_WriteStd{out,err} here so the VC++
compiler doesn't grumble.  Greg Stein's suggestion.

26 years agoAt Greg Stein's request, add PyLong_*LongLong entry points.
Guido van Rossum [Thu, 17 Sep 1998 13:58:37 +0000 (13:58 +0000)]
At Greg Stein's request, add PyLong_*LongLong entry points.

26 years agoDefine SIZEOF_LONG_LONG (as 8) at Greg Stein's request.
Guido van Rossum [Thu, 17 Sep 1998 13:19:36 +0000 (13:19 +0000)]
Define SIZEOF_LONG_LONG (as 8) at Greg Stein's request.

26 years agoIn load_inst(), when instantiating an instance the old way (i.e. when
Guido van Rossum [Tue, 15 Sep 1998 20:25:57 +0000 (20:25 +0000)]
In load_inst(), when instantiating an instance the old way (i.e. when
there's an __getinitargs__() method), if a TypeError occurs, catch and
reraise it but add info to the error about the class name being
instantiated.  This makes debugging a lot easier if __getinitargs__()
returns something bogus (e.g. a string instead of a singleton tuple).

26 years agoIgnore the TclError exception raised when deleting the registration
Guido van Rossum [Mon, 14 Sep 1998 19:06:39 +0000 (19:06 +0000)]
Ignore the TclError exception raised when deleting the registration
for callit, used by the after() command.  This can happen when the
callback deletes the window.

26 years agoSeveral changes that Python carry on in the face of errors in the
Barry Warsaw [Mon, 14 Sep 1998 18:51:11 +0000 (18:51 +0000)]
Several changes that Python carry on in the face of errors in the
initialization of class exceptions.  Specifically:

init_class_exc(): This function now returns an integer status of the
class exception initialization.  No fatal errors in this method now.
Also, use PySys_WriteStderr() when writing error messages.  When an
error occurs in this function, 0 is returned, but the partial creation
of the exception classes is not undone (this happens elsewhere).

Things that could trigger the fallback:

    - exceptions.py fails to be imported (due to syntax error, etc.)

    - one of the exception classes is missing (e.g. due to library
      version mismatch)

    - exception class can't be inserted into __builtin__'s dictionary

    - MemoryError instance can't be pre-allocated

    - some other PyErr_Occurred

newstdexception(): Changed the error message.  This is still a fatal
error because if the string based exceptions can't be created, we
really can't continue.

initerrors(): Be sure to xdecref the .exc field, which might be
non-NULL if class exceptions init was aborted.

_PyBuiltin_Init_2(): If class exception init fails, print a warning
message and reinstate the string based exceptions.

26 years agoAdded the mainloop() call.
Guido van Rossum [Mon, 14 Sep 1998 17:52:29 +0000 (17:52 +0000)]
Added the mainloop() call.

26 years agonannified
Guido van Rossum [Mon, 14 Sep 1998 17:51:14 +0000 (17:51 +0000)]
nannified

26 years agoThere was a confusion in my checkin of the code to support list() with
Guido van Rossum [Mon, 14 Sep 1998 17:36:51 +0000 (17:36 +0000)]
There was a confusion in my checkin of the code to support list() with
and without a message number argument: the argument was called 'msg'
but the code expected it to be called 'which'.  In line with the other
methods, I've renamed the argument to 'which', and adapted the doc
string not to refer to 'msg'.

26 years agonannified
Guido van Rossum [Mon, 14 Sep 1998 16:44:15 +0000 (16:44 +0000)]
nannified

26 years agoPrint serious errors to stderr instead of stdout.
Guido van Rossum [Mon, 14 Sep 1998 16:22:21 +0000 (16:22 +0000)]
Print serious errors to stderr instead of stdout.

26 years ago#Code rearranging to quiet byte-compiler
Barry Warsaw [Mon, 14 Sep 1998 16:16:18 +0000 (16:16 +0000)]
#Code rearranging to quiet byte-compiler

26 years agonannified
Guido van Rossum [Mon, 14 Sep 1998 16:03:02 +0000 (16:03 +0000)]
nannified

26 years agoNannified.
Guido van Rossum [Mon, 14 Sep 1998 16:02:28 +0000 (16:02 +0000)]
Nannified.

26 years agonannified
Guido van Rossum [Mon, 14 Sep 1998 15:57:09 +0000 (15:57 +0000)]
nannified

26 years agonannified.
Guido van Rossum [Mon, 14 Sep 1998 15:56:40 +0000 (15:56 +0000)]
nannified.

26 years agoPatch by Marc-Andre Lemburg: use re module to compare test results.
Guido van Rossum [Mon, 14 Sep 1998 15:50:40 +0000 (15:50 +0000)]
Patch by Marc-Andre Lemburg: use re module to compare test results.
This makes it possible to accept that on Linux %w returns "01" instead
of "1", for example.

26 years agoUtility to replace CRLF with LF in argument files.
Guido van Rossum [Mon, 14 Sep 1998 15:46:41 +0000 (15:46 +0000)]
Utility to replace CRLF with LF in argument files.

26 years agoUtility to replace LF with CRLF in argument files.
Guido van Rossum [Mon, 14 Sep 1998 15:46:15 +0000 (15:46 +0000)]
Utility to replace LF with CRLF in argument files.

26 years agoUtility to untabify stubber results.
Guido van Rossum [Mon, 14 Sep 1998 15:43:38 +0000 (15:43 +0000)]
Utility to untabify stubber results.

26 years agonannified.
Guido van Rossum [Mon, 14 Sep 1998 15:34:45 +0000 (15:34 +0000)]
nannified.

26 years agoMac-specific mod to enable aliases on import paths.
Guido van Rossum [Mon, 14 Sep 1998 13:40:53 +0000 (13:40 +0000)]
Mac-specific mod to enable aliases on import paths.
(Jack Jansen and/or Just van Rossum)

26 years agoRemove some unused variables from gethostbyaddr_ex and gethostbyaddr,
Guido van Rossum [Sun, 13 Sep 1998 15:52:13 +0000 (15:52 +0000)]
Remove some unused variables from gethostbyaddr_ex and gethostbyaddr,
discovered by Marc Lemburg.

26 years agoUndo victim of careless global substitute ("long long_hash" was
Guido van Rossum [Sun, 13 Sep 1998 15:37:20 +0000 (15:37 +0000)]
Undo victim of careless global substitute ("long long_hash" was
changed to "LONG_LONG_hash" in the list of forward decls).  Discovered
by Jason Harper.

26 years agoDon't remember...
Jack Jansen [Sun, 13 Sep 1998 15:03:55 +0000 (15:03 +0000)]
Don't remember...

26 years agoRichard Wolff's changes:
Guido van Rossum [Sat, 12 Sep 1998 14:42:23 +0000 (14:42 +0000)]
Richard Wolff's changes:

pdb.doc Updated to reflect better the various changes.

26 years agoRichard Wolff's changes:
Guido van Rossum [Fri, 11 Sep 1998 22:50:09 +0000 (22:50 +0000)]
Richard Wolff's changes:

pdb.py  Uses the Breakpoint class so one can enable/disable breakpoints,
set temporary ones, set ignore counts, and conditions.  The last
can be set using the 'b' command
b 243 , i>4 ( b 243,i>4 if you are space adverse)
or with the condition command so conditions can be changed
for a particular breakpoint.

Breakpoints are numbered from 1 on, and if a breakpoint is deleted,
the number is not reused.  All the breakpoint handling commands
refer to breakpoints by number.  To be consistent, the clear command
does so as well, which is the one change from the original pdb that
is not transparent.  Thus only the breakpoint command 'b' uses a
line number or file:line or method.  You can also give
b whrandom.random    and the method will be searched for along
sys.path.  This is implemented with an 'egrep' command and so
is not as portable as it might be.  [ see  lineinfo() and
lineinfoCmd ]

Breakpoints cannot be set at a line that is blank or a '#' comment
or starts a triply quoted comment.  This is because I would like
this behavior in my DDD interface and think it reasonable for
pdb as well.  It can be removed readily, however as it is all
incorporated in the routine checkline().  If one attempts to
set a breakpoint at a 'def' line, the breakpoint is automatically
moved to the first executable line after the 'def'.  This too is
in checkline().

do_EOF() returns zero so typing an end-of-file character as a command
does nothing.  'quit' does the quitting.

The routine defaultFile() is present so as to preserve the current
pdb behavior and yet allow me to override it in pydb.

There's some code in lineinfo() that is probably mainly useful only
for pydb and if you prefer, much up to the comment "Best first guess"
could be removed.

Keith Davidson provided the code for handling $HOME/.pdbrc and
./.pdbrc, and it has been incorporated.  He also provided the
alias handling routine.  I modified it a bit so it could live
nicely in precmd().  He and I have been in contact; he has the
new pdb (and pydb) with his code incorporated.  He also asked
about the possibility of allowing multiple commands on one
line, such as step;step  or s;s  or with an alias such as
alias ct tbreak %1 ; continue
and since it was so easy, that's in place as well.  It's a simple
'split the line at the first ";"' operation and puts the second
half in the command queue (self.cmdqueue).  This has the unfortunate
effect of destroying a line like   print "i: "+i+"; j: "+j
but either there's a simple way to deal with this, or my attitude
will remain that pdb is a debugger, not a compiler/parser/etc.
An alias like   alias 4s  s;;s;
will work because the adjacent and trailing ";" act like a <cr> which
repeats the last command.  Of course, either s;s;s;s or s;;;  would be
a bit more sensible.

The help commands have been updated.

26 years agoRichard Wolff's changes:
Guido van Rossum [Fri, 11 Sep 1998 22:38:35 +0000 (22:38 +0000)]
Richard Wolff's changes:

bdb.py  now has a class definition called Breakpoint along with
associated methods.  There's no reason why this class has to
be there; if you prefer it elsewhere, 'tis easily done.

(Minor reformatting by GvR; e.g. moved Breakpoint's doc string to
proper point.)

26 years agoRichard Wolff's changes:
Guido van Rossum [Fri, 11 Sep 1998 22:33:08 +0000 (22:33 +0000)]
Richard Wolff's changes:

cmd.py  has incorporated the changes we discussed a couple of weeks ago
(a command queue, returning line from precmd, and stop from postcmd)
and some changes to help that were occasioned because I wanted to
inherit from pdb which inherits from cmd.py and the help routine
didn't look for commands or the associated help deeply enough.

26 years agoAdd a \label to the section "Fancier Output Formatting" (it's referenced from
Fred Drake [Fri, 11 Sep 1998 16:21:55 +0000 (16:21 +0000)]
Add a \label to the section "Fancier Output Formatting" (it's referenced from
the KOE docs).

Some markup nits.

26 years agoMarkup nits.
Fred Drake [Thu, 10 Sep 1998 20:21:00 +0000 (20:21 +0000)]
Markup nits.

26 years agocorrect bogus instructions 'ccoment out' -> 'uncomment'
Jeremy Hylton [Thu, 10 Sep 1998 20:18:09 +0000 (20:18 +0000)]
correct bogus instructions 'ccoment out' -> 'uncomment'

26 years agodo_cmd_methodlineni(): New function, needed because the ref. manual now
Fred Drake [Thu, 10 Sep 1998 18:59:13 +0000 (18:59 +0000)]
do_cmd_methodlineni():  New function, needed because the ref. manual now
actually uses this markup.

26 years agoAdded comment about support for rational numbers, and pointer to
Fred Drake [Thu, 10 Sep 1998 18:42:55 +0000 (18:42 +0000)]
Added comment about support for rational numbers, and pointer to
Demos/classes/Rat.py.

26 years agoMarkup nits.
Fred Drake [Thu, 10 Sep 1998 18:25:58 +0000 (18:25 +0000)]
Markup nits.

Fixes/index improvements from Michael Ernst <mernst@cs.washington.edu>.

26 years agoFixed the words in the comment and error message about defining FULL_PATH.
Guido van Rossum [Thu, 10 Sep 1998 18:22:18 +0000 (18:22 +0000)]
Fixed the words in the comment and error message about defining FULL_PATH.
(It's not SCRIPTPATH!)

26 years agoinclude <string.h> to get prototype for strcmp
Jeremy Hylton [Thu, 10 Sep 1998 18:10:59 +0000 (18:10 +0000)]
include <string.h> to get prototype for strcmp

change error messages to be a little more straightforward

change definition of FULL_PATH so that an error is raised if the
setuid wrapper is used un-edited

26 years agoFix typo in URL; reported by Michael Ernst <mernst@cs.washington.edu>.
Fred Drake [Thu, 10 Sep 1998 17:55:32 +0000 (17:55 +0000)]
Fix typo in URL; reported by Michael Ernst <mernst@cs.washington.edu>.

26 years agoApparently on AIX when using gcc you need to call pthread_init()
Guido van Rossum [Thu, 10 Sep 1998 03:04:40 +0000 (03:04 +0000)]
Apparently on AIX when using gcc you need to call pthread_init()
(which is not a POSIX threads call!).  Reported and confirmed by Brad
Howes.

26 years ago\itembreak,
Fred Drake [Wed, 9 Sep 1998 15:27:43 +0000 (15:27 +0000)]
\itembreak,
\itemjoin:  Remove obsolete macros.

\itemnewline:  Rename to \py@itemnewline, since it's only used internally.

26 years agoFix a bug where comparison of a rational with a float failed because
Guido van Rossum [Wed, 9 Sep 1998 14:07:06 +0000 (14:07 +0000)]
Fix a bug where comparison of a rational with a float failed because
the difference got converted to float.
Put brackets around the string representation of (non-integer)
rationals.
(Sjoerd Mullender.)

26 years agoMichael P. Reilly suggested this fix: makesetup wants to prepend
Guido van Rossum [Wed, 9 Sep 1998 14:04:51 +0000 (14:04 +0000)]
Michael P. Reilly suggested this fix: makesetup wants to prepend
"$(srcdir)/" before all source files even when is starts with "/".

26 years agoPatch suggested by Perry Stoll -- os.path.normpath(".//x") returned
Guido van Rossum [Tue, 8 Sep 1998 22:28:06 +0000 (22:28 +0000)]
Patch suggested by Perry Stoll -- os.path.normpath(".//x") returned
"/x", should return "x".

26 years agoSplit tcl/tk libs out of other libraries (don't want to build these always)
Jack Jansen [Tue, 8 Sep 1998 19:43:32 +0000 (19:43 +0000)]
Split tcl/tk libs out of other libraries (don't want to build these always)

26 years agoMods by Just to allow aliases in sys.path entries
Jack Jansen [Mon, 7 Sep 1998 11:36:17 +0000 (11:36 +0000)]
Mods by Just to allow aliases in sys.path entries

26 years agoBeh, new version must be edited in a separate file.
Guido van Rossum [Fri, 4 Sep 1998 21:20:29 +0000 (21:20 +0000)]
Beh, new version must be edited in a separate file.

26 years agoUse SCRIPT_NAME (if defined) instead of hardcoding /cgi-bin/ when
Guido van Rossum [Fri, 4 Sep 1998 21:19:55 +0000 (21:19 +0000)]
Use SCRIPT_NAME (if defined) instead of hardcoding /cgi-bin/ when
sending the cookie.  (Suggestion by AMK.)

26 years agoCorrect typo in #ifdef: PY_THREAD_D4, should be PY_PTHREAD_D4.
Guido van Rossum [Fri, 4 Sep 1998 13:38:32 +0000 (13:38 +0000)]
Correct typo in #ifdef: PY_THREAD_D4, should be PY_PTHREAD_D4.
Reported by Jonathan Giddy.

26 years agoShould no longer surround PyOS_Readline() call with
Guido van Rossum [Thu, 3 Sep 1998 22:25:05 +0000 (22:25 +0000)]
Should no longer surround PyOS_Readline() call with
Py_{BEGIN,END}_ALLOW_THREADS macros.  Also get rid of the declaration
for it (it's now in pythonrun.h).

26 years agoEasy optimizations of urlparse for the common case of parsing an http URL.
Jeremy Hylton [Wed, 2 Sep 1998 21:53:16 +0000 (21:53 +0000)]
Easy optimizations of urlparse for the common case of parsing an http URL.

1. use dict.get instead of try/except KeyError
2. if the url scheme is 'http' then avoid the series of
   'if var in [someseq]:'.  instead, inline all of the code.
3. find = string.find