[issue8671] A small erorr on http://docs.python.org/library/re.html

2010-05-09 Thread bones7456

New submission from bones7456 :

In section \b , original text is:

Matches the empty string, but only at the beginning or end of a word. A word is 
defined as a sequence of alphanumeric or underscore characters, so the end of a 
word is indicated by whitespace or a non-alphanumeric, non-underscore 
character. Note that \b  is defined as the boundary between \w and \ W, so the 
precise set of characters deemed to be alphanumeric depends on the values of 
the UNICODE and LOCALE flags. Inside a character range, \b  represents the 
backspace character, for compatibility with Python’s string literals.

NOTE: there is space between "\" and "W", I think it is not needed.

--
assignee: d...@python
components: Documentation
messages: 105391
nosy: bones7456, d...@python
priority: normal
severity: normal
status: open
title: A small erorr on http://docs.python.org/library/re.html
versions: Python 2.6

___
Python tracker 
<http://bugs.python.org/issue8671>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6611] HTMLParser cannot deal with mixture of arbitrary data and character reference

2009-07-31 Thread bones7456

bones7456  added the comment:

another fix way:
and these three lines to the head of file:

import sys
reload(sys)
sys.setdefaultencoding('utf8')

--
nosy: +bones7456

___
Python tracker 
<http://bugs.python.org/issue6611>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6084] documentation of zip function is error

2009-05-22 Thread bones7456

New submission from bones7456 :

http://docs.python.org/library/functions.html?highlight=zip#zip

In this page, the example is error:

Python 2.6.2 (r262:71600, Apr 24 2009, 10:04:30) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> x = [1, 2, 3]
>>> y = [4, 5, 6]
>>> zipped = zip(x, y)
>>> zipped
[(1, 4), (2, 5), (3, 6)]
>>> x2, y2 = zip(*zipped)
>>> x == x2, y == y2
(False, False)

The last line is "(False, False)", not True.

--
assignee: georg.brandl
components: Documentation
messages: 88182
nosy: bones7456, georg.brandl
severity: normal
status: open
title: documentation of zip function is error
versions: Python 2.6

___
Python tracker 
<http://bugs.python.org/issue6084>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6084] documentation of zip function is error

2009-05-22 Thread bones7456

bones7456  added the comment:

>>> type(x)

>>> type(x2)


It cann't be equal...

--

___
Python tracker 
<http://bugs.python.org/issue6084>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com