[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2015-05-31 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6ee122fac1e8 by Serhiy Storchaka in branch '2.7':
Fixed the array module in unicode disabled build (regression of issue20014).
https://hg.python.org/cpython/rev/6ee122fac1e8

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2015-05-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Committed simplified version. Thank you Vajrasky for your patch.

--
resolution:  - fixed
stage: patch review - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2015-05-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7d60cb6c33cf by Serhiy Storchaka in branch '2.7':
Issue #20014: array.array() now accepts unicode typecodes.  Based on patch by
https://hg.python.org/cpython/rev/7d60cb6c33cf

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2015-05-11 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
assignee:  - serhiy.storchaka

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2014-03-02 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Re-opened due to Python-Dev discussion 
http://comments.gmane.org/gmane.comp.python.devel/146057.

--
resolution: out of date - 
stage: committed/rejected - patch review
status: closed - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-20 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
stage:  - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-20 Thread Terry J. Reedy

Terry J. Reedy added the comment:

This enhancement request would have been nice in 2.7.0 but it is too late for 
bugfix releases. Typecodes have always been shown as instances of str and still 
are. The doc no where suggests that unicode chars should work in 2.7 and it is 
not a bug that they do not.

--
nosy: +terry.reedy
resolution:  - out of date
stage: patch review - committed/rejected
status: open - closed
type: behavior - enhancement

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-18 Thread Vajrasky Kok

New submission from Vajrasky Kok:

 import array
 array.array(u'i', [1,2,3])
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: must be char, not unicode

In this ticket #13566, Alexandre Vassalotti said:
We should still fix array in 2.7 to accept unicode object for the typecode 
though.

So here is the patch to add support for ascii-unicode typecode for array.array 
constructor.

--
components: Extension Modules
files: makes_array_accepts_ascii_unicode_typecode.patch
keywords: patch
messages: 206503
nosy: alexandre.vassalotti, vajrasky
priority: normal
severity: normal
status: open
title: Makes array.array constructor accepts ascii-unicode typecode
type: behavior
versions: Python 2.7
Added file: 
http://bugs.python.org/file33184/makes_array_accepts_ascii_unicode_typecode.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-18 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Here is the patch with simpler unittest.

--
Added file: 
http://bugs.python.org/file33185/makes_array_accepts_ascii_unicode_typecode_v2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-18 Thread Vajrasky Kok

Changes by Vajrasky Kok sky@speaklikeaking.com:


Added file: 
http://bugs.python.org/file33186/makes_array_accepts_ascii_unicode_typecode_v2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-18 Thread Vajrasky Kok

Changes by Vajrasky Kok sky@speaklikeaking.com:


Removed file: 
http://bugs.python.org/file33185/makes_array_accepts_ascii_unicode_typecode_v2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I think a patch can be much simpler. Perhaps make c to accept 1-character 
Unicode objects?

--
nosy: +serhiy.storchaka

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

See issue20015 for more general and simple solution.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20014] Makes array.array constructor accepts ascii-unicode typecode

2013-12-18 Thread Vajrasky Kok

Vajrasky Kok added the comment:

Thanks, Serhiy, for the review! Here is the patch to avoid refleaking and avoid 
literal u'' string.

If your ticket, #20015, is accepted, then we can throw away the fix and use 
only unit test in this ticket.

--
Added file: 
http://bugs.python.org/file33199/makes_array_accepts_ascii_unicode_typecode_v3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20014
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com