Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15730/stringlib_split_replace_v3.diff
___
Python tracker
<http://bugs.python.org/issue7622>
___
___
Florent Xicluna added the comment:
Patch for some additional test cases attached.
The bug "b.partition('.')[0] is b" is fixed with the patch proposed on
issue7622.
--
keywords: +patch
Added file: http://bugs.python.org/file15733/
Florent Xicluna added the comment:
There's some reference leaking somewhere...
Will investigate.
~ $ ./python Lib/test/regrtest.py -R 2:3: test_unicode
test_unicode leaked [7, 7, 7] references, sum=21
--
___
Python tracker
<http://bugs.py
Florent Xicluna added the comment:
Refleak fixed in PyUnicode_Splitlines.
--
stage: -> patch review
Added file: http://bugs.python.org/file15734/stringlib_split_replace_v3c.diff
___
Python tracker
<http://bugs.python.org/iss
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15732/stringlib_split_replace_v3b.diff
___
Python tracker
<http://bugs.python.org/issue7622>
___
___
Florent Xicluna added the comment:
> A few comments on coding style:
Thank you for your remarks. I will update the patch accordingly.
> * make sure that the name of a symbol matches the value, e.g.
>
> #define LONG_BITMASK (LONG_BIT-1)
> #define BLOOM(mask, ch) ((ma
Florent Xicluna added the comment:
> * function declarations should not put parameters on new lines:
>
> +stringlib_splitlines(
> +PyObject* str_obj, const STRINGLIB_CHAR* str, Py_ssize_t str_len,
> +int keepends
> +)
> +{
I copied the style of "strin
Florent Xicluna added the comment:
Patch updated:
* coding style
* added macros BLOOM_ADD to unicodeobject.c and fastsearch.h
(and removed LONG_BITMASK)
--
Added file: http://bugs.python.org/file15735/stringlib_split_replace_v4.diff
___
Python
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15734/stringlib_split_replace_v3c.diff
___
Python tracker
<http://bugs.python.org/issue7622>
___
___
Florent Xicluna added the comment:
And now, the figures.
There's no gain for the string methods.
Some unicode methods are faster: split/rsplit/replace:
Most significant results:
--- bench_slow.log Trunk
+++ bench_fast.log Patched
string unicode
(ms) (ms)comment
==
Florent Xicluna added the comment:
Fixed a problem with the splitlines optimization: use PyList_Append instead of
PyList_SET_ITEM because there's no preallocated list
in this case.
--
Added file: http://bugs.python.org/file15737/stringlib_split_replace_v4b
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15735/stringlib_split_replace_v4.diff
___
Python tracker
<http://bugs.python.org/issue7622>
___
___
Florent Xicluna added the comment:
Updated "lib_many_fixes" patch:
* added filterwarning for pprint
* added fixes for Lib/sunau.py and Lib/unittest/case.py
Ready for review and merge:
* issue7092_lib_many_fixes_v2.diff
* issue7092_compiler.diff
--
Added
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15627/issue7092_lib_many_fixes.diff
___
Python tracker
<http://bugs.python.org/issue7092>
___
___
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15629/issue7092_pprint.diff
___
Python tracker
<http://bugs.python.org/issue7092>
___
___
Python-bug
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15738/issue7092_lib_many_fixes_v2.diff
___
Python tracker
<http://bugs.python.org/issue7092>
___
___
Florent Xicluna added the comment:
I learned something.
--
Added file: http://bugs.python.org/file15740/issue7092_lib_many_fixes_v3.diff
___
Python tracker
<http://bugs.python.org/issue7
Florent Xicluna added the comment:
The test case for the previous issue.
--
Added file: http://bugs.python.org/file15741/issue7622_test_splitlines.diff
___
Python tracker
<http://bugs.python.org/issue7
Florent Xicluna added the comment:
IMHO this code will do the trick:
while not request_buffer.endswith(('\r', '\n')):
request_buffer += self.conn.recv(1024)
print("Got a line!")
print("Got an empty line!")
self.handleRequest
Changes by Florent Xicluna :
Added file: http://bugs.python.org/file15744/issue7622_test_splitlines.diff
___
Python tracker
<http://bugs.python.org/issue7622>
___
___
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15741/issue7622_test_splitlines.diff
___
Python tracker
<http://bugs.python.org/issue7622>
___
___
Florent Xicluna added the comment:
It is a documented behavior.
http://bip.cnrs-mrs.fr/bip10/scowl.htm#semi
Quoted from issue500073:
"If you want to process such a document in a specific way, I
recommend to subclass HTMLParser, overriding unknown_entityref."
--
nosy: +flox
Florent Xicluna added the comment:
For the record, this is valid HTML 4.01 Strict:
Sample
La clé
La clé des champs
La clé des champs
Tested with http://validator.w3.org/check and Mozilla Firefox 3.5.6
Reference: http://www.is-thought.co.uk/book/sgml-6.htm#General
But HTML5 should
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15737/stringlib_split_replace_v4b.diff
___
Python tracker
<http://bugs.python.org/issue7622>
___
___
Florent Xicluna added the comment:
Slight update:
* Objects/unicodeobject.c
- moved STRINGLIB_ISLINEBREAK to unicodedefs.h
- removed FROM_UNICODE: use STRINGLIB_IS_UNICODE instead
* Objects/stringlib/find.h
- use STRINGLIB_WANT_CONTAINS_OBJ in find.h
(similar to current py3k
Florent Xicluna added the comment:
And the Py3k patch.
(note: previous update v4b -> v4c minimize the differences
between Py2 and Py3 implementations)
--
versions: +Python 3.2
Added file: http://bugs.python.org/file15750/stringlib_split_replace_py3k.d
New submission from Florent Xicluna :
Bytes objects and Unicode objects do not agree on ASCII linebreaks.
## Python 2
for s in '\x0a\x0d\x1c\x1d\x1e':
print u'a{}b'.format(s).splitlines(1), 'a{}b'.format(s).splitlines(1)
# [u'a\n', u'b'] [
Florent Xicluna added the comment:
Still some "-3" warnings to silence:
./python -3m "collections" >/dev/null
./python -3c "import Cookie"
./python -3c "import idlelib.rpc"
./python -3c "import logging.handlers"
./python -3c "import
Florent Xicluna added the comment:
+1 to remove this boring cPickle message.
cStringIO do not print such messages.
--
___
Python tracker
<http://bugs.python.org/issue7
Florent Xicluna added the comment:
Tested on 2.5...
~ $ python2.5
Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> u'%c' % '
Changes by Florent Xicluna :
Removed file:
http://bugs.python.org/file15605/issue7455_silence_py3k_warning.diff
___
Python tracker
<http://bugs.python.org/issue7
Changes by Florent Xicluna :
Added file: http://bugs.python.org/file15773/issue7092_cpickle.diff
___
Python tracker
<http://bugs.python.org/issue7092>
___
___
Python-bug
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15740/issue7092_lib_many_fixes_v3.diff
___
Python tracker
<http://bugs.python.org/issue7092>
___
___
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15628/issue7092_compiler.diff
___
Python tracker
<http://bugs.python.org/issue7092>
___
___
Pytho
Florent Xicluna added the comment:
The Big Patch™.
It removes 99% of noisy deprecation messages.
--
Added file: http://bugs.python.org/file15776/issue7092_Lib_tests_big_patch.diff
___
Python tracker
<http://bugs.python.org/issue7
Florent Xicluna added the comment:
I would suggest to keep the tests, even if the bug is closed.
--
Added file: http://bugs.python.org/file15779/issue7532_wontfix_tests.diff
___
Python tracker
<http://bugs.python.org/issue7
New submission from Florent Xicluna :
Some tests in test_bytes are XXX.
They could be enabled.
Additionally the BaseBytesTest.test_index() is duplicated.
This patch enable the additional tests and remove dead code.
--
components: Tests
files: enable_bytes_memoryview_tests.diff
Changes by Florent Xicluna :
Removed file:
http://bugs.python.org/file15776/issue7092_Lib_tests_big_patch.diff
___
Python tracker
<http://bugs.python.org/issue7
Florent Xicluna added the comment:
Some technical background.
== Unicode ==
According to the Unicode Standard Annex #9, a character with
bidirectional class B is a "Paragraph Separator". And “Because a
Paragraph Separator breaks lines, there will be at most one per line,
at the e
Florent Xicluna added the comment:
It's confusing.
There's a specific annex UAX #14 which defines "Line Breaking Properties".
Some properties are defines as "Mandatory Line Breaks (non-tailorable)":
BK, CR, LF, NL
And t
Changes by Florent Xicluna :
Added file: http://bugs.python.org/file15787/issue7092_syntax_imports.diff
___
Python tracker
<http://bugs.python.org/issue7092>
___
___
Pytho
Changes by Florent Xicluna :
Added file: http://bugs.python.org/file15788/issue7092_check_warnings.diff
___
Python tracker
<http://bugs.python.org/issue7092>
___
___
Pytho
Changes by Florent Xicluna :
Added file: http://bugs.python.org/file15789/issue7092_filterwarnings.diff
___
Python tracker
<http://bugs.python.org/issue7092>
___
___
Pytho
Florent Xicluna added the comment:
I split the Big Patch™ into pieces.
It should be easier to review and merge.
- issue7092_syntax_imports.diff
--> Only syntax and import_module(m, deprecated=True)
- issue7092_check_warnings.diff
--> Use test.test_support.check_wa
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15790/issue7092_json_sqlite.diff
___
Python tracker
<http://bugs.python.org/issue7092>
___
___
Pytho
Changes by Florent Xicluna :
Added file: http://bugs.python.org/file15793/issue7092_regrtest_clean.diff
___
Python tracker
<http://bugs.python.org/issue7092>
___
___
Pytho
Florent Xicluna added the comment:
The method does not work as expected.
See msg97419:
--
Author: Sridhar Ratnakumar (srid) Date: 2010-01-08 18:26
I get this error while running Python 2.6.4 tests (on 64-bit Linux box
Florent Xicluna added the comment:
> test_urllib
> test test_urllib failed -- Traceback (most recent call last):
> File "/home/apy/rrun/tmp/autotest/apy/lib/python2.6/test/test_urllib.py",
> line 104, in setUp
> for k, v in os.environ.iteritems():
> RuntimeEr
Florent Xicluna added the comment:
Index: Lib/test/test_urllib.py
===
--- Lib/test/test_urllib.py (revision 77361)
+++ Lib/test/test_urllib.py (working copy)
@@ -101,7 +101,7 @@
# Records changes to env vars
Changes by Florent Xicluna :
--
___
Python tracker
<http://bugs.python.org/issue7026>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/m
Florent Xicluna added the comment:
Index: Lib/test/test_urllib.py
===
--- Lib/test/test_urllib.py (revision 77361)
+++ Lib/test/test_urllib.py (working copy)
@@ -101,7 +101,7 @@
# Records changes to env vars
Florent Xicluna added the comment:
Thanks. It should be propagated to 2.7.
--
versions: +Python 2.7
___
Python tracker
<http://bugs.python.org/issue7026>
___
___
Florent Xicluna added the comment:
Here it is, with some cleaning and simple Bytes/Bytearray tests.
And Bytearray tests backported to 2.7.
--
Added file: http://bugs.python.org/file15801/issue7532_wontfix_tests_py3k.diff
___
Python tracker
<h
Changes by Florent Xicluna :
Added file: http://bugs.python.org/file15802/issue7532_bytearray.diff
___
Python tracker
<http://bugs.python.org/issue7532>
___
___
Python-bug
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15801/issue7532_wontfix_tests_py3k.diff
___
Python tracker
<http://bugs.python.org/issue7
Changes by Florent Xicluna :
Added file: http://bugs.python.org/file15804/issue7532_wontfix_tests_py3k.diff
___
Python tracker
<http://bugs.python.org/issue7532>
___
___
Florent Xicluna added the comment:
Proposed in the patch for issue #7622.
--
stage: needs patch ->
superseder: -> [patch] improve unicode methods: split() rsplit() and replace()
___
Python tracker
<http://bugs.python.org/
Florent Xicluna added the comment:
Since nobody (and no bot) reported this error in twelve months,
we may close it.
--
resolution: -> works for me
status: open -> pending
___
Python tracker
<http://bugs.python.org/
Changes by Florent Xicluna :
--
keywords: +patch
Added file: http://bugs.python.org/file15806/issue7643_remove_deprecation.diff
___
Python tracker
<http://bugs.python.org/issue7
Florent Xicluna added the comment:
Here is draft of the patch to do what is proposed by Marc André on msg97440
(add VT and FF).
Additionnally I upgraded the UCD 5.1 -> 5.2.
The implementation uses field 16 as defined in "py3k" implementation of
"makeunicodedata.py&qu
Florent Xicluna added the comment:
I don't know what to do about this:
> - FS, GS, RS are combined marks (CM): “Prohibit a line break between
>the character and the preceding character”
I know they are not commonly used. So we can keep them as line breaks.
But if we comply st
Florent Xicluna added the comment:
I get similar warnings while building on Debian AMD64:
(...)
libpython2.7.a(posixmodule.o): In function `posix_tmpnam':
./Modules/posixmodule.c:7193: warning: the use of `tmpnam_r' is dangerous,
better use `mkstemp'
libpython2.7.a(posixmodule.
Florent Xicluna added the comment:
Still occurs on dev and py3k.
And patch applies correctly.
--
nosy: +flox
versions: -Python 3.0
___
Python tracker
<http://bugs.python.org/issue2
Changes by Florent Xicluna :
--
type: -> compile error
___
Python tracker
<http://bugs.python.org/issue6965>
___
___
Python-bugs-list mailing list
Unsubscri
Florent Xicluna added the comment:
It occurs on Debian Lenny AMD64.
--
___
Python tracker
<http://bugs.python.org/issue2973>
___
___
Python-bugs-list mailin
Florent Xicluna added the comment:
Then close it as duplicate of issue486434, which was closed for the same reason.
--
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python.org/
Florent Xicluna added the comment:
Patch attached.
--
keywords: +patch
nosy: +flox
stage: needs patch -> patch review
versions: +Python 3.2
Added file: http://bugs.python.org/file15815/issue7661_ctypes_path.diff
___
Python tracker
&l
Changes by Florent Xicluna :
--
components: +Build, ctypes
___
Python tracker
<http://bugs.python.org/issue7661>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15815/issue7661_ctypes_path.diff
___
Python tracker
<http://bugs.python.org/issue7661>
___
___
Pytho
Florent Xicluna added the comment:
Fixed typo in previous patch.
--
Added file: http://bugs.python.org/file15816/issue7661_ctypes_path.diff
___
Python tracker
<http://bugs.python.org/issue7
Florent Xicluna added the comment:
It fails if path contains space, too.
Additional patch fixes this case.
--
Added file: http://bugs.python.org/file15817/issue7661_ctypes_path_space.diff
___
Python tracker
<http://bugs.python.org/issue7
New submission from Florent Xicluna :
/tmp/py2u… → un\icode $ ./python Lib/test/regrtest.py test_urllib2
test_urllib2
test test_urllib2 failed -- Traceback (most recent call last):
File "/tmp/py2u… → un\icode/Lib/test/test_urllib2.py", line 36, in
test_trivial
f = urllib2.urlope
New submission from Florent Xicluna :
test_lib2to3
diff: opérande supplémentaire « unicode/Lib/lib2to3/pytree.py »
diff: Pour en savoir davantage, faites: « diff --help ».
test test_lib2to3 failed -- Traceback (most recent call last):
File "/tmp/py2u… → un\icode/Lib/lib2to3/
Florent Xicluna added the comment:
Similar issue with test_ntpath.
/tmp/py2u… → un\icode $ ./python Lib/test/regrtest.py test_ntpath
test_ntpath
test test_ntpath failed -- Traceback (most recent call last):
File "/tmp/py2u… → un\icode/Lib/test/test_ntpath.py", line 171, in
te
New submission from Florent Xicluna :
/tmp/py2u…→unicode $ ./python Lib/test/regrtest.py test_doctest
test_doctest
**
File "/tmp/py2u…→unicode/Lib/test/test_doctest.py", line 2052, in
test.test_doctest.test_DocFileSu
New submission from Florent Xicluna :
/tmp/py2u…→unicode $ ./python Lib/test/regrtest.py test_httpservers
test_httpservers
File "/tmp/tmplX9agF/cgi-bin/file1.py", line 1
SyntaxError: Non-ASCII character '\xe2' in file /tmp/tmplX9agF/cgi-bin/file1.py
on line 1, but no en
New submission from Florent Xicluna :
/tmp/py2u…→unicode $ ./python Lib/test/regrtest.py test_unicode_file
test_unicode_file
test test_unicode_file failed -- Traceback (most recent call last):
File "/tmp/py2u…→unicode/Lib/test/test_unicode_file.py", line 173, in
test_single_file
Florent Xicluna added the comment:
Updated: added quotes on line 2319.
--
Added file: http://bugs.python.org/file15820/issue7661_ctypes_path_space.diff
___
Python tracker
<http://bugs.python.org/issue7
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15817/issue7661_ctypes_path_space.diff
___
Python tracker
<http://bugs.python.org/issue7661>
___
___
New submission from Florent Xicluna :
/tmp/semi;colon $ ./python -3 Lib/test/regrtest.py test_popen
test_popen
sh: /tmp/semi: Aucun fichier ou répertoire de ce type
sh: colon/python: Aucun fichier ou répertoire de ce type
test test_popen failed -- Traceback (most recent call last):
File "
Florent Xicluna added the comment:
Patch attached.
--
keywords: +patch
stage: -> patch review
title: test_popen fails if path contains semi-colon ";" -> test_popen fails if
path contains special char like ";"
Added file: http://bugs.python.org/file15821
Florent Xicluna added the comment:
With r77420, it fails when path contains backslash "\".
Using '"%s" -c "..."' it does not fail.
--
resolution: fixed ->
status: closed -> open
___
Pyt
Florent Xicluna added the comment:
Confirmed.
With Python 2:
>>> import pydoc
>>> pydoc.pipepager(u'tütdelüt\n', 'cat')
Traceback (most recent call last):
File "", line 1, in
File "./Lib/pydoc.py", line 1357, in pipepager
Florent Xicluna added the comment:
The unicode text is sent to the subprocess without encoding.
It is encoded implicitly to ASCII (sys.getdefaultencoding()).
This patch performs explicit encoding.
Tests added.
--
keywords: +patch
stage: needs patch -> patch review
versions: +Pyt
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15828/issue7675_pydoc.diff
___
Python tracker
<http://bugs.python.org/issue7675>
___
___
Python-bug
Florent Xicluna added the comment:
New patch: backward compatibility preserved.
--
Added file: http://bugs.python.org/file15830/issue7675_pydoc_v2.diff
___
Python tracker
<http://bugs.python.org/issue7
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15830/issue7675_pydoc_v2.diff
___
Python tracker
<http://bugs.python.org/issue7675>
___
___
Pytho
Changes by Florent Xicluna :
Added file: http://bugs.python.org/file15831/issue7675_pydoc_v2.diff
___
Python tracker
<http://bugs.python.org/issue7675>
___
___
Python-bug
Changes by Florent Xicluna :
--
resolution: -> duplicate
status: open -> closed
superseder: -> Popen.subprocess change close_fds default to True
___
Python tracker
<http://bugs.python.o
Florent Xicluna added the comment:
It would be nice to upgrade ElementTree for 2.7 and 3.2, at least.
--
versions: -Python 2.6, Python 3.1
___
Python tracker
<http://bugs.python.org/issue6
Changes by Florent Xicluna :
Removed file: http://bugs.python.org/file15814/unnamed
___
Python tracker
<http://bugs.python.org/issue7092>
___
___
Python-bugs-list mailin
Changes by Florent Xicluna :
--
nosy: +flox
___
Python tracker
<http://bugs.python.org/issue3426>
___
___
Python-bugs-list mailing list
Unsubscribe:
Florent Xicluna added the comment:
Additionally it filters out test_pep277 on some platforms.
But seemingly, it is not needed anymore with this patch.
--
nosy: +flox
resolution: later ->
Added file: http://bugs.python.org/file15842/issue767645_test_pep277
Florent Xicluna added the comment:
It triggers some Windows buildbot failures.
http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%20trunk/builds/2837
--
___
Python tracker
<http://bugs.python.org/issue7
New submission from Florent Xicluna :
The series of failures 2808-2838 in buildbot x86 XP-4 is due to a file which
was not removed after test 2807 was aborted.
http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%20trunk/builds/2807
--
components: Tests
keywords: buildbot
Florent Xicluna added the comment:
Still occurs, on 2010-01-13.
http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%20trunk/builds/264
--
nosy: +flox
___
Python tracker
<http://bugs.python.org/issue3
Changes by Florent Xicluna :
--
nosy: +flox
___
Python tracker
<http://bugs.python.org/issue7385>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Florent Xicluna :
Various notes while reading the Memoryview documentation:
- “memoryviews allow Python code to access the internal data of an object that
supports the buffer protocol without copying. Memory can be interpreted as
simple bytes or complex data structures
New submission from Florent Xicluna :
When the current working directory is not decodable, the os.getcwd() function
should raise an error.
>>> sys.getfilesystemencoding()
'utf-8'
>>> cwd=b'/tmp/\xe7'
>>> os.mkdir(cwd); os.chdir(cwd)
>>> o
Florent Xicluna added the comment:
Actually, it is the documented behaviour.
http://docs.python.org/py3k/library/os.html#file-names-command-line-arguments-and-environment-variables
>>> b'\xe7'.decode('utf-8', 'surrogateescape')
'\udce7'
--
1101 - 1200 of 1386 matches
Mail list logo