[Patches] [ python-Patches-562501 ] Add isxxx() methods to string objects

SourceForge.net noreply at sourceforge.net
Fri Oct 31 08:56:57 EST 2003


Patches item #562501, was opened at 2002-05-30 20:00
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=562501&group_id=5470

Category: Core (C code)
Group: Python 2.4
>Status: Closed
>Resolution: Rejected
Priority: 5
Submitted By: Raymond Hettinger (rhettinger)
Assigned to: Raymond Hettinger (rhettinger)
Summary: Add isxxx() methods to string objects

Initial Comment:
Here's the patch for the isxxx methods.  If it's up to 
spec, let me know and I'll add documentation and 
expand the unittests.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-10-31 14:56

Message:
Logged In: YES 
user_id=21627

Patch #825313, which is identical to this one, was just
rejected, so it is probably time to reject this as well.

----------------------------------------------------------------------

Comment By: M.-A. Lemburg (lemburg)
Date: 2002-10-21 00:20

Message:
Logged In: YES 
user_id=38388

I'd suggest to start with the standard ASCII characters for
the methods
you are suggesting to add and then complete the sets using the
various categories listed on

http://www.unicode.org/Public/UNIDATA/UnicodeData.html

e.g. punctation (P*) is a general category in the Unicode
database,
control too (Cc). Visibility and printability depend on
available
fonts, so I'm not sure what to do about these. Hex chars are
the same as for 8-bit strings.

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2002-10-20 23:12

Message:
Logged In: YES 
user_id=80475

This one is taking a while because I'm not entirely clear on 
the inclusion/exclusion criteria for classifying Unicode 
characters for the various isxxx methods.

I'm spending some time with the big Unicode 3.0 book 
and will post a patch when I know how to proceed.  If any 
one already has a clear sense of direction, I'm all ears.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-10-07 23:46

Message:
Logged In: YES 
user_id=21627

Raymond, any news on this? I like the idea.

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2002-06-30 21:58

Message:
Logged In: YES 
user_id=80475

Unassigning this because I'm away for five weeks.

The equivalent Unicode operations are not as clearly 
defined as they are for Ascii. Was researching what is done 
in other programming languages.

Also, there was a py-dev discussion that suggested that 
the function names be changed to something more clear 
than their names in C.

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2002-05-30 20:41

Message:
Logged In: YES 
user_id=6380

Thanks!

But what about adding the same methods to Unicode objects? I
think that's the point of using methods -- supporting the
same operations for both string types.

Also, Paul Prescod wanted ishexdigit instead of isxdigit.
Not sure if I agree.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=562501&group_id=5470



More information about the Patches mailing list