]> granicus.if.org Git - python/commit
Several changes:
authorBarry Warsaw <barry@python.org>
Fri, 3 Jan 1997 22:45:34 +0000 (22:45 +0000)
committerBarry Warsaw <barry@python.org>
Fri, 3 Jan 1997 22:45:34 +0000 (22:45 +0000)
commite8fc29cde782ee540d7b2a10a96707727fd0a2e2
tree35dd08bf96de4a27059786cb1f919ad82d064f1e
parent9d1a02ce335be34d31274797ce3d53012e28e22b
Several changes:

- split_whitespace(): slightly better memory ref handling when errors
  occur.

- strop_joinfields(): First argument can now be any sequence-protocol
  conformant object.

- strop_find(), strop_rfind(): Use PyArg_ParseTuple for optional
  arguments

- strop_lower(), strop_upper(): Factor logic into a common function
  do_casechange().

- strop_atoi(), strop_atol(): Use PyArg_ParseTuple.

- strop_maketrans(): arguments used to be optional, although the
  documentation doesn't reflect this.  Make the source conform to the
  docs.  Arguments are required, but two empty strings will return the
  identity translation table.

- General pass fixing up formatting, and checking for return values.
Modules/stropmodule.c