[Python-bugs-list] [ python-Bugs-518767 ] array module has undocumented features

noreply@sourceforge.net noreply@sourceforge.net
Sun, 17 Feb 2002 07:01:25 -0800


Bugs item #518767, was opened at 2002-02-17 07:01
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=518767&group_id=5470

Category: Documentation
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: paul rubin (phr)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: array module has undocumented features

Initial Comment:
It turns out arrays support list slice operations and
string operations:

p = array('B','potato')
p[2:2]=array('B','banana')  # works!  insert banana
re.search('ta',p).span()    # also works!

I wouldn't have guessed from the docs for the array
module that the slice and regexp operations were
supported.  If they're "officially" supposed to work,
the doc should be say so.

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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=518767&group_id=5470