This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: array('c') in python 3.0 produces error, doc says it is ok
Type: crash Stage:
Components: Documentation Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, lopgok
Priority: normal Keywords:

Created on 2008-12-06 02:02 by lopgok, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg77094 - (view) Author: jeff deifik (lopgok) Date: 2008-12-06 02:02
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.
msg77103 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-12-06 08:12
Thanks, fixed the docs in r67605.
History
Date User Action Args
2022-04-11 14:56:42adminsetgithub: 48807
2008-12-06 08:12:17georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg77103
2008-12-06 02:02:34lopgokcreate