[Patches] [Patch #101507] add 'punctuation' and 'printable' consts. to stropmodule.c

noreply@sourceforge.net noreply@sourceforge.net
Thu, 14 Sep 2000 09:40:32 -0700


Patch #101507 has been updated. 

Project: 
Category: core (C code)
Status: Open
Summary: add 'punctuation' and 'printable' consts. to stropmodule.c

Follow-Ups:

Date: 2000-Sep-14 07:15
By: fdrake

Comment:
Why not just define these as constants in string.py?  That would be more usable since strop is not necessarily available, and can be considered an implementation detail at best.

Also, note that ispunct() and isprint() are available in the curses.ascii module.
-------------------------------------------------------

Date: 2000-Sep-14 09:40
By: fdrake

Comment:
Response from Richard Mortier:
Ah -- this was originally generated because I wanted to use it in
Python 1.5.2 -- didn't realise later versions had curses.ascii

Not defining them in string.py was because I wanted the behaviour
of isprint() (in particular).

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

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101507&group_id=5470