[issue6889] «Python’s default encoding is the ‘ascii’ encoding.»

2009-09-11 Thread flox
New submission from flox : In the Python «Unicode HOWTO», we still read the statement: «For example, Python's default encoding is the 'ascii' encoding.» Here: http://svn.python.org/view/python/branches/py3k/Doc/howto/unicode.rst?revision=72294&view=markup -- ass

[issue6891] small typo in «unicode.rst»: « the Uniode APIs should be used» and broken URL

2009-09-11 Thread flox
New submission from flox : Found 2 typos: - Uniode instead of Unicode - Acknowledgements instead of Acknowledgments And the following reference is broken (Jason Orendorff website): http://www.jorendorff.com/articles/unicode/ The last version is dated 2007 on the wayback machine: http

[issue7376] FAIL: Doctest: __main__.DebugRunner

2009-11-22 Thread flox
New submission from flox : Running on Debian Lenny, with Python 3.1. The Python 2.5 version is OK. ~ $ python3 --version Python 3.1.1+ ~ $ python3 -m doctest F.. == FAIL: Doctest: __main__.DebugRunner

[issue7377] Slight difference: math.floor returns an Integral

2009-11-22 Thread flox
New submission from flox : The last code snippet on section "25.2.3.2 How are Docstring Examples Recognized?" does not output the expected result. http://docs.python.org/dev/py3k/library/doctest.html#how-are-docstring-examples-recognized Documentation example: >&g

[issue7379] Docstring for fractions.Fraction.limit_denominator fails

2009-11-23 Thread flox
New submission from flox : Yes, you can reduce the fraction 1234/5678. Bad Luck :p ~ $ python3 -m doctest /usr/lib/python3.1/fractions.py ** File "/usr/lib/python3.1/fractions.py", li

[issue7380] uuid.UUID.bytes gives a bytearray() instead of bytes

2009-11-23 Thread flox
New submission from flox : I've tried some experiments with module uuid, and I meet some inconsistencies between the documentation, the docstring and the real behavior of the module. An interactive session is worth a thousand words: >>> import uuid >>> uuid.UUID(byt

[issue7380] uuid.UUID.bytes gives a bytearray() instead of bytes

2009-11-23 Thread flox
flox added the comment: Attached patch gives coherence: * both UUID.bytes and UUID.bytes_le return a "bytes" object * the random tests are explicitly skipped Then the documentation needs fixing, too. -- keywords: +patch Added file: http://bugs.python.org

[issue7381] subprocess.check_output: "docstring has inconsistent leading whitespace"

2009-11-23 Thread flox
New submission from flox : I've tested the docstring of the module subprocess. Python 2.5 is OK, but Python 3.1 fails. ~ $ python2.5 -m doctest /usr/lib/python2.5/subprocess.py ... -- Ran 15 tests in 0.012

[issue7381] subprocess.check_output: "docstring has inconsistent leading whitespace"

2009-11-23 Thread flox
flox added the comment: I fixed the docstring inconsistency (see patch) and some obvious things. But I still have errors. ~ $ python3 -m doctest py3_failed/subprocess.py ** File "py3_failed/subprocess.py", li

[issue7381] subprocess.check_output: "docstring has inconsistent leading whitespace"

2009-11-23 Thread flox
flox added the comment: It may be fixed with "# doctest: +ELLIPSIS" and "# doctest: +SKIP" directives... But it is probably platform-dependent. I have tested only with Debian Lenny. -- ___ Python tracker <http://bu

[issue7376] "python -m doctest" results in FAIL: Doctest: __main__.DebugRunner

2009-11-23 Thread flox
flox added the comment: I am ok with the proposal of removing the current "selftest" default behavior. And thank you for the tip. I tried the command "python -m doctest Lib/*.py" and I found interesting things: * #7379 about Lib/fractions.py * #7380 about Lib/uuid.p

[issue7381] subprocess.check_output: "docstring has inconsistent leading whitespace"

2009-11-23 Thread flox
flox added the comment: Forget the "python2.5 -m doctest /usr/lib/python2.5/subprocess.py" in first message msg95625. This command does not do what I guessed. And there's no doctest in the Python2.5 "subprocess" module. The attached patch may be enough to fix the

[issue7380] uuid.UUID.bytes gives a bytearray() instead of bytes

2009-11-23 Thread flox
flox added the comment: Patch with documentation included. (branches/py3k) -- assignee: -> georg.brandl components: +Documentation nosy: +georg.brandl Added file: http://bugs.python.org/file15388/issue7380.diff ___ Python tracker &l

[issue7380] uuid.UUID.bytes gives a bytearray() instead of bytes

2009-11-23 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15385/issue7380_uuid.diff ___ Python tracker <http://bugs.python.org/issue7380> ___ ___ Python-bugs-list mailin

[issue7376] "python -m doctest" results in FAIL: Doctest: __main__.DebugRunner

2009-11-23 Thread flox
flox added the comment: Patch proposed. -- Added file: http://bugs.python.org/file15391/issue7376_usage.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7376] "python -m doctest" results in FAIL: Doctest: __main__.DebugRunner

2009-11-23 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15391/issue7376_usage.diff ___ Python tracker <http://bugs.python.org/issue7376> ___ ___ Python-bugs-list mailin

[issue7376] "python -m doctest" results in FAIL: Doctest: __main__.DebugRunner

2009-11-23 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15392/issue7376_usage.diff ___ Python tracker <http://bugs.python.org/issue7376> ___ ___ Python-bugs-list mailin

[issue7376] "python -m doctest" results in FAIL: Doctest: __main__.DebugRunner

2009-11-23 Thread flox
flox added the comment: Patch could be applied to Python 2.6 and trunk too. -- versions: +Python 2.6, Python 2.7 ___ Python tracker <http://bugs.python.org/issue7

[issue7390] inconsistent type return

2009-11-24 Thread flox
flox added the comment: The relevant documentation for Python 2.6 is there. http://docs.python.org/reference/datamodel.html#new-style-and-classic-classes The PEP 3115 is implemented for Python >= 3.0. There's nothing wrong. -- nos

[issue6615] multiprocessing logging support test

2009-11-24 Thread flox
flox added the comment: I would think to use weak references in order to prevent such leaks. With the patch attached, if the handler is not referenced anywhere, it is closed. However named handlers are not closed (because of hard reference in _handlers dictionary). -- nosy: +flox

[issue6615] multiprocessing logging support test

2009-11-24 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15395/issue6615_weakref.diff ___ Python tracker <http://bugs.python.org/issue6615> ___ ___ Python-bugs-list m

[issue6615] multiprocessing logging support test

2009-11-24 Thread flox
flox added the comment: yep... patch was not clean. Sorry :( I changed it. It passes the 21 tests of the test_logging suite. And the count of references decreases with the test: >>> import logging >>> handler = logging.Handler() >>> handler = logging.Handler()

[issue6615] multiprocessing logging support test

2009-11-24 Thread flox
flox added the comment: Updated the patch with technical recommendations from Antoine. I kept the _handlerList as a list because "It allows handlers to be removed in reverse of order initialized." And some tests are needed to outline the change. -- Added file: http://bugs.

[issue6615] multiprocessing logging support test

2009-11-24 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15396/issue6615_weakref.diff ___ Python tracker <http://bugs.python.org/issue6615> ___ ___ Python-bugs-list m

[issue6615] multiprocessing logging support test

2009-11-24 Thread flox
flox added the comment: Small change to acquire the module lock before working on _handlerList. -- Added file: http://bugs.python.org/file15398/issue6615_weakref.diff ___ Python tracker <http://bugs.python.org/issue6

[issue6615] multiprocessing logging support test

2009-11-24 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15397/issue6615_weakref.diff ___ Python tracker <http://bugs.python.org/issue6615> ___ ___ Python-bugs-list m

[issue6615] multiprocessing logging support test

2009-11-25 Thread flox
flox added the comment: Thank you Vinay. Since you "reversed()" the _handlerList, the following part need to be changed: Index: Lib/logging/__init__.py === --- Lib/logging/__init__.py (revision 76508) +++ Lib/loggin

[issue4097] Traceback doesn't run back all the way

2009-11-25 Thread flox
flox added the comment: It looks similar to issue7378, but the latter has more details. Close as duplicate? -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue4

[issue4158] compilation of sqlite3 fails

2009-11-25 Thread flox
flox added the comment: Please close as invalid. -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue4158> ___ ___ Python-bugs-list mailing list Unsub

[issue4158] compilation of sqlite3 fails

2009-11-25 Thread flox
Changes by flox : -- nosy: -flox ___ Python tracker <http://bugs.python.org/issue4158> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue4380] Deepcopy of functools.partial gives wierd exception

2009-11-25 Thread flox
flox added the comment: This issue is somewhat related to the same issue with pickle. See issue1398 for the explanation. -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue4

[issue7392] cPickle test failure on release26-maint branch

2009-11-25 Thread flox
flox added the comment: I experienced same failure (trunk is OK). It seems that r70531 needs backporting. -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue7

[issue3599] test_pydoc after test_urllib2 causes exception in Popen.__del__

2009-11-30 Thread flox
flox added the comment: Tested on debian with r76600 (/branches/release26-maint No error. ~/dev/python/release26-maint $ ./python Lib/test/regrtest.py -uall test_urllib2 test_pydoc test_urllib2 test_pydoc All 2 tests OK. ~/dev/python/release26-maint $ Is it specific to Windows

[issue691291] codecs.open(filename, 'U', 'UTF-16') corrupts text

2009-12-01 Thread flox
flox added the comment: Proposed patch following suggestion of And Clover. Compliant with documentation: «Files are always opened in binary mode, even if no binary mode was specified. This is done to avoid data loss due to encodings using 8-bit values. This means that no automatic conversion

[issue691291] codecs.open(filename, 'U', 'UTF-16') corrupts text

2009-12-01 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15423/issue691291_py3k.diff ___ Python tracker <http://bugs.python.org/issue691291> ___ ___ Python-bugs-list m

[issue7380] uuid.UUID.bytes gives a bytearray() instead of bytes

2009-12-01 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15426/issue7380_py3k.diff ___ Python tracker <http://bugs.python.org/issue7380> ___ ___ Python-bugs-list mailin

[issue7380] uuid.UUID.bytes gives a bytearray() instead of bytes

2009-12-01 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15388/issue7380.diff ___ Python tracker <http://bugs.python.org/issue7380> ___ ___ Python-bugs-list mailin

[issue7417] open builtin has no signature in docstring

2009-12-01 Thread flox
flox added the comment: Proposed docstring patch. -- keywords: +patch nosy: +flox versions: +Python 3.2 Added file: http://bugs.python.org/file15428/issue7417_py3k.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7418] hashlib : the names of the different hash algorithms

2009-12-01 Thread flox
flox added the comment: I guess you missed the quotes. $ ./python foo.py Traceback (most recent call last): File "foo.py", line 2, in from hashlib import * TypeError: attribute name must be string, not 'tuple' -- nosy: +flox __

[issue7417] open builtin has no signature in docstring

2009-12-01 Thread flox
flox added the comment: Indentation is not easy on this part. The list of arguments overflow the 79 chars limit. With the proposed patch, the generated output is something like: open(file, mode='r', buffering=None, encoding=None, errors=None, newline=None, closefd=Tru

[issue7417] open builtin has no signature in docstring

2009-12-01 Thread flox
flox added the comment: According to PEP257: «Multi-line docstrings consist of a summary line just like a one-line docstring, followed by a blank line, followed by a more elaborate description.» Maybe this second patch is more conventional? -- Added file: http://bugs.python.org

[issue691291] codecs.open(filename, 'U', 'UTF-16') corrupts text

2009-12-02 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15435/issue691291.diff ___ Python tracker <http://bugs.python.org/issue691291> ___ ___ Python-bugs-list mailin

[issue691291] codecs.open(filename, 'U', 'UTF-16') corrupts text

2009-12-02 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15422/issue691291.diff ___ Python tracker <http://bugs.python.org/issue691291> ___ ___ Python-bugs-list mailin

[issue7417] open builtin has no signature in docstring

2009-12-02 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15434/issue7417_py3k_pep257.diff ___ Python tracker <http://bugs.python.org/issue7417> ___ ___ Python-bug

[issue7417] open builtin has no signature in docstring

2009-12-02 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15428/issue7417_py3k.diff ___ Python tracker <http://bugs.python.org/issue7417> ___ ___ Python-bugs-list mailin

[issue7417] open builtin has no signature in docstring

2009-12-02 Thread flox
flox added the comment: Actually the docstring of _pyio.open Python function should not change. The patch is smaller. -- Added file: http://bugs.python.org/file15436/issue7417_py3k.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7417] open builtin has no signature in docstring

2009-12-02 Thread flox
flox added the comment: Ulrik, I agree that most builtins have the signature on first lines. I will not apply this part of the PEP257. But it seems that the "[...]" syntax is not enforced for all builtins. See "help(print)", "help(sorted)" and "help(__im

[issue7417] open builtin has no signature in docstring

2009-12-02 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15436/issue7417_py3k.diff ___ Python tracker <http://bugs.python.org/issue7417> ___ ___ Python-bugs-list mailin

[issue7417] open builtin has no signature in docstring

2009-12-02 Thread flox
flox added the comment: Or I suggest something more verbose... >>> print(open.__doc__) open(filename) -> file object for reading in text mode open(filename, mode=binary[, buffering]) -> file object in binary mode open(filename[, mode=text][, buffering][,encoding][,e

[issue7417] open builtin has no signature in docstring

2009-12-02 Thread flox
flox added the comment: (patch attached: explicit signature) I vote +1 for something more explicit. « Explicit is better than implicit. » >>> help(open) Help on built-in function open in module io: open(...) open(file_name_or_path) -> file object for reading in text m

[issue7417] open builtin has no signature in docstring

2009-12-02 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15442/issue7417_py3k_explicit.diff ___ Python tracker <http://bugs.python.org/issue7417> ___ ___ Python-bug

[issue7417] open builtin has no signature in docstring

2009-12-02 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15441/issue7417_py3k_explicit.diff ___ Python tracker <http://bugs.python.org/issue7417> ___ ___ Python-bug

[issue7381] subprocess.check_output: "docstring has inconsistent leading whitespace"

2009-12-03 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15386/issue7381_first.diff ___ Python tracker <http://bugs.python.org/issue7381> ___ ___ Python-bugs-list mailin

[issue7381] subprocess.check_output: "docstring has inconsistent leading whitespace"

2009-12-03 Thread flox
flox added the comment: Patch against the trunk, and against the Py3k branch. It fixes: * docstring and documentation formatting * and examples -- assignee: -> georg.brandl components: +Documentation nosy: +georg.brandl versions: +Python 2.6, Python 2.7 Added file: h

[issue7381] subprocess.check_output: "docstring has inconsistent leading whitespace"

2009-12-03 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15447/issue7381_py3k.diff ___ Python tracker <http://bugs.python.org/issue7381> ___ ___ Python-bugs-list mailin

[issue1398] Can't pickle partial functions

2009-12-03 Thread flox
flox added the comment: It seems fixed on trunk. It is fixed on Python 3.1 and 3.2, too. With Python 2.6 I see the error: >>> ./python partial_bug.py TypeError: can't pickle partial objects Documentation for "trunk" and "py3k&qu

[issue4380] Deepcopy of functools.partial gives wierd exception

2009-12-03 Thread flox
flox added the comment: Already fixed on Python trunk (2.7). Fixed on branches 3.1 and 3.2, too. -- ___ Python tracker <http://bugs.python.org/issue4380> ___ ___

[issue7431] UnboundLocalError during test.test_linecache.LineCacheTests

2009-12-03 Thread flox
flox added the comment: Actually it should use the TESTFN filename which is always writable. Patch attached. -- keywords: +patch nosy: +flox Added file: http://bugs.python.org/file15448/issue7431.diff ___ Python tracker <http://bugs.python.

[issue7431] UnboundLocalError during test.test_linecache.LineCacheTests

2009-12-03 Thread flox
Changes by flox : -- versions: +Python 3.2 ___ Python tracker <http://bugs.python.org/issue7431> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7435] Int/Long: some tests are duplicate and error messages refer to "long"

2009-12-04 Thread flox
New submission from flox : In python 3.x there's a single type for integer: int. The automatic conversion of the test suite has created many tests which are duplicate of each other. The attached patch removes duplication of tests, and fix the strings for these modules: Lib/random.py

[issue7435] Int/Long: some tests are duplicate and error messages refer to "long"

2009-12-04 Thread flox
Changes by flox : -- keywords: +patch Added file: http://bugs.python.org/file15449/issue7435_py3k.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7441] Py3.1: Fatal Python Error: Py_Initialize...unknown encoding: chcp 65001.

2009-12-05 Thread flox
flox added the comment: there's a patch proposed to add cp65001 alias: issue6058 -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue7441> ___ ___

[issue6058] Add cp65001 to encodings/aliases.py

2009-12-05 Thread flox
Changes by flox : -- versions: +Python 2.6, Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/issue6058> ___ ___ Python-bugs-list mailin

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-05 Thread flox
Changes by flox : -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue6472> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-05 Thread flox
flox added the comment: There's many differences between both implementations. I don't know if we can live with them or not. ~ $ ./python Python 3.1.1+ (release31-maint:76650, Dec 3 2009, 17:14:50) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-06 Thread flox
flox added the comment: Proposed patch fixes most of the discrepancies between both implementations. It restores some features that were lost with Python 3: * cElement slicing and extended slicing * iterparse, cET.getiterator and cET.findall return an iterator (as documented) Some tests

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-06 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15462/issue6472_py3k.diff ___ Python tracker <http://bugs.python.org/issue6472> ___ ___ Python-bugs-list mailin

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-06 Thread flox
flox added the comment: I fixed it differently, using the upstream modules (Thank you Fredrik). * ElementTree 1.3a3-20070912 * cElementTree 1.0.6-20090110 It works. And it closes issue1143, too. -- Added file: http://bugs.python.org/file15468/issue6472_upstream.diff

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-07 Thread flox
Changes by flox : -- versions: -Python 3.0 Added file: http://bugs.python.org/file15469/issue6472_upstream_py3k.diff ___ Python tracker <http://bugs.python.org/issue6

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-07 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15462/issue6472_py3k.diff ___ Python tracker <http://bugs.python.org/issue6472> ___ ___ Python-bugs-list mailin

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-07 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15461/issue6472.diff ___ Python tracker <http://bugs.python.org/issue6472> ___ ___ Python-bugs-list mailin

[issue1143] Update to latest ElementTree in Python 2.7

2009-12-07 Thread flox
flox added the comment: Patch proposed with latest versions: * ElementTree 1.3a3-20070912 * cElementTree 1.0.6-20090110 Attached to issue6472. -- keywords: +patch nosy: +flox Added file: http://bugs.python.org/file15470/issue1143_ET13_cET106.diff

[issue1143] Update to latest ElementTree in Python 2.7

2009-12-07 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15470/issue1143_ET13_cET106.diff ___ Python tracker <http://bugs.python.org/issue1143> ___ ___ Python-bug

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-07 Thread flox
flox added the comment: I see some new features in the changelog. I will try to update the documentation during the week. (patch "py3k" fixed: support assignment of arbitrary sequences) -- Added file: http://bugs.python.org/file15471/issue6472_upstream

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-07 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15469/issue6472_upstream_py3k.diff ___ Python tracker <http://bugs.python.org/issue6472> ___ ___ Python-bug

[issue5596] memory leaks in py3k

2009-12-07 Thread flox
flox added the comment: test_textwrap seems OK with r76697 I still have leaks on test_pipes and test_urllib: ~ $ ./python Lib/test/regrtest.py -R : test_textwrap \ test_pipes test_urllib test_pipes leaked [0, -26, 0, 26] references, sum=0 test_pipes leaked [0, -26, 26, -26

[issue5596] memory leaks in py3k

2009-12-07 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15479/issue5596_urllib_py3k.diff ___ Python tracker <http://bugs.python.org/issue5596> ___ ___ Python-bugs-list m

[issue5596] memory leaks in py3k

2009-12-07 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15480/issue5596_pipes_py3k.diff ___ Python tracker <http://bugs.python.org/issue5596> ___ ___ Python-bugs-list m

[issue5596] memory leaks in py3k

2009-12-07 Thread flox
flox added the comment: Patch for the test refleaks: * test_pipes * test_urllib -- ___ Python tracker <http://bugs.python.org/issue5596> ___ ___ Python-bug

[issue5596] memory leaks in py3k

2009-12-07 Thread flox
flox added the comment: And the test_urllib may leak on 2.7, too. Patch attached. -- Added file: http://bugs.python.org/file15482/issue5596_urllib.diff ___ Python tracker <http://bugs.python.org/issue5

[issue5596] memory leaks in py3k

2009-12-07 Thread flox
Changes by flox : -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue5596> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5596] memory leaks in py3k

2009-12-07 Thread flox
flox added the comment: Another false-positive in test_zipimport_support. Both on 2.7 and 3.2. Patch attached. -- Added file: http://bugs.python.org/file15485/issue5596_zipimport_support.diff ___ Python tracker <http://bugs.python.org/issue5

[issue5596] memory leaks in py3k

2009-12-07 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15486/issue5596_zipimport_support_py3k.diff ___ Python tracker <http://bugs.python.org/issue5596> ___ ___ Pytho

[issue7458] crash in str.find() and str.rfind() with invalid start value

2009-12-08 Thread flox
flox added the comment: This bug does not occur on Debian 64 bits. ~ $ uname -srvm Linux 2.6.30-bpo.1-amd64 #1 SMP Mon Aug 17 08:42:50 UTC 2009 x86_64 Tested with variants: from random import getrandbits self.checkequal(-1, 'ab', 'find', '

[issue7458] crash in str.find() and str.rfind() with invalid start value

2009-12-08 Thread flox
flox added the comment: I got it to crash (2.7): ~ $ ./python Lib/test/regrtest.py string_tests test_unicode test_str test_unicode test test_unicode failed -- Traceback (most recent call last): AssertionError: -1 != -8276732 test_str test test_str failed -- Traceback (most recent call last

[issue7458] crash in str.find() and str.rfind() with invalid start value

2009-12-08 Thread flox
flox added the comment: I reviewed the patch, and it seems partially redundant. Actually the "find" method was not broken. There is already a test "if (str_len < 0) return -1;" for this one. See attached patch. -- Added file: http://bugs.python.org/file155

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-08 Thread flox
New submission from flox : While looking at issue7458 I stopped on: /* XXX - create reversefastsearch helper! */ Here is the patch which is just the translation of the same algorithm already implemented for "find/index". http://effbot.org/zone/stringlib.htm Note: it supersedes

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-08 Thread flox
flox added the comment: (removed comment which should not be copied) -- Added file: http://bugs.python.org/file15507/fastsearch_rfind.patch ___ Python tracker <http://bugs.python.org/issue7

[issue7462] Implement fastsearch algorithm for rfind/rindex

2009-12-08 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15505/fastsearch_rfind.patch ___ Python tracker <http://bugs.python.org/issue7462> ___ ___ Python-bugs-list m

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2009-12-09 Thread flox
flox added the comment: Patch for the documentation. (source: upstream documentation) -- Added file: http://bugs.python.org/file15513/issue6472_upstream_docs.diff ___ Python tracker <http://bugs.python.org/issue6

[issue7466] Segmentation fault after about 20 seconds on lenovo T500

2009-12-10 Thread flox
flox added the comment: Yes, confirmed too. Both 3.1 and 3.2 are broken. Minimal sequence to trigger the bug: """ ~ $ ./python Python 3.2a0 (py3k:76743M, Dec 10 2009, 12:19:41) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "li

[issue7466] Segmentation fault after about 20 seconds on lenovo T500

2009-12-10 Thread flox
flox added the comment: Fix is coming soon... ## Sample code: import gc tuple(gc.collect() for i in range(11)) ## python: Objects/tupleobject.c:853: _PyTuple_Resize: ## Assertion `g->gc.gc_refs != (-2)' failed. And Trunk is affected -- versions: +Py

[issue7466] Segmentation fault after about 20 seconds on lenovo T500

2009-12-10 Thread flox
flox added the comment: Well... here comes the patch. -- keywords: +patch Added file: http://bugs.python.org/file15520/issue7466.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7466] Segmentation fault after about 20 seconds on lenovo T500

2009-12-10 Thread flox
Changes by flox : Removed file: http://bugs.python.org/file15520/issue7466.diff ___ Python tracker <http://bugs.python.org/issue7466> ___ ___ Python-bugs-list mailin

[issue7466] Segmentation fault after about 20 seconds on lenovo T500

2009-12-10 Thread flox
Changes by flox : Added file: http://bugs.python.org/file15521/issue7466.diff ___ Python tracker <http://bugs.python.org/issue7466> ___ ___ Python-bugs-list mailin

[issue7475] codecs missing: base64 bz2 hex zlib ...

2009-12-10 Thread flox
New submission from flox : AFAIK these codecs were not ported to Python 3. 1. I found no hint in documentation on this matter. 2. Is it possible to contribute some of them, or there's a good reason to look elsewhere? -- components: Library (Lib) messages: 96218 nosy: flox sev

[issue7475] No hint about codecs removed : base64 bz2 hex zlib ...

2009-12-11 Thread flox
flox added the comment: «Everything you thought you knew about binary data and Unicode has changed.» Reopening for the documentation part. This "mistake" deserves some words in the documentation: docs.python.org/dev/py3k/whatsnew/3.0.html #text-vs-data-instead-of-unicod

[issue7475] No hint about codecs removed : base64 bz2 hex zlib ...

2009-12-11 Thread flox
flox added the comment: Is it possible to add "DeprecationWarning" for these codecs when using "python -3" ? >>> {}.has_key('a') __main__:1: DeprecationWarning: dict.has_key() not supported in 3.x; use the in operator False >>> print

[issue7475] No hint about codecs removed : base64 bz2 hex zlib ...

2009-12-11 Thread flox
Changes by flox : -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue7475> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7475] No hint about codecs removed: base64 bz2 hex zlib ...

2009-12-11 Thread flox
Changes by flox : -- title: No hint about codecs removed : base64 bz2 hex zlib ... -> No hint about codecs removed: base64 bz2 hex zlib ... ___ Python tracker <http://bugs.python.org/iss

  1   2   >