]> granicus.if.org Git - python/log
python
25 years agoCall tips by Mark Hammond (plus tiny fix by me.)
Guido van Rossum [Wed, 2 Jun 1999 16:10:19 +0000 (16:10 +0000)]
Call tips by Mark Hammond (plus tiny fix by me.)

25 years agoChanges by Mark Hammond: (1) support optional output_sep argument to
Guido van Rossum [Wed, 2 Jun 1999 12:06:47 +0000 (12:06 +0000)]
Changes by Mark Hammond: (1) support optional output_sep argument to
the constructor so he can eliminate the sys.ps2 that PythonWin leaves
in the source; (2) remove duplicate history items.

25 years agoChanges by Mark Hammond to allow using IDLE extensions in PythonWin as
Guido van Rossum [Wed, 2 Jun 1999 11:05:19 +0000 (11:05 +0000)]
Changes by Mark Hammond to allow using IDLE extensions in PythonWin as
well: make three dialog routines instance variables.

25 years agoChange by Mark Hammond to allow using IDLE extensions in PythonWin as
Guido van Rossum [Wed, 2 Jun 1999 11:04:29 +0000 (11:04 +0000)]
Change by Mark Hammond to allow using IDLE extensions in PythonWin as
well: make three dialog routines instance variables.

25 years agoHah! A fix of my own to Tim's code!
Guido van Rossum [Tue, 1 Jun 1999 20:06:44 +0000 (20:06 +0000)]
Hah!  A fix of my own to Tim's code!
Unix bindings for <<toggle-tabs>> and <<change-indentwidth>> were
missing, and somehow that meant the events were never generated,
even though they were in the menu.  The new Unix bindings are now
the same as the Windows bindings (M-t and M-u).

25 years agoTim Peters again:
Guido van Rossum [Tue, 1 Jun 1999 19:55:34 +0000 (19:55 +0000)]
Tim Peters again:

The new version (attached) is fast enough all the time in every real module
I have <whew!>.  You can make it slow by, e.g., creating an open list with
5,000 90-character identifiers (+ trailing comma) each on its own line, then
adding an item to the end -- but that still consumes less than a second on
my P5-166.  Response time in real code appears instantaneous.

Fixed some bugs.

New feature:  when hitting ENTER and the cursor is beyond the line's leading
indentation, whitespace is removed on both sides of the cursor; before
whitespace was removed only on the left; e.g., assuming the cursor is
between the comma and the space:

def something(arg1, arg2):
                   ^ cursor to the left of here, and hit ENTER
               arg2):   # new line used to end up here
              arg2):    # but now lines up the way you expect

New hack:  AutoIndent has grown a context_use_ps1 Boolean config option,
defaulting to 0 (false) and set to 1 (only) by PyShell.  Reason:  handling
the fancy stuff requires looking backward for a parsing synch point; ps1
lines are the only sensible thing to look for in a shell window, but are a
bad thing to look for in a file window (ps1 lines show up in my module
docstrings often).  PythonWin's shell should set this true too.

Persistent problem:  strings containing def/class can still screw things up
completely.  No improvement.  Simplest workaround is on the user's head, and
consists of inserting e.g.

def _(): pass

(or any other def/class) after the end of the multiline string that's
screwing them up.  This is especially irksome because IDLE's syntax coloring
is *not* confused, so when this happens the colors don't match the
indentation behavior they see.

25 years agoTim Peters again:
Guido van Rossum [Tue, 1 Jun 1999 19:52:34 +0000 (19:52 +0000)]
Tim Peters again:

[Tim, after adding some bracket smarts to AutoIndent.py]
> ...
> What it can't possibly do without reparsing large gobs of text is
> suggest a reasonable indent level after you've *closed* a bracket
> left open on some previous line.
> ...

The attached can, and actually fast enough to use -- most of the time.  The
code is tricky beyond belief to achieve that, but it works so far; e.g.,

        return len(string.expandtabs(str[self.stmt_start :
                                         ^ indents to caret
                                         i],
                                     ^ indents to caret
                                     self.tabwidth)) + 1
    ^ indents to caret

It's about as smart as pymode now, wrt both bracket and backslash
continuation rules.  It does require reparsing large gobs of text, and if it
happens to find something that looks like a "def" or "class" or sys.ps1
buried in a multiline string, but didn't suck up enough preceding text to
see the start of the string, it's completely hosed.  I can't repair that --
it's just too slow to reparse from the start of the file all the time.

AutoIndent has grown a new num_context_lines tuple attribute that controls
how far to look back, and-- like other params --this could/should be made
user-overridable at startup and per-file on the fly.

25 years agoNew file by Tim Peters:
Guido van Rossum [Tue, 1 Jun 1999 19:49:21 +0000 (19:49 +0000)]
New file by Tim Peters:

One new file in the attached, PyParse.py.  The LineStudier (whatever it was
called <wink>) class was removed from AutoIndent; PyParse subsumes its
functionality.

25 years agoTim Peters keeps revising this module (more to come):
Guido van Rossum [Tue, 1 Jun 1999 19:47:56 +0000 (19:47 +0000)]
Tim Peters keeps revising this module (more to come):

Removed "New tabwidth" menu binding.

Added "a tab means how many spaces?" dialog to block tabify and untabify.  I
think prompting for this is good now:  they're usually at-most-once-per-file
commands, and IDLE can't let them change tabwidth from the Tk default
anymore, so IDLE can no longer presume to have any idea what a tab means.

Irony:  for the purpose of keeping comments aligned via tabs, Tk's
non-default approach is much nicer than the Emacs/Notepad/Codewright/vi/etc
approach.

25 years agoAndy Dustman notes that I patched the close() call in the wrong place.
Guido van Rossum [Tue, 1 Jun 1999 18:58:34 +0000 (18:58 +0000)]
Andy Dustman notes that I patched the close() call in the wrong place.
Here's the correct patch!

25 years agoIn class TemporaryFileWrapper, don't cache attributes of tpye int --
Guido van Rossum [Tue, 1 Jun 1999 18:55:36 +0000 (18:55 +0000)]
In class TemporaryFileWrapper, don't cache attributes of tpye int --
these happen to be 'closed' and 'softspace', which may change!

Noted by Dave Ascher (with slightly different solution).

25 years ago1. Catch NameError on import (could be raised by case mismatch on Windows).
Guido van Rossum [Tue, 1 Jun 1999 18:27:14 +0000 (18:27 +0000)]
1. Catch NameError on import (could be raised by case mismatch on Windows).
2. No longer need to reset pyclbr cache and show watch cursor when calling
   ClassBrowser -- the ClassBrowser takes care of pyclbr and the TreeWidget
   takes care of the watch cursor.
3. Reset the focus to the current window after error message about class
   browser on buffer without filename.

25 years agoMissed a few.
Guido van Rossum [Tue, 1 Jun 1999 18:23:19 +0000 (18:23 +0000)]
Missed a few.

25 years agoRewritten based on TreeWidget.py
Guido van Rossum [Tue, 1 Jun 1999 18:21:31 +0000 (18:21 +0000)]
Rewritten based on TreeWidget.py

25 years agoObject browser, based on TreeWidget.py.
Guido van Rossum [Tue, 1 Jun 1999 18:20:56 +0000 (18:20 +0000)]
Object browser, based on TreeWidget.py.

25 years agoTree widget done right.
Guido van Rossum [Tue, 1 Jun 1999 18:19:17 +0000 (18:19 +0000)]
Tree widget done right.

25 years agoAs yet unused code for tool tips.
Guido van Rossum [Tue, 1 Jun 1999 18:19:02 +0000 (18:19 +0000)]
As yet unused code for tool tips.

25 years agoEnsure sys.argv[0] is the script name on Run Script.
Guido van Rossum [Tue, 1 Jun 1999 18:18:27 +0000 (18:18 +0000)]
Ensure sys.argv[0] is the script name on Run Script.

25 years agoMove zoom height functionality to separate function.
Guido van Rossum [Tue, 1 Jun 1999 18:17:02 +0000 (18:17 +0000)]
Move zoom height functionality to separate function.

25 years agoFix availability clause; mention availability of similar functionality
Fred Drake [Tue, 1 Jun 1999 17:55:52 +0000 (17:55 +0000)]
Fix availability clause; mention availability of similar functionality
for Windows using win32pipe.

25 years agoA few icons used by ../TreeWidget.py and its callers.
Guido van Rossum [Tue, 1 Jun 1999 15:04:51 +0000 (15:04 +0000)]
A few icons used by ../TreeWidget.py and its callers.

25 years agoNew version by Tim Peters improves block opening test.
Guido van Rossum [Tue, 1 Jun 1999 15:03:30 +0000 (15:03 +0000)]
New version by Tim Peters improves block opening test.

25 years agoJack Jansen's patch to support file:///path/file/name URL syntax.
Guido van Rossum [Tue, 1 Jun 1999 14:36:56 +0000 (14:36 +0000)]
Jack Jansen's patch to support file:///path/file/name URL syntax.

25 years agoGreg McFarlane writes: Tkinter.Text.tag_add should take multiple
Guido van Rossum [Tue, 1 Jun 1999 13:57:15 +0000 (13:57 +0000)]
Greg McFarlane writes: Tkinter.Text.tag_add should take multiple
arguments.  [Slightly changed from submitted patch.]

25 years agoposix_listdir(): When an error occurs, call
Barry Warsaw [Thu, 27 May 1999 23:13:21 +0000 (23:13 +0000)]
posix_listdir(): When an error occurs, call
posix_error_with_filename() instead of posix_error(), passing in the
name argument, so you get information on which directory was being
listed.

25 years agoOops, forgot to remove the individual module indexes for lib & mac now
Fred Drake [Thu, 27 May 1999 21:56:11 +0000 (21:56 +0000)]
Oops, forgot to remove the individual module indexes for lib & mac now
that there's a Global Module Index; there can be only one!

25 years agoAdd <hr> after top navigation bar; now looks more like the rest of the
Fred Drake [Thu, 27 May 1999 21:52:51 +0000 (21:52 +0000)]
Add <hr> after top navigation bar; now looks more like the rest of the
navigation bars in the HTML output.

25 years agoHack: make sure LaTeX2HTML doesn't change -- to - in mkhowto
Fred Drake [Thu, 27 May 1999 21:45:54 +0000 (21:45 +0000)]
Hack: make sure LaTeX2HTML doesn't change -- to - in mkhowto
description.

25 years agoDocument the "pid" attribute of the Popen3 class.
Fred Drake [Thu, 27 May 1999 17:50:59 +0000 (17:50 +0000)]
Document the "pid" attribute of the Popen3 class.

Use memberdesc instead of datadesc to document object attributes.
This gets the index right.

25 years agoTypo reported by Gerry Wiener <wiener@rap.ucar.edu>:
Fred Drake [Thu, 27 May 1999 17:18:08 +0000 (17:18 +0000)]
Typo reported by Gerry Wiener <wiener@rap.ucar.edu>:

items -> item

The returned list will then have one more items than the number of
non-overlapping occurrences of the separator in the string.

25 years agoMove some \index entries around so we can avoid using empty comments;
Fred Drake [Wed, 26 May 1999 16:15:17 +0000 (16:15 +0000)]
Move some \index entries around so we can avoid using empty comments;
empty comments trigger a bug in LaTeX2HTML.

Problem reported by Gerry Wiener <gerry@ucar.edu>.

25 years agoChange the example of configuring for large file support under Solaris
Fred Drake [Wed, 26 May 1999 13:03:34 +0000 (13:03 +0000)]
Change the example of configuring for large file support under Solaris
to use `getconf LFS_CFLAGS`.  Steve Clift (the author of the section
and large file support) agrees that this is the right thing to do.

25 years agoEugene Dvurechenski <jno@glas.net> says:
Barry Warsaw [Wed, 26 May 1999 04:02:18 +0000 (04:02 +0000)]
Eugene Dvurechenski <jno@glas.net> says:

    there is "su" top level domain still maintained in ex-USSR.  at
    least "*.msk.su" zone (Moscow, USSR) is still in use.

25 years ago"proces" --> "process"; reported by Gerry Wiener <gerry@ucar.edu>.
Fred Drake [Tue, 25 May 1999 13:42:26 +0000 (13:42 +0000)]
"proces" --> "process"; reported by Gerry Wiener <gerry@ucar.edu>.

Added some index entries.

25 years ago(py-electric-backspace): I'm not sure this function should be special
Barry Warsaw [Mon, 24 May 1999 21:43:37 +0000 (21:43 +0000)]
(py-electric-backspace): I'm not sure this function should be special
casing when py-honor-comment-indentation is nil, but this could be a
religious issue with some.  Seems to me we should still be dedenting
such comment lines one level.

25 years ago(py-parse-state): When running under Emacs -- which doesn't have
Barry Warsaw [Mon, 24 May 1999 19:57:32 +0000 (19:57 +0000)]
(py-parse-state): When running under Emacs -- which doesn't have
buffer-syntactic-context -- just short circuit the TQS test by jumping
to point-min and doing the test from there.  For long files, this will
be faster than looping with a re-search-backwards.

25 years ago(py-statement-closes-block-p): Add a py-goto-initial-line which fixes
Barry Warsaw [Mon, 24 May 1999 18:37:57 +0000 (18:37 +0000)]
(py-statement-closes-block-p): Add a py-goto-initial-line which fixes
indentation when the return value is a multiline sexp:

def bug():
    try:
        if 2>1:
            return (11+
                    12)

        else:   #XXX
            return 12
    except:
        return 13

25 years agoOliver Steele writes:
Just van Rossum [Fri, 21 May 1999 21:42:27 +0000 (21:42 +0000)]
Oliver Steele writes:
"""Despite the best intentions of Anarchie and Internet Explorer, I often end
up with Python source files (and other text files that I'd like to edit with
PythonIDE) that use '\n' instead of '\r' as a line separator (and therefore
sh

25 years agoOn HP-UX, -rpath is another option taking an argument that needs to go
Guido van Rossum [Fri, 21 May 1999 19:18:49 +0000 (19:18 +0000)]
On HP-UX, -rpath is another option taking an argument that needs to go
to the libs variable.  Reported by Albert Chin-A-Young.

25 years agoAndy Dustman writes:
Guido van Rossum [Fri, 21 May 1999 16:12:30 +0000 (16:12 +0000)]
Andy Dustman writes:

I noticed while watching (with lsof) my forking SocketServer app running
that I would get multiple processes listening to the socket. For the most
part, this doesn't hurt things, but if you terminate the server, this can
prevent it from restarting because it cannot bind to the port due to any
running children which also have the socket open. The following one-liner
fixes this.

25 years agoRename History to IdleHistory.
Guido van Rossum [Fri, 21 May 1999 04:46:17 +0000 (04:46 +0000)]
Rename History to IdleHistory.
Add isatty() to pseudo files.

25 years agoMake initial stack viewer wider
Guido van Rossum [Fri, 21 May 1999 04:45:45 +0000 (04:45 +0000)]
Make initial stack viewer wider

25 years agoNew wishes
Guido van Rossum [Fri, 21 May 1999 04:45:20 +0000 (04:45 +0000)]
New wishes

25 years agoMuch improved autoindent and handling of tabs,
Guido van Rossum [Fri, 21 May 1999 04:38:27 +0000 (04:38 +0000)]
Much improved autoindent and handling of tabs,
by Tim Peters.

25 years agoMap .js to application/x-javascript.
Fred Drake [Thu, 20 May 1999 12:52:04 +0000 (12:52 +0000)]
Map .js to application/x-javascript.

25 years agoEnhanced docstring and some comments.
Fred Drake [Wed, 19 May 1999 17:37:37 +0000 (17:37 +0000)]
Enhanced docstring and some comments.

_begin_macro_rx:  Fixed RE that didn't properly allow a space after
  the name of the macro.  This affects the conversion
  of the tutorial.

25 years agoModify to perform "---" to "&mdash;" conversion outside of
Fred Drake [Tue, 18 May 1999 17:34:51 +0000 (17:34 +0000)]
Modify to perform "---" to "&mdash;" conversion outside of
verbatim-like environments.  The list of verbatim-like environments is
a defined by a variable in main().

25 years agoRemove the "---" to "&mdash;" conversion; this is wrong in verbatim
Fred Drake [Tue, 18 May 1999 17:33:01 +0000 (17:33 +0000)]
Remove the "---" to "&mdash;" conversion; this is wrong in verbatim
environments.  Move the conversion to esis2sgml.py.

25 years agoSET_LINE_NO ==> SET_LINENO
Fred Drake [Mon, 17 May 1999 20:57:07 +0000 (20:57 +0000)]
SET_LINE_NO ==> SET_LINENO

Reported by Corran Webster <cwebster@math.tamu.edu>.

25 years agoAdded "Learning Python" to the books section.
Fred Drake [Mon, 17 May 1999 19:35:01 +0000 (19:35 +0000)]
Added "Learning Python" to the books section.

Updated comments on the documentation.

25 years agoAdded paragraph explaininng the text/binary flavors of some methods,
Fred Drake [Mon, 17 May 1999 16:35:15 +0000 (16:35 +0000)]
Added paragraph explaininng the text/binary flavors of some methods,
to make it easier for people to find what they're looking for.

25 years agoDocument \e, \url.
Fred Drake [Mon, 17 May 1999 16:33:54 +0000 (16:33 +0000)]
Document \e, \url.
Add a few more comments about mkhowto.

Based on comments from Albert <hat@se-46.wpa.wtb.tue.nl>.

25 years agoDon't \input boilerplate.tex, fill in the real stuff. 3rd party
Fred Drake [Mon, 17 May 1999 16:02:38 +0000 (16:02 +0000)]
Don't \input boilerplate.tex, fill in the real stuff.  3rd party
documents probably aren't written by Guido.  ;-)

25 years agoAttempted to clarify usage of the \declaremodule macro somewhat;
Fred Drake [Mon, 17 May 1999 15:22:45 +0000 (15:22 +0000)]
Attempted to clarify usage of the \declaremodule macro somewhat;
Michael Hudson's documentation for bytecodehacks exhibits incorrect
usage.

Added some comments about how to set up the mkhowto script for use
with documents not contained in the documentation source tree.

25 years agodefine_module(): Check the module type for validity before using.
Fred Drake [Mon, 17 May 1999 15:00:32 +0000 (15:00 +0000)]
define_module():  Check the module type for validity before using.
  This reflects the changes made in
  ../texinputs/python.sty.

25 years ago\declaremodule: Typo.
Fred Drake [Mon, 17 May 1999 14:57:26 +0000 (14:57 +0000)]
\declaremodule:  Typo.

25 years ago\declaremodule: Make this more robust. Only attempt to add an index
Fred Drake [Mon, 17 May 1999 14:47:10 +0000 (14:47 +0000)]
\declaremodule:  Make this more robust.  Only attempt to add an index
 entry based on the module type if the type is known.
 Otherwise, spit out a warning the the module type
 parameter was bad and generate a "plain" index entry.

 Without this, the bad module type was emitted as
 text.

Problem noticed by processing Michael Hudson's docs for
bytecodehacks.

25 years agoThe conversion temporary files should not be ignored here anymore,
Fred Drake [Thu, 13 May 1999 18:57:28 +0000 (18:57 +0000)]
The conversion temporary files should not be ignored here anymore,
since they shouldn't be here.  Only ignore the output tarballs in this
directory.

25 years agoPOP3.uidl(): Update description based on comments from Piers Lauder
Fred Drake [Thu, 13 May 1999 18:48:14 +0000 (18:48 +0000)]
POP3.uidl():  Update description based on comments from Piers Lauder
      <piers@cs.su.oz.au>.

25 years agoPOP3.uidl(): Update docstring based on comments from Piers Lauder
Fred Drake [Thu, 13 May 1999 18:47:25 +0000 (18:47 +0000)]
POP3.uidl():  Update docstring based on comments from Piers Lauder
      <piers@cs.su.oz.au>.

25 years agoPyCObject_FromVoidPtr(): Clarify that the destr function will only be
Fred Drake [Thu, 13 May 1999 18:41:14 +0000 (18:41 +0000)]
PyCObject_FromVoidPtr():  Clarify that the destr function will only be
  called on destruction is non-NULL.

25 years agoSmall nits around some of the index entries.
Fred Drake [Thu, 13 May 1999 18:38:11 +0000 (18:38 +0000)]
Small nits around some of the index entries.

When refering to chapters, use \ref, don't hardcode the chapter
number.

25 years agomake_index_entry(): Remove. Not only did this override the
Fred Drake [Thu, 13 May 1999 18:36:54 +0000 (18:36 +0000)]
make_index_entry():  Remove.  Not only did this override the
     l2hinit.perl version of the function (which
     overrode a version in latex2html), but
     do_cmd_index() was overridden.  Since
     do_cmd_index() was the only caller, we can trash
     this.

define_indexing_macro():  New function used during setup to support
  more dynamic dispatch for indexing.

process_index_macros():  New function; implement dynamic dispatching
 of indexing support functions, allowing many
 targets used in indexing to be shared by
 multiple index entries.  I.e., something like
 \index{foo}\bifuncindex{bar} can now share a
 single target anchor.

These indexing changes reduce the amount of clutter in the generated
HTML files.  In the reference manual, this cuts the number of targets
by 44%.  Targets are less affected when generated by environments
rather than macros.

25 years agomake_index_entry(): Remove. This is overridden in python.perl and
Fred Drake [Thu, 13 May 1999 16:41:19 +0000 (16:41 +0000)]
make_index_entry():  Remove.  This is overridden in python.perl and
     was never called in this incarnation.  The
     other version is simpler as well.

25 years agoRemoved old comments.
Fred Drake [Thu, 13 May 1999 16:20:30 +0000 (16:20 +0000)]
Removed old comments.

25 years agoChange the look of \seemodule output to fit in better.
Fred Drake [Tue, 11 May 1999 15:42:51 +0000 (15:42 +0000)]
Change the look of \seemodule output to fit in better.

25 years agoMove the "See also:" section so it appears are part of the top HTML
Fred Drake [Tue, 11 May 1999 15:15:54 +0000 (15:15 +0000)]
Move the "See also:" section so it appears are part of the top HTML
page of the section.

25 years agoAdded module references; minor grammatical fixes.
Fred Drake [Tue, 11 May 1999 15:14:15 +0000 (15:14 +0000)]
Added module references; minor grammatical fixes.
All suggested by Eric Raymond.

25 years agoAdded missing comma, reported by Eric Raymond.
Fred Drake [Tue, 11 May 1999 13:45:37 +0000 (13:45 +0000)]
Added missing comma, reported by Eric Raymond.

25 years agoLots of adjustments to deal with the document content now being stored
Fred Drake [Mon, 10 May 1999 19:36:52 +0000 (19:36 +0000)]
Lots of adjustments to deal with the document content now being stored
in a fragment rather than the main document object.

25 years agoSome more fixes.
Fred Drake [Mon, 10 May 1999 19:36:03 +0000 (19:36 +0000)]
Some more fixes.

Add controls for some of the esoteric indexing macros.

25 years agoFixed some index entries.
Fred Drake [Mon, 10 May 1999 13:43:22 +0000 (13:43 +0000)]
Fixed some index entries.

In the __coerce__ description, None should be returned if the
conversion is *impossible*, not *possible*.  Reported by Robert Kern
<kernr@ncifcrf.gov>.

25 years agoExtendedEsisBuilder.push(): Override inherited definition. We don't
Fred Drake [Fri, 7 May 1999 21:14:28 +0000 (21:14 +0000)]
ExtendedEsisBuilder.push():  Override inherited definition.  We don't
want to push nodes into the document, but into a document
fragment, since we're not necesarily working with something
that's well-formed.

25 years agoFix some bugs introduced in the previous checkin.
Fred Drake [Fri, 7 May 1999 21:12:21 +0000 (21:12 +0000)]
Fix some bugs introduced in the previous checkin.

25 years agoDefine & use a Conversion object. It's still really ugly, but at
Fred Drake [Fri, 7 May 1999 19:59:02 +0000 (19:59 +0000)]
Define & use a Conversion object.  It's still really ugly, but at
least there's a token object in here now!  ;-)

25 years agoUpdated connect_ex() documentation based on comments in the newgroup
Fred Drake [Thu, 6 May 1999 22:03:50 +0000 (22:03 +0000)]
Updated connect_ex() documentation based on comments in the newgroup
(M.-A. Lemburg and GvR).

25 years agoMake it work for "manual" documents as well as "howto" documents.
Fred Drake [Thu, 6 May 1999 19:37:38 +0000 (19:37 +0000)]
Make it work for "manual" documents as well as "howto" documents.
This still doesn't understand anything about multiple source files or
checking time dependencies.

25 years agoReflect recent patch for float % and divmod() by Tim Peters. Content
Fred Drake [Thu, 6 May 1999 14:46:35 +0000 (14:46 +0000)]
Reflect recent patch for float % and divmod() by Tim Peters.  Content
updates by Tim Peters, markup by FLD.

25 years agoTim Peters writes:
Guido van Rossum [Thu, 6 May 1999 14:26:34 +0000 (14:26 +0000)]
Tim Peters writes:

1. Fixes float divmod so that the quotient it returns is always an integral
value.

2. Fixes float % and float divmod so that the remainder always gets the
right sign (the current code uses a "are the signs different?" test that
doesn't work half the time <wink> when the product of the divisor and the
remainder underflows to 0).

25 years agoNathan Paul Simons noticed that the grid_remove() method was missing.
Guido van Rossum [Wed, 5 May 1999 23:03:48 +0000 (23:03 +0000)]
Nathan Paul Simons noticed that the grid_remove() method was missing.
(The difference between grid_remove() and grid_forget() is that the
former remembers the options for the slave.)

25 years agoRegression test for date format code, by Mike Meyer.
Guido van Rossum [Mon, 3 May 1999 19:57:01 +0000 (19:57 +0000)]
Regression test for date format code, by Mike Meyer.
(I tweaked it slightly so examples are allowed to have no date too.)

25 years agoNo need to import find(). (Andrew Dalke & kjpylint)
Guido van Rossum [Mon, 3 May 1999 18:16:23 +0000 (18:16 +0000)]
No need to import find().  (Andrew Dalke & kjpylint)

25 years agoNo need to import os or string. (Andrew Dalke & kjpylint)
Guido van Rossum [Mon, 3 May 1999 18:14:16 +0000 (18:14 +0000)]
No need to import os or string.  (Andrew Dalke & kjpylint)

25 years agoNo need to import sys. (Andrew Dalke & kjpylint)
Guido van Rossum [Mon, 3 May 1999 18:13:51 +0000 (18:13 +0000)]
No need to import sys.  (Andrew Dalke & kjpylint)

25 years agoTypo. (Andrew Dalke, without kjpylint)
Guido van Rossum [Mon, 3 May 1999 18:13:29 +0000 (18:13 +0000)]
Typo.  (Andrew Dalke, without kjpylint)

25 years agoNo need to import string. (Andrew Dalke & kjpylint)
Guido van Rossum [Mon, 3 May 1999 18:13:00 +0000 (18:13 +0000)]
No need to import string.  (Andrew Dalke & kjpylint)

25 years agoNo need to import os in test(). (Andrew Dalke & kjpylint)
Guido van Rossum [Mon, 3 May 1999 18:12:36 +0000 (18:12 +0000)]
No need to import os in test().  (Andrew Dalke & kjpylint)

25 years agoGet rid of confusing 'global' statement in global code.
Guido van Rossum [Mon, 3 May 1999 18:12:08 +0000 (18:12 +0000)]
Get rid of confusing 'global' statement in global code.
(Andrew Dalke & kjpylint)

25 years agoNo need to import sys or string. (Andrew Dalke & kjpylint)
Guido van Rossum [Mon, 3 May 1999 18:10:37 +0000 (18:10 +0000)]
No need to import sys or string.  (Andrew Dalke & kjpylint)

25 years agoClarify why we define disco. Suggested by Andrew Dalke.
Guido van Rossum [Mon, 3 May 1999 18:09:53 +0000 (18:09 +0000)]
Clarify why we define disco.  Suggested by Andrew Dalke.

25 years agoClarify why we define error. Suggested by Andrew Dalke.
Guido van Rossum [Mon, 3 May 1999 18:09:26 +0000 (18:09 +0000)]
Clarify why we define error.  Suggested by Andrew Dalke.

25 years agoNo need to import sys or linecache. (Andrew Dalke & kjpylint)
Guido van Rossum [Mon, 3 May 1999 18:08:16 +0000 (18:08 +0000)]
No need to import sys or linecache.  (Andrew Dalke & kjpylint)

25 years agoNo need to import gmtime, ctime, asctime.
Guido van Rossum [Mon, 3 May 1999 18:07:40 +0000 (18:07 +0000)]
No need to import gmtime, ctime, asctime.
Make error an alias for ValueError.
(Andrew Dalke & kjpylint)

25 years agoClarify why there are dynamic imports in AudioDev().
Guido van Rossum [Mon, 3 May 1999 18:04:07 +0000 (18:04 +0000)]
Clarify why there are dynamic imports in AudioDev().
This will enlighten Andrew Dalke; I don't know about kjpylint. :-)

25 years agoThe _comp_data() function never worked, it contained a reference to
Guido van Rossum [Mon, 3 May 1999 18:02:44 +0000 (18:02 +0000)]
The _comp_data() function never worked, it contained a reference to
undefined 'nframes'.  Should be self._nframes.  (Andrew Dalke & kjpylint)

25 years agoNo need to import sys, time, socket or SocketServer. (Andrew Dalke & kjpylint)
Guido van Rossum [Mon, 3 May 1999 18:01:31 +0000 (18:01 +0000)]
No need to import sys, time, socket or SocketServer.  (Andrew Dalke & kjpylint)

25 years agoNo need to import sys, time, or socket. (Andrew Dalke & kjpylint)
Guido van Rossum [Mon, 3 May 1999 18:00:48 +0000 (18:00 +0000)]
No need to import sys, time, or socket.  (Andrew Dalke & kjpylint)

25 years agoNo need to import rfc822. (Andrew Dalke & kjpylint)
Guido van Rossum [Mon, 3 May 1999 18:00:20 +0000 (18:00 +0000)]
No need to import rfc822.  (Andrew Dalke & kjpylint)

25 years agoTim Peters writes:
Guido van Rossum [Mon, 3 May 1999 15:49:52 +0000 (15:49 +0000)]
Tim Peters writes:

I'm still unsure, but couldn't stand the virtual event trickery so tried a
different sin (adding undo_block_start/stop methods to the Text instance in
EditorWindow.py).  Like it or not, it's efficient and works <wink>.  Better
idea?

Give the attached a whirl.  Even if you hate the implementation, I think
you'll like the results.  Think I caught all the "block edit" cmds,
including Format Paragraph, plus subtler ones involving smart indents and
backspacing.

25 years agoTim Peters writes:
Guido van Rossum [Mon, 3 May 1999 15:38:56 +0000 (15:38 +0000)]
Tim Peters writes:

[W]hile trying to dope out how redirection works, stumbled into two
possible glitches.  In the first, it doesn't appear to make sense to try to
rename a command that's already been destroyed; in the second, the name
"previous" doesn't really bring to mind "ignore the previous value" <wink>.