Issue1544953
Created on 2006-08-22.22:49:59 by anonymous, last changed 2009-03-22.03:50:26 by zyasoft.
msg1212 (view) |
Author: Nobody/Anonymous (nobody) |
Date: 2006-08-22.22:49:59 |
|
Not sure if this is a known problem or not, but while
doing a bit of testing using ElementTree, the following
line:
escape = re.compile(u"[&<>\"\u0080-\uffff]+")
results in:
ValueError: typecode must be in [zcbhilfd]
No error is raised in jython 2.1 or 2.2, nor in
cpython2.3. This is from:
http://svn.effbot.python-hosting.com/elementtree/elementtree/ElementTree.py
- kz
|
msg1213 (view) |
Author: Khalid Zuberi (kzuberi) |
Date: 2006-08-22.22:52:45 |
|
Logged In: YES
user_id=18288
Charlie, you asked about this.
- kz
|
msg1214 (view) |
Author: Leonardo Soto (leosoto) |
Date: 2007-09-02.18:33:40 |
|
The problem is triggered by the CPython 2.3 sre_compile.py, which calls array.array using the 'H' and 'I' typecodes, not supported by Jython's array module.
It also affects Django, which uses exactly the same pattern described above.
|
msg3589 (view) |
Author: Jim Baker (zyasoft) |
Date: 2008-09-14.06:31:08 |
|
Fixed in 2.5 by r3748
Still looking for an example of test coverage in our code, but I may
have to write a test for this
|
msg4331 (view) |
Author: Jim Baker (zyasoft) |
Date: 2009-03-22.03:50:26 |
|
This is now exercised by our support for ET and confirmed by our testing
(test_xml_etree).
|
|
Date |
User |
Action |
Args |
2009-03-22 03:50:26 | zyasoft | set | status: pending -> closed messages:
+ msg4331 |
2008-09-14 06:31:44 | zyasoft | set | components:
+ Core, - None title: sre error in 2.3 branch -> Missing unsigned type codes for array - sre error in 2.3 branch |
2008-09-14 06:31:08 | zyasoft | set | status: open -> pending assignee: cgroves -> zyasoft resolution: fixed messages:
+ msg3589 nosy:
+ zyasoft |
2006-08-22 22:49:59 | anonymous | create | |
|