1. 02 Aug, 1999 7 commits
    • Fred Drake's avatar
      Re-implementation of mktarball.sh as a more portable Python script; · 07f03281
      Fred Drake authored
      with a more descriptive name.
      
      Allow creation of multiple archive formats with a single pass; useful
      in this case since it uses a fresh export/checkout from CVS to ensure
      that the tree is "clean" (no build turds, saved files, &c).  Use --all
      to create all supported formats.
      07f03281
    • Fred Drake's avatar
      bwrite(), ewrite(): Helpers for diagnostic output; essentially the · 91536d4f
      Fred Drake authored
      		same as sys.stderr.write(), but bwrite() will make it
      		bold if stderr is a tty (for visibility).
      
      		Use these everywhere instead of accessing
      		sys.stderr.write() directly.
      
      find_all_child_elements():  Find all elements by type name that are
      		immediate children of another.
      
      cleanup_synopses():  Receive both the document and fragment objects as
      		parameters; if only the document is passed, synopsis
      		information is never found since it's in the fragment!
      
      build_para():	Add a chunk of code to ensure that a newline always
      		follows the </para> end-tag.  Not really important, but
      		makes presentation consistent for authoring/
      		maintenance.
      
      fixup_bifuncindexes_chunk(): Use find_all_child_elements() instead of
      		find_all_elements() so we don't work with too many
      		levels at once; that could cause DOM exceptions with
      		the <elem>.removeChild() method.
      91536d4f
    • Fred Drake's avatar
      Mostly minor changes. · e13f4819
      Fred Drake authored
      Removed some obsolete commented-out code.
      
      Merged BaseConversion into Conversion since there's only one
      conversion process now.
      
      Remove push/pop of output stream; it's no longer needed.
      e13f4819
    • Fred Drake's avatar
      f96a4ed0
    • Fred Drake's avatar
      A few small improvements to the conversion. · 77a38eeb
      Fred Drake authored
      77a38eeb
    • Fred Drake's avatar
      Markup nits. · 330df60a
      Fred Drake authored
      Adjust examples to use the object interface instead of the function
      interface.
      330df60a
    • Fred Drake's avatar
      Fixed hyperlink references to the __builtin__ and __main__ modules; · 6abab415
      Fred Drake authored
      error reported by Dale Nagata <DNagata@creo.com>.
      6abab415
  2. 30 Jul, 1999 2 commits
    • Guido van Rossum's avatar
      Mark Hammond writes: · db8dcda4
      Guido van Rossum authored
      """
      If the filename being complained about contains a space, enclose the
      file-name in quotes.
      
      The reason is simply that when I try and parse tabnanny's output, filenames
      with spaces make it very difficult to determine where the filename stops
      and the linenumber begins!
      """
      
      Tim approves.
      
      I slightly changed the patch (use 'in' instead of string.find()) and
      arbitrarily bumped the __version__ variable up to 6.
      db8dcda4
    • Guido van Rossum's avatar
      Remove some redundant code from Canvas.tag_bind(), which added all · 8c375757
      Guido van Rossum authored
      bindings to a dictionary _tagcommands which was otherwise unused.
      (This was checked in accidentally with rev. 1.125 and not deleted with
      rev. 1.127 when the other half of this code was removed -- although
      even as originally checked in the _tagcommands variable was never
      used.)
      
      (PR#40, reported by Peter Stoehr)
      8c375757
  3. 29 Jul, 1999 9 commits
    • Fred Drake's avatar
      Ripped out the old conversion. · f97ffcfe
      Fred Drake authored
      f97ffcfe
    • Fred Drake's avatar
      Added a few more passes through the document fragment. Not actually · 6c8bb9f0
      Fred Drake authored
      very interesting.
      6c8bb9f0
    • Fred Drake's avatar
      Massive changes. · b836dd94
      Fred Drake authored
      Separate the Conversion class into a base and a subclass; the subclass
      is pretty minimal but the separation is useful for....
      
      NewConversion:  New class that implements a somewhat different
      		approach to the conversion.  This uses a table of
      		instances (rather than tuples) that have more
      		information than the tuples used for the older
      		conversion procedure.  This allows a lot more control
      		over the conversion, and it seems to be pretty
      		stable.
      
      TableEntry,
      Parameter:	New classes that are used to build the conversion
      		specification used by NewConversion.
      
      TableParser:	xmllib.XMLParser subclass that builds a conversion
      		specification from an XML document.
      
      load_table():	Convenience function that loads a table from a file.
      
      main():  Added flags --new and --old; these select which conversion is
      	 used.  The default is --new.
      
      Several fixes have been made in the old conversion as well; these were
      done before writing & switching to the new conversion, and should be
      archived.
      
      The next checkin of this file will discard the old conversion; is is
      kept in this checkin to allow it to be retrieved if needed, and to
      avoid lossing the bugfixes that have been made to it in the interim.
      b836dd94
    • Fred Drake's avatar
      Minor updates. · 28ff1c26
      Fred Drake authored
      28ff1c26
    • Fred Drake's avatar
      Use the (new) buildFragment() method of the EsisBuilder rather than · b0d20f90
      Fred Drake authored
      implementing it all here.
      b0d20f90
    • Fred Drake's avatar
      Some minor cleanup. · 25156af9
      Fred Drake authored
      25156af9
    • Fred Drake's avatar
      Conversion specification, used by a new path through latex2esis.py. · 4a1ca783
      Fred Drake authored
      The specific markup conversion is coded here instead of an even more
      cryptic table in the code of latex2esis.py.
      4a1ca783
    • Fred Drake's avatar
      Minor update. · 07333639
      Fred Drake authored
      07333639
    • Fred Drake's avatar
      Change an {\em ...} to \var{...} and a {\bf ...} to \program{...} (the · 786e87bf
      Fred Drake authored
      new markup makes sense in context).
      
      These allow the SGML/XML conversion updates to work, & should not have
      still been in there anyway.
      786e87bf
  4. 28 Jul, 1999 3 commits
    • Barry Warsaw's avatar
      A few minor Customize changes: · b784d26e
      Barry Warsaw authored
      (python): Set defgroup :prefix to "py-" to make variable names cleaner.
      
      (py-jpython-command, py-jpython-command-args): Set :tag for proper
      capitalization of JPython in variable name display.
      b784d26e
    • Barry Warsaw's avatar
      (python-mode): Set which interpreter (CPython or JPython) to use the · 4ff79b15
      Barry Warsaw authored
      first time a py buffer is visited during the Emacs session.  This
      ensures that py-which-shells is initialized and also guarantees that
      the mode lines reflect the correct shell.  First bug found by GvR,
      second one has long bugged :) me.
      
      (py-toggle-shells): Programmatically, arg can also take the symbols
      `cpython' or `jpython', which makes it easy to call with the value of
      py-default-interpreter.
      
      (py-shell): Don't need to initialize py-which-* variables since these
      will guarantee to be initialized by python-mode when the first py
      buffer is visited.
      
      (py-default-interpreter): Update docstring.
      4ff79b15
    • Guido van Rossum's avatar
      Another patch from Andy Dustman: · 1a0d0f66
      Guido van Rossum authored
      """
      Here's a patch for the ForkingMixIn which will prevent the server from
      forking itself into the ground. Note: I've tested a very similar patch
      (subclassed ForkingMixIn) but not actually tested this one. As you might
      surmise, this was done out of necessity...
      
      If the maximum number of children are already running, block while waiting
      for a child to exit.
      """
      
      (I added that last sentence as a comment to the code --GvR.)
      1a0d0f66
  5. 27 Jul, 1999 4 commits
  6. 26 Jul, 1999 1 commit
  7. 23 Jul, 1999 3 commits
  8. 22 Jul, 1999 3 commits
  9. 20 Jul, 1999 1 commit
  10. 19 Jul, 1999 1 commit
  11. 15 Jul, 1999 1 commit
  12. 13 Jul, 1999 3 commits
    • Guido van Rossum's avatar
      de564205
    • Guido van Rossum's avatar
      Patch by Stephen Turner, who writes: · 72da7549
      Guido van Rossum authored
      """
      It fixes a memory corruption error resulting from BadPickleGet
      exceptions in load_get, load_binget and load_long_binget.  This was
      initially reported on c.l.py as a problem with Cookie.py; see the thread
      titled "python core dump (SIGBUS) on Solaris" for more details.
      
      If PyDict_GetItem(self->memo, py_key) call failed, then py_key was being
      Py_DECREF'd out of existence before call was made to
      PyErr_SetObject(BadPickleGet, py_key).
      
      The bug can be duplicated as follows:
      
      import cPickle
      cPickle.loads('garyp')
      
      This raises a BadPickleGet exception whose value is a freed object.  A
      core dump will soon follow.
      """
      
      Jim Fulton approves of the patch.
      72da7549
    • Guido van Rossum's avatar
      Mark Favas was quick to note that the last checkin divides by zero · a376adb3
      Guido van Rossum authored
      when n == 0...  So divide by a->ob_size instead which was already
      tested for 0.
      a376adb3
  13. 12 Jul, 1999 2 commits