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

noreply@sourceforge.net noreply@sourceforge.net
Mon, 01 Apr 2002 15:05:42 -0800


Bugs item #518767, was opened at 2002-02-17 10: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: Closed
>Resolution: Fixed
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.

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

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-04-01 18:05

Message:
Logged In: YES 
user_id=3066

Fixed in Doc/lib/libarray.tex revision 1.31.8.1, clarified
in 1.33.

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

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