[issue24511] Add methods for async protocols

2015-06-25 Thread Arc Riley

Changes by Arc Riley arcri...@gmail.com:


--
nosy: +ArcRiley

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



[issue7990] xml.etree.cElementTree lacks full dir() on Element

2011-04-14 Thread Arc Riley

Arc Riley arcri...@gmail.com added the comment:

It looks right to me, but I would include more verbose pydoc strings.  

IE, The tail attribute can be used to hold additional data associated with the 
element tells me nothing.  You could explain here what .tail actually is, a 
few XML examples of what would be put in tail or what tail would become, and 
the API design reason why tail is used in addition to text.

--

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



[issue7045] utf-8 encoding error

2009-10-03 Thread Arc Riley

Arc Riley arcri...@gmail.com added the comment:

Python 3.1.1 (r311:74480, Sep 13 2009, 22:19:17)
[GCC 4.4.1] on linux2
Type help, copyright, credits or license for more information.
 import sys
 sys.maxunicode
1114111
 u = 'ё'
 print(u)
Traceback (most recent call last):
  File stdin, line 1, in module
UnicodeEncodeError: 'utf-8' codec can't encode character '\ud801' in
position 0: surrogates not allowed

--

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



[issue7045] utf-8 encoding error

2009-10-03 Thread Arc Riley

Arc Riley arcri...@gmail.com added the comment:

Amaury, you are absolutely correct, \ud801 is not a valid unicode glyph,
however I am not giving Python \ud801, I am giving Python 'ё' (==
'\U00010451').

I am attaching a different short example that demonstrates that Python
is mishandling UTF-8 on both the interactive terminal and in scripts, u.py

The output should be the same, but on Python 3.1.1 compiled for wide
unicode it reports two different values.  As someone on #python-dev
found 'ё'.encode('utf-16').decode('utf-16') outputs the correct value.

--
Added file: http://bugs.python.org/file15032/u.py

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



[issue7045] utf-8 encoding error

2009-10-03 Thread Arc Riley

Arc Riley arcri...@gmail.com added the comment:

This behavior is identical whether u.py or u.pyc is run on my systems,
where that previous ticket concerns differing behavior.

Though it is obviously related.

--
versions:  -Python 2.6, Python 3.0

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



[issue7045] utf-8 encoding error

2009-10-02 Thread Arc Riley

New submission from Arc Riley arcri...@gmail.com:

The following is a minimal example which does not work under Python
3.1.1 but functions as expected on Pyhton 2.6 and 3.0.

Python 3.1.1 believes the single UTF-8 glyph is two entirely different
(and illegal) unicode characters:

Traceback (most recent call last):
  File t.py, line 2, in module
print('ћ')
UnicodeEncodeError: 'utf-8' codec can't encode character '\ud801' in
position 0: surrogates not allowed

Test system is Ubuntu 9.10-beta 32-bit

--
components: Interpreter Core
files: t.py
messages: 93475
nosy: ArcRiley
severity: normal
status: open
title: utf-8 encoding error
type: behavior
versions: Python 3.1
Added file: http://bugs.python.org/file15028/t.py

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



[issue7045] utf-8 encoding error

2009-10-02 Thread Arc Riley

Arc Riley arcri...@gmail.com added the comment:

While t.py only bugs on 3.1, the following happens with 3.0 as well:

 line = 'ёѧѕёѦљ'
 first = 'ё'
 first
'ё'
 line[0]
'\ud801'
 line[0] == first
False

And with 2.6:
 line = u'ёѧѕёѦљ'
 first = u'ё'
 first
u'\ud801\udc51'

--
versions: +Python 2.6, Python 3.0

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