1. 30 Jun, 2000 14 commits
  2. 29 Jun, 2000 26 commits
    • Greg Ward's avatar
      Allow 2.0 on the list of target versions. NB. this isn't enough: the GUI part, · 38042872
      Greg Ward authored
      misc/install.c, still needs to be updated, and it looks like a non-trivial
      change.
      38042872
    • Fredrik Lundh's avatar
      still trying to figure out how to fix the remaining · a1ee3e52
      Fredrik Lundh authored
      group reset problem.  in the meantime, I added some
      optimizations:
      
      - added "inline" directive to LOCAL
      
        (this assumes that AC_C_INLINE does what it's
        supposed to do).  to compile SRE on a non-unix
        platform that doesn't support inline, you have
        to add a "#define inline" somewhere...
      
      - added code to generate a SRE_OP_INFO primitive
      
      - added code to do fast prefix search
      
        (enabled by the USE_FAST_SEARCH define; default
        is on, in this release)
      a1ee3e52
    • Greg Ward's avatar
      Don't try to guess the name of a .def file -- if one is supplied, use it, · a9c82413
      Greg Ward authored
      otherwise just generate an '/export:' option.
      a9c82413
    • Greg Ward's avatar
      On second thought, first try for _winreg, and then winreg. Only if both · cc1d175b
      Greg Ward authored
      fail do we try for win32api/win32con.  If *those* both fail, then we don't
      have registry access.  Phew!
      cc1d175b
    • Fred Drake's avatar
      Removed --l2h-config option; it introduced unnecessary complexity and · c26955ce
      Fred Drake authored
      is not needed anywhere.
      c26955ce
    • Greg Ward's avatar
      0caabdb4
    • Greg Ward's avatar
      Cleaned up and reformatted by Rene Liebscher. · 6e273766
      Greg Ward authored
      More reformatting by me.
      Also added some editorial comments.
      6e273766
    • Guido van Rossum's avatar
      Bump version to 2.0. · 238738ce
      Guido van Rossum authored
      238738ce
    • Guido van Rossum's avatar
    • Guido van Rossum's avatar
      Bump version to 2.0b1. · 97c7e701
      Guido van Rossum authored
      97c7e701
    • Guido van Rossum's avatar
      Tentative 2.0 and BeOpen upgrade. · 722fbdc7
      Guido van Rossum authored
      722fbdc7
    • Fred Drake's avatar
      Trent Mick <trentm@activestate.com>: · 747bbda9
      Fred Drake authored
      This patch fixes a possible overflow in the Sleep system call on
      Win32/64 in the time_sleep() function in the time module. For very
      large values of the give time to sleep the number of milliseconds can
      overflow and give unexpected sleep intervals. THis patch raises an
      OverflowError if the value overflows.
      
      Closes SourceForge patch #100514.
      747bbda9
    • Fred Drake's avatar
      Trent Mick <trentm@activestate.com>: · 60c398a7
      Fred Drake authored
      This patch fixes the posix module for large file support mainly on
      Win64, although some general cleanup is done as well.
      
      The changes are:
      
      - abstract stat->STAT, fstat->FSTAT, and struct stat->STRUCT_STAT
      This is because stat() etc. are not the correct functions to use on
      Win64 (nor maybe on other platforms?, if not then it is now trivial to
      select the appropriate one). On Win64 the appropriate system functions
      are _stati64(), etc.
      
      - add _pystat_fromstructstat(), it builds the return tuple for the
      fstat system call. This functionality was being duplicated. As well
      the construction of the tuple was modified to ensure no overflow of
      the time_t elements (sizeof(time_t) > sizeof(long) on Win64).
      
      - add overflow protection for the return values of posix_spawnv and
      posix_spawnve
      
      - use the proper 64-bit capable lseek() on Win64
      
      - use intptr_t instead of long where appropriate from Win32/64 blocks
      (sizeof(void*) > sizeof(long) on Win64)
      
      This closes SourceForge patch #100513.
      60c398a7
    • Fred Drake's avatar
      Trent Mick <trentm@activestate.com>: · 7d88d917
      Fred Drake authored
      Mark Hammond provided (a long time ago) a better Win32 specific
      time_clock implementation in timemodule.c. The library for this
      implementation does not exist on Win64 (yet, at least). This patch
      makes Win64 fall back on the system's clock() function for
      time_clock().
      
      This closes SourceForge patch #100512.
      7d88d917
    • Fred Drake's avatar
      This patch extends PC/config.h and configure.in as appropriate for · 81d9f447
      Fred Drake authored
      64-bit readiness (the config values are needed for patches that I will
      be submitting later today. The changes are as follows:
      
      - add SIZEOF_OFF_T #define's to PC/config.h (it was already in configure.in)
      
      - add SIZEOF_TIME_T #define to PC/config.h and configure
      Needed for some buffer overflow checking because sizeof(time_t) is
      different on Win64.
      
      - add SIZEOF_FPOS_T #define
      Needed for the Win64 large file support implementation.
      
      - add SIZEOF_HKEY in PC/config.h only
      Needed for proper Win32 vs. Win64 handling in PC/winreg.c
      
      - #define HAVE_LARGEFILE_SUPPORT for Win64
      
      - typedef long intptr_t; for all Windows except Win64 (which defines it
      itself)
      This is a new ANSI (I think) type that is useful (and used by me) for
      proper handling in msvcrtmodule.c and posixmodule.c
      
      - indent the nested #ifdef's and #defines in PC/config.h
      This is *so* much more readable. There cannot be a compiler
      compatibilty issue here can there? Perl uses indented #defines and it
      compiles with everything.
      81d9f447
    • Fred Drake's avatar
      Update comments relating to the removal of the -X option and of string · 498c8c28
      Fred Drake authored
      exceptions in the interpreter and standard library.
      498c8c28
    • Fred Drake's avatar
      Typo. · 122ac418
      Fred Drake authored
      122ac418
    • Fred Drake's avatar
    • Fred Drake's avatar
      Paul Prescod <paul@prescod.net>: · 8bcc8ec8
      Fred Drake authored
      W3C DOM implementation for Python.
      8bcc8ec8
    • Fred Drake's avatar
      Package docstring. · effacb51
      Fred Drake authored
      effacb51
    • Guido van Rossum's avatar
      The usual :) · e74727d2
      Guido van Rossum authored
      e74727d2
    • Fred Drake's avatar
      Paul Prescod <paul@prescod.net>: · 2af540e1
      Fred Drake authored
      SAX interfaces for Python.
      2af540e1
    • Fred Drake's avatar
      Package docstring and initialization. · 2c86ae80
      Fred Drake authored
      2c86ae80
    • Fred Drake's avatar
      Package docstring. · a23d5e61
      Fred Drake authored
      a23d5e61
    • Fred Drake's avatar
      This patch addresses two main issues: (1) There exist some non-fatal · 032d988d
      Fred Drake authored
      errors in some of the hash algorithms. For exmaple, in float_hash and
      complex_hash a certain part of the value is not included in the hash
      calculation. See Tim's, Guido's, and my discussion of this on
      python-dev in May under the title "fix float_hash and complex_hash for
      64-bit *nix"
      
      (2) The hash algorithms that use pointers (e.g. func_hash, code_hash)
      are universally not correct on Win64 (they assume that sizeof(long) ==
      sizeof(void*))
      
      As well, this patch significantly cleans up the hash code. It adds the
      two function _Py_HashDouble and _PyHash_VoidPtr that the various
      hashing routine are changed to use.
      
      These help maintain the hash function invariant: (a==b) =>
      (hash(a)==hash(b))) I have added Lib/test/test_hash.py and
      Lib/test/output/test_hash to test this for some cases.
      032d988d
    • Fred Drake's avatar
      [Old patch that hadn't been checked in.] · 6923c369
      Fred Drake authored
      get_starttag_text():  New method.
              Return the text of the most recently parsed start tag, from
              the '<' to the '>' or '/'.  Not really useful for structure
              processing, but requested for Web-related use.  May also be
              useful for being able to re-generate the input from the parse
              events, but there's no equivalent for end tags.
      
      attrfind:  Be a little more forgiving of unquoted attribute values.
      6923c369