[Python-checkins] python/dist/src/Objects stringobject.c, 2.209.8.1, 2.209.8.2 unicodeobject.c, 2.190.6.7, 2.190.6.8

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sat Oct 18 05:54:40 EDT 2003


Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv15005/Objects

Modified Files:
      Tag: release23-maint
	stringobject.c unicodeobject.c 
Log Message:
Patch #825679: Clarify semantics of .isfoo on empty strings.


Index: stringobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/stringobject.c,v
retrieving revision 2.209.8.1
retrieving revision 2.209.8.2
diff -C2 -d -r2.209.8.1 -r2.209.8.2
*** stringobject.c	27 Aug 2003 05:08:19 -0000	2.209.8.1
--- stringobject.c	18 Oct 2003 09:54:38 -0000	2.209.8.2
***************
*** 2734,2741 ****
  
  PyDoc_STRVAR(isspace__doc__,
! "S.isspace() -> bool\n"
! "\n"
! "Return True if there are only whitespace characters in S,\n"
! "False otherwise.");
  
  static PyObject*
--- 2734,2741 ----
  
  PyDoc_STRVAR(isspace__doc__,
! "S.isspace() -> bool\n\
! \n\
! Return True if all characters in S are whitespace\n\
! and there is at least one character in S, False otherwise.");
  
  static PyObject*
***************
*** 2767,2771 ****
  "S.isalpha() -> bool\n\
  \n\
! Return True if  all characters in S are alphabetic\n\
  and there is at least one character in S, False otherwise.");
  
--- 2767,2771 ----
  "S.isalpha() -> bool\n\
  \n\
! Return True if all characters in S are alphabetic\n\
  and there is at least one character in S, False otherwise.");
  
***************
*** 2798,2802 ****
  "S.isalnum() -> bool\n\
  \n\
! Return True if  all characters in S are alphanumeric\n\
  and there is at least one character in S, False otherwise.");
  
--- 2798,2802 ----
  "S.isalnum() -> bool\n\
  \n\
! Return True if all characters in S are alphanumeric\n\
  and there is at least one character in S, False otherwise.");
  
***************
*** 2829,2834 ****
  "S.isdigit() -> bool\n\
  \n\
! Return True if there are only digit characters in S,\n\
! False otherwise.");
  
  static PyObject*
--- 2829,2834 ----
  "S.isdigit() -> bool\n\
  \n\
! Return True if all characters in S are digits\n\
! and there is at least one character in S, False otherwise.");
  
  static PyObject*
***************
*** 2894,2898 ****
  "S.isupper() -> bool\n\
  \n\
! Return True if  all cased characters in S are uppercase and there is\n\
  at least one cased character in S, False otherwise.");
  
--- 2894,2898 ----
  "S.isupper() -> bool\n\
  \n\
! Return True if all cased characters in S are uppercase and there is\n\
  at least one cased character in S, False otherwise.");
  
***************
*** 2928,2934 ****
  "S.istitle() -> bool\n\
  \n\
! Return True if S is a titlecased string, i.e. uppercase characters\n\
! may only follow uncased characters and lowercase characters only cased\n\
! ones. Return False otherwise.");
  
  static PyObject*
--- 2928,2935 ----
  "S.istitle() -> bool\n\
  \n\
! Return True if S is a titlecased string and there is at least one\n\
! character in S, i.e. uppercase characters may only follow uncased\n\
! characters and lowercase characters only cased ones. Return False\n\
! otherwise.");
  
  static PyObject*

Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.190.6.7
retrieving revision 2.190.6.8
diff -C2 -d -r2.190.6.7 -r2.190.6.8
*** unicodeobject.c	17 Sep 2003 03:22:27 -0000	2.190.6.7
--- unicodeobject.c	18 Oct 2003 09:54:38 -0000	2.190.6.8
***************
*** 4899,4903 ****
  "S.isupper() -> bool\n\
  \n\
! Return True if  all cased characters in S are uppercase and there is\n\
  at least one cased character in S, False otherwise.");
  
--- 4899,4903 ----
  "S.isupper() -> bool\n\
  \n\
! Return True if all cased characters in S are uppercase and there is\n\
  at least one cased character in S, False otherwise.");
  
***************
*** 4933,4939 ****
  "S.istitle() -> bool\n\
  \n\
! Return True if S is a titlecased string, i.e. upper- and titlecase\n\
! characters may only follow uncased characters and lowercase characters\n\
! only cased ones. Return False otherwise.");
  
  static PyObject*
--- 4933,4940 ----
  "S.istitle() -> bool\n\
  \n\
! Return True if S is a titlecased string and there is at least one\n\
! character in S, i.e. upper- and titlecase characters may only\n\
! follow uncased characters and lowercase characters only cased ones.\n\
! Return False otherwise.");
  
  static PyObject*
***************
*** 4980,4985 ****
  "S.isspace() -> bool\n\
  \n\
! Return True if there are only whitespace characters in S,\n\
! False otherwise.");
  
  static PyObject*
--- 4981,4986 ----
  "S.isspace() -> bool\n\
  \n\
! Return True if all characters in S are whitespace\n\
! and there is at least one character in S, False otherwise.");
  
  static PyObject*
***************
*** 5009,5013 ****
  "S.isalpha() -> bool\n\
  \n\
! Return True if  all characters in S are alphabetic\n\
  and there is at least one character in S, False otherwise.");
  
--- 5010,5014 ----
  "S.isalpha() -> bool\n\
  \n\
! Return True if all characters in S are alphabetic\n\
  and there is at least one character in S, False otherwise.");
  
***************
*** 5038,5042 ****
  "S.isalnum() -> bool\n\
  \n\
! Return True if  all characters in S are alphanumeric\n\
  and there is at least one character in S, False otherwise.");
  
--- 5039,5043 ----
  "S.isalnum() -> bool\n\
  \n\
! Return True if all characters in S are alphanumeric\n\
  and there is at least one character in S, False otherwise.");
  
***************
*** 5096,5101 ****
  "S.isdigit() -> bool\n\
  \n\
! Return True if there are only digit characters in S,\n\
! False otherwise.");
  
  static PyObject*
--- 5097,5102 ----
  "S.isdigit() -> bool\n\
  \n\
! Return True if all characters in S are digits\n\
! and there is at least one character in S, False otherwise.");
  
  static PyObject*





More information about the Python-checkins mailing list