[issue4557] array('c') in python 3.0 produces error, doc says it is ok

jeff deifik report at bugs.python.org
Sat Dec 6 03:02:35 CET 2008


New submission from jeff deifik <jeff at jeffunit.com>:

def char_sieve():
    char_data = array('c')
...

produces:
  File ".../prime.py", line 78, in char_sieve
    char_data = array('c')
ValueError: bad typecode (must be b, B, u, h, H, i, I, l, L, f or d)

However,
http://docs.python.org/3.0/library/array.html?highlight=array#module-array
says that 'c' is a legal value.

----------
assignee: georg.brandl
components: Documentation
messages: 77094
nosy: georg.brandl, lopgok
severity: normal
status: open
title: array('c') in python 3.0 produces error, doc says it is ok
type: crash
versions: Python 3.0

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4557>
_______________________________________


More information about the Python-bugs-list mailing list