1. 31 Ara, 1996 2 kayıt (commit)
    • Guido van Rossum's avatar
      Fix the first bugs... treatment of 0 count was wrong, and memchr() · 3aa27fd3
      Guido van Rossum yazdı
      should be memset().
      3aa27fd3
    • Guido van Rossum's avatar
      Pretty much rewritten to fulfull several long-standing wishes: · f7e6b4b3
      Guido van Rossum yazdı
      -- The whole implementation is now more table-driven.
      
      -- Unsigned integers.  Format characters 'B', 'H', 'I' and 'L'
      mean unsigned byte, short, int and long.  For 'I' and 'L', the return
      value is a Python long integer if a Python plain integer can't
      represent the required range (note: this is dependent on the size of
      the relevant C types only, not of the sign of the actual value).
      
      -- A new format character 's' packs/unpacks a string.  When given a
      count prefix, this is the size of the string, not a repeat count like
      for the other format characters; e.g. '10s' means a single 10-byte
      string, while '10c' means 10 characters.  For packing, the string is
      truncated or padded with null bytes as appropriate to make it fit.
      For unpacking, the resulting string always has exactly the specified
      number of bytes.  As a special case, '0s' means a single, empty
      string (while '0c' means 0 characters).
      
      -- Various byte order options.  The first character of the format
      string determines the byte order, size and alignment, as follows:
      
      First character		Byte order		size and alignment
      
      	'@'		native			native
      	'='		native			standard
      	'<'		little-endian		standard
      	'>'		big-endian		standard
      	'!'		network (= big-endian)	standard
      
      If the first character is not one of these, '@' is assumed.
      
      Native byte order is big-endian or little-endian, depending on the
      host system (e.g. Motorola and Sun are big-endian; Intel and DEC are
      little-endian).
      
      Native size and alignment are determined using the C compiler's sizeof
      expression.  This is always combined with native byte order.
      
      Standard size and alignment are as follows: no alignment is required
      for any type (so you have to use pad bytes); short is 2 bytes; int and
      long are 4 bytes.  In this mode, there is no support for float and
      double.
      
      Note the difference between '@' and '=': both use native byte order,
      but the size and alignment of the latter is standardized.
      
      The form '!' is available for those poor souls who can't remember
      whether network byte order is big-endian or little-endian.
      
      There is no way to indicate non-native byte order (i.e. force
      byte-swapping); use the appropriate choice of '<' or '>'.
      f7e6b4b3
  2. 30 Ara, 1996 4 kayıt (commit)
  3. 29 Ara, 1996 1 kayıt (commit)
  4. 27 Ara, 1996 5 kayıt (commit)
  5. 25 Ara, 1996 1 kayıt (commit)
  6. 24 Ara, 1996 3 kayıt (commit)
  7. 23 Ara, 1996 14 kayıt (commit)
  8. 20 Ara, 1996 10 kayıt (commit)
    • Roger E. Masse's avatar
      Very very small comment change. · f85f0520
      Roger E. Masse yazdı
      f85f0520
    • Roger E. Masse's avatar
      Many scripts, but small changes. Update the way the scripts obtain the · fab8ab80
      Roger E. Masse yazdı
      'verbose' flag ala GvR updated test harness architecture.
      
      Old way:
      
      	verbose = 0
      	if __name__ == '__main__':
      		verbose = 1
      
      New way:
      
      	from test_support import verbose
      
      Some other small readablility and functionality updates.
      fab8ab80
    • Barry Warsaw's avatar
      added test of the regex module · 4b722788
      Barry Warsaw yazdı
      [NOTE: testall.py and autotest.py might could go away soon, I've
       played with Guido's new regrtest.py script and it seems to work well.
       I'll wait until Guido gives the word to completely switch over -- and
       change the Makefile too!]
      4b722788
    • Roger E. Masse's avatar
      Renamed. · 7f33e403
      Roger E. Masse yazdı
      7f33e403
    • Barry Warsaw's avatar
      Several changes. Test program to follow. · c3573256
      Barry Warsaw yazdı
      - Where optional arguments were being used, converted to
        PyArg_ParseTuple() style instead of nested PyArg_Parse() style.
      
      - Check for and handle many potential error conditions that were never
        being tested.
      
      - internal reg_* functions renamed to regobj_* (makes it easier to
        figure out which are global regex functions and which are for regex
        objects).
      
      - reg_group (now regobj_group) was quite extensively reworked.  it no
        longer recurses to do its job (by factoring core functionality into
        a separate function that knows about string and integer indexes).
      
      - some minor formatting fixes.
      
      - regex_set_syntax() now invalidates the cache.  Without this change
        (in the example below), the second search would produce different
        output depending on whether the first search were performed or not
        (since performing the first search would cache the compiled object
        with RE_SYNTAX_EMACS, causing the second test to unexpectedly fail).
      
        regex.search('(a+)|(b+)', 'cdb')
        prev = regex.set_syntax(RE_SYNTAX_AWK)
        regex.search('(a+)|(b+)', 'cdb')
      c3573256
    • Roger E. Masse's avatar
      More and better comments. · 4455cd8e
      Roger E. Masse yazdı
      4455cd8e
    • Roger E. Masse's avatar
      Minor semantic cleanup. · 3507f502
      Roger E. Masse yazdı
      3507f502
    • Roger E. Masse's avatar
      e9e0bd90
    • Roger E. Masse's avatar
      033d91b7
    • Roger E. Masse's avatar
      Renamed. · a141f8a3
      Roger E. Masse yazdı
      a141f8a3