[issue7897] Support parametrized tests in unittest

2011-12-18 Thread holger krekel
Changes by holger krekel holger.kre...@gmail.com: -- nosy: +hpk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7897 ___ ___ Python-bugs-list

[issue13625] multiprocessing.reduction gives OSError: [Errno 9] in 2.7.2

2011-12-18 Thread Yaşar Arabacı
New submission from Yaşar Arabacı yasar11...@gmail.com: Even though same code works fine under Python 2.7(r27:82500, Aug 07 2010, 16:54:59) and Python 2.6.6 (r266:84292, Jun 12 2011, 20:37:17), I get following error using multiprocessing.reduction module no matter what I try. Complete code

[issue13625] multiprocessing.reduction gives OSError: [Errno 9] in 2.7.2

2011-12-18 Thread Yaşar Arabacı
Yaşar Arabacı yasar11...@gmail.com added the comment: I forgot to mention that I use Python 2.7.2 (default, Nov 21 2011, 17:24:32) [GCC 4.6.2] on linux2 Linux yasar-laptop 3.1.4-1-ARCH #1 SMP PREEMPT Tue Nov 29 09:08:04 UTC 2011 i686 Intel(R) Pentium(R) M processor 1.86GHz GenuineIntel

[issue8684] improvements to sched.py

2011-12-18 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: This broken the Fedora without thread buildbot, since sched now requires the threading module: http://www.python.org/dev/buildbot/all/builders/AMD64 Fedora without threads 3.x/builds/1250/steps/test/logs/stdio -- nosy:

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2011-12-18 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13555 ___ ___ Python-bugs-list

[issue13575] old style classes still alive

2011-12-18 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Is mro_internal's second call to type_mro_modified still needed? I was about to remove it, however I'm not enough confident on this. I have to understand how tp_mro and tp_bases interact in Python 3 (and the C extensions).

[issue13522] Document error return values for PyFloat_* and PyComplex_*

2011-12-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset edc981ce8748 by Victor Stinner in branch '3.2': Issue #13522: Fix _Py_co_pow() documentation http://hg.python.org/cpython/rev/edc981ce8748 New changeset 2863470caebb by Victor Stinner in branch '2.7': Issue #13522:

[issue13625] multiprocessing.reduction gives OSError: [Errno 9] in 2.7.2

2011-12-18 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Two patches have recently modified this part of the code: http://hg.python.org/cpython/rev/d4d9a3e71897 http://hg.python.org/cpython/rev/cd15473a9de2 I'm unable to reproduce the problem on Linux 3.1.0 x86 with branch 2.7 (for those

[issue11867] Make test_mailbox deterministic

2011-12-18 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: There was a recent buildbot failure on test_lock_conflict() because of a race. Looking at your patch, I must be missing something, but why not simply use a multiprocessing condition to signal when the parent process has acquired the

[issue13625] multiprocessing.reduction gives OSError: [Errno 9] in 2.7.2

2011-12-18 Thread Yaşar Arabacı
Yaşar Arabacı yasar11...@gmail.com added the comment: I would love to test which patch introduced the problem, but I am not sure how should I do that. (Get the python source, change it and recompile?). I am also adding output of strace here. -- Added file:

[issue13625] multiprocessing.reduction gives OSError: [Errno 9] in 2.7.2

2011-12-18 Thread Yaşar Arabacı
Changes by Yaşar Arabacı yasar11...@gmail.com: Added file: http://bugs.python.org/file24019/output-2.6.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13625 ___

[issue13625] multiprocessing.reduction gives OSError: [Errno 9] in 2.7.2

2011-12-18 Thread Yaşar Arabacı
Changes by Yaşar Arabacı yasar11...@gmail.com: Added file: http://bugs.python.org/file24020/output-3.2.2.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13625 ___

[issue13624] UTF-8 encoder performance regression in python3.3

2011-12-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Updated patch to fix also the size of the small buffer on the stack, as suggested by Antoine. -- Added file: http://bugs.python.org/file24021/utf8_encoder-2.patch ___ Python tracker

[issue13624] UTF-8 encoder performance regression in python3.3

2011-12-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: utf8_encoder_prescan.patch: precompute the size of the output to avoid a PyBytes_Resize() at exit. It is much slower: ASCII: 10 loops, best of 3: 2.06 usec per loop UCS-1: 1 loops, best of 3: 123 usec per loop UCS-2: 1

[issue13624] UTF-8 encoder performance regression in python3.3

2011-12-18 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file24005/utf8_encoder.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13624 ___

[issue13626] Python SSL stack doesn't support DH ciphers

2011-12-18 Thread naif
New submission from naif n...@globaleaks.org: Python SSL doesn't support DH ciphers in in all version tested. This is a serious security issue because it's not possible to use as a server or client Perfect Forward Secrecy [1] security provided by DHE and ECDH ciphers . In order to enable DH

[issue8906] Document TestCase attributes in class docstring

2011-12-18 Thread Boris FELD
Boris FELD lothiral...@gmail.com added the comment: Add a patch for this issue, move attributes comments in TestCase docstring. I think it should be a good idea too to add their in unittest doc. -- keywords: +patch nosy: +Boris.FELD Added file:

[issue13624] UTF-8 encoder performance regression in python3.3

2011-12-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Patch version 3 to fix compiler warnings (avoid variables used for the error handler, unneeded for UCS-1). -- Added file: http://bugs.python.org/file24023/utf8_encoder-3.patch ___ Python

[issue13624] UTF-8 encoder performance regression in python3.3

2011-12-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fbd797fc3809 by Victor Stinner in branch 'default': Issue #13624: Write a specialized UTF-8 encoder to allow more optimization http://hg.python.org/cpython/rev/fbd797fc3809 -- nosy: +python-dev

[issue13624] UTF-8 encoder performance regression in python3.3

2011-12-18 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13624 ___

[issue13625] multiprocessing.reduction gives OSError: [Errno 9] in 2.7.2

2011-12-18 Thread Yaşar Arabacı
Yaşar Arabacı yasar11...@gmail.com added the comment: Ok, I figured how to test for those patches. I just tested my code against those versions, and suprisingly I didn't get any errors. I am adding output of three different versions now. Each filename corresponds to regarded version.

[issue13625] multiprocessing.reduction gives OSError: [Errno 9] in 2.7.2

2011-12-18 Thread Yaşar Arabacı
Changes by Yaşar Arabacı yasar11...@gmail.com: Added file: http://bugs.python.org/file24026/d4d9a3e71897-output.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13625 ___

[issue13625] multiprocessing.reduction gives OSError: [Errno 9] in 2.7.2

2011-12-18 Thread Yaşar Arabacı
Changes by Yaşar Arabacı yasar11...@gmail.com: Added file: http://bugs.python.org/file24027/9f4d72da69a8-output.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13625 ___

[issue13627] Python SSL stack doesn't support Elliptic Curve ciphers

2011-12-18 Thread naif
New submission from naif n...@globaleaks.org: Python SSL doesn't support Elliptic Curve ciphers in in all version tested. This is a serious performance issue because it's not possible to use as a server or as client the performance improvement provided by ECC based ciphers. Nowdays ECC are

[issue13625] multiprocessing.reduction gives OSError: [Errno 9] in 2.7.2

2011-12-18 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Looking at the strace output: Successful test: sendmsg(11, {msg_name(0)=NULL, msg_iov(1)=[{\267, 1}], msg_controllen=16, {cmsg_len=16, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {7}}, msg_flags=0}, 0) = 1 The FD sent is 7 ({7}

[issue13555] cPickle MemoryError when loading large file (while pickle works)

2011-12-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: New version. Looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13555 ___ ___

[issue13627] Python SSL stack doesn't support Elliptic Curve ciphers

2011-12-18 Thread naif
naif n...@globaleaks.org added the comment: Other example for DH and ECC from: https://github.com/bumptech/stud/blob/master/stud.c #ifndef OPENSSL_NO_DH static int init_dh(SSL_CTX *ctx, const char *cert) { DH *dh; BIO *bio; assert(cert); bio = BIO_new_file(cert, r); if

[issue13626] Python SSL stack doesn't support DH ciphers

2011-12-18 Thread naif
naif n...@globaleaks.org added the comment: Other example for DH and ECC from: https://github.com/bumptech/stud/blob/master/stud.c #ifndef OPENSSL_NO_DH static int init_dh(SSL_CTX *ctx, const char *cert) { DH *dh; BIO *bio; assert(cert); bio = BIO_new_file(cert, r); if

[issue13627] Python SSL stack doesn't support Elliptic Curve ciphers

2011-12-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It's not obvious to me which APIs should be used to provide such support. Python mostly uses high-level OpenSSL APIs, and lets OpenSSL load certificates. Do you want to try writing a patch? General instructions on how to contribute can be found

[issue13627] Python SSL stack doesn't support Elliptic Curve ciphers

2011-12-18 Thread naif
naif n...@globaleaks.org added the comment: Have a look also at DH related ticket: http://bugs.python.org/issue13626 There is a code example on how PHP manage the DH parameter setup with high level OpenSSL. The code must check if the ciphers is EC or DH and in that case setup appropriate

[issue13625] multiprocessing.reduction gives OSError: [Errno 9] in 2.7.2

2011-12-18 Thread Yaşar Arabacı
Yaşar Arabacı yasar11...@gmail.com added the comment: Appereantly my distribution's build used this http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.xz, and that version was bugged. But I tried building this http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2 and that build worked

[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Cédric Krier
Cédric Krier cedric.kr...@b2ck.com added the comment: New patch with test -- Added file: http://bugs.python.org/file24028/issue7502.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7502

[issue13625] multiprocessing.reduction gives OSError: [Errno 9] in 2.7.2

2011-12-18 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: But I tried building this http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2 and that build worked successfully. This is 2.7, which is more than a year old. The most recent 2.7 version is

[issue8035] urllib.request.urlretrieve hangs waiting for connection close after a redirect

2011-12-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 038616802b65 by Charles-François Natali in branch '2.7': Issue #8035: urllib: Fix a bug where the client could remain stuck after a http://hg.python.org/cpython/rev/038616802b65 New changeset a420b27a86d9 by

[issue13626] Python SSL stack doesn't support DH ciphers

2011-12-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The ssl module doesn't directly handle keys, it just gives a PEM file to OpenSSL's ssl functions. So I don't understand what should be done precisely here, or even if something has to be done at all. -- nosy: +pitrou type: -

[issue13625] multiprocessing.reduction gives OSError: [Errno 9] in 2.7.2

2011-12-18 Thread Yaşar Arabacı
Yaşar Arabacı yasar11...@gmail.com added the comment: Current 2.7 branch is ok. This bug report can be closed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13625 ___

[issue13553] Tkinter doesn't set proper application name

2011-12-18 Thread zup
zup hripo...@gmail.com added the comment: The link below suggests that the problem with method 'iconname' may be due to the method not working at the window manager level: http://www.pythonware.com/library/tkinter/introduction/x9905-icon-methods.htm summary: iconname iconname(newName=None),

[issue13625] multiprocessing.reduction gives OSError: [Errno 9] in 2.7.2

2011-12-18 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Alright, thanks! -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13625

[issue13626] Python SSL stack doesn't support DH ciphers

2011-12-18 Thread naif
naif n...@globaleaks.org added the comment: Please look at how PHP implement the feature. It doesn't use any PEM or any Key File, but just initiatlize the DH parameters. Stud instead, ask the user to generate offline the DH parameters and save it into the PEM file. I think that the PHP

[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Cédric Krier
Cédric Krier cedric.kr...@b2ck.com added the comment: New patch to add __hash__ and __eq__ to DocTest -- Added file: http://bugs.python.org/file24029/issue7502.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7502

[issue13626] Python SSL stack doesn't support DH ciphers

2011-12-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well the OpenSSL docs say “DH_generate_parameters() may run for several hours before finding a suitable prime”, which sounds like a good reason not to do it every time your program is run. Anyway, SSL_CTX_set_tmp_dh() should allow us to set DH

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on x86 Ubuntu Shared 3.x

2011-12-18 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Victor, could you try the patch attached? -- Added file: http://bugs.python.org/file24030/threading_reinit_lock.diff ___ Python tracker rep...@bugs.python.org

[issue8035] urllib.request.urlretrieve hangs waiting for connection close after a redirect

2011-12-18 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Alright, should be fixed now. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The definition of __eq__ is wrong: it shouldn't compare the hashes since the hash() function isn't injective. For example, 0 and have equal hashes, yet they are unequal. -- ___ Python tracker

[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Cédric Krier
Cédric Krier cedric.kr...@b2ck.com added the comment: Update patch to not use hash in __eq__ -- Added file: http://bugs.python.org/file24031/issue7502.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7502

[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Something I forgot: you should also test the != operator in the tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7502 ___

[issue13628] python-gdb.py: patch to improve support of optimized Python

2011-12-18 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: If Python is compiled with gcc -O3, gdb is unable to get the f argument of PyEval_EvalFrameEx(). It is possible to retrieve f from the caller, PyEval_EvalCodeEx(). Attached patch tries to implement this idea and enable more

[issue13627] Python SSL stack doesn't support Elliptic Curve ciphers

2011-12-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, so you are talking specifically about ECDH? Or is there something to be done for generic EC support? OpenSSL has a SSL_CTX_set_tmp_dh() function (macro, actually), but it's undocumented. Best bet is probably to follow ssl/ssltest.c (OpenSSL

[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Cédric Krier
Cédric Krier cedric.kr...@b2ck.com added the comment: Add test for != -- Added file: http://bugs.python.org/file24033/issue7502.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7502 ___

[issue12231] regrtest: add -k and -K options to filter tests by function/file names

2011-12-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Already fixed in #12626. -- resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - run test cases based on a glob filter ___ Python tracker

[issue13627] Python SSL stack doesn't support Elliptic Curve ciphers

2011-12-18 Thread naif
naif n...@globaleaks.org added the comment: This is how the Stud software enable also the use of ECC in OpenSSL TLS https://github.com/bumptech/stud/pull/61 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13627

[issue13617] Reject embedded null characters in wchar* strings

2011-12-18 Thread Arnaud Calmettes
Arnaud Calmettes calmettes.arn...@gmail.com added the comment: Here is a patch for the documentation. I added warnings for, PyUnicode_AsWideChar*, PyUnicode_EncodeFSDefault and PyUnicode_AsUnicode*, since they're all concerned by this issue. -- nosy: +arnaudc Added file:

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on x86 Ubuntu Shared 3.x

2011-12-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 775319cebaa3 by Charles-François Natali in branch '2.7': Issue #11870: threading: Properly reinitialize threads internal locks and http://hg.python.org/cpython/rev/775319cebaa3 New changeset de962ec0faaa by

[issue13521] Make dict.setdefault() atomic

2011-12-18 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Patch for 2.7. -- Added file: http://bugs.python.org/file24035/13521_27_1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13521

[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Cédric Krier
Cédric Krier cedric.kr...@b2ck.com added the comment: Add also __eq__ to Example and add __ne__ method. -- Added file: http://bugs.python.org/file24036/issue7502.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7502

[issue13617] Reject embedded null characters in wchar* strings

2011-12-18 Thread Arnaud Calmettes
Arnaud Calmettes calmettes.arn...@gmail.com added the comment: I removed the hints using wcslen on the result of PyUnicode_AsWideChar*, since the resulting wchar_t strings may not be null-terminated -- Added file: http://bugs.python.org/file24037/doc_unicode-2.patch

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on x86 Ubuntu Shared 3.x

2011-12-18 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Should be fixed now. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11870

[issue13629] _PyParser_TokenNames does not match up with the token.h numbers

2011-12-18 Thread Meador Inge
New submission from Meador Inge mead...@gmail.com: When making the changes to remove backticks in eb2f70fdbf32, the _PyParser_TokenNames table was incorrectly updated. Now the indexes into _PyParser_TokenNames don't match the token numbers. This can be seen in the output of 'python -d':

[issue5492] Error on leaving IDLE with quit() or exit() under Linux

2011-12-18 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: You can trigger this error every time if you change .after(2*self.poll_interval, self.close2) to .after(1, self.close2) in PyShell.py -- nosy: +serwy ___ Python tracker rep...@bugs.python.org

[issue13617] Reject embedded null characters in wchar* strings

2011-12-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fa5c8cf29963 by Victor Stinner in branch '3.2': Issue #13617: Document that the result of the conversion of a Unicode object to http://hg.python.org/cpython/rev/fa5c8cf29963 New changeset f30ac7729f2b by Victor

[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c478734ded4b by Antoine Pitrou in branch '3.2': Issue #7502: Fix equality comparison for DocTestCase instances. http://hg.python.org/cpython/rev/c478734ded4b New changeset b8cb6f1e4981 by Antoine Pitrou in branch

[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch now committed to all 3 branches. Thanks for contributing! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13617] Reject embedded null characters in wchar* strings

2011-12-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1c4d9534263e by Victor Stinner in branch '2.7': Issue #13617: Document that the result PyUnicode_AsUnicode() and http://hg.python.org/cpython/rev/1c4d9534263e -- ___

[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Cédric Krier
Cédric Krier cedric.kr...@b2ck.com added the comment: Patch to add __hash__ to prevent warnings in 2.7 -- Added file: http://bugs.python.org/file24039/issue7502-hash.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7502

[issue13628] python-gdb.py: patch to improve support of optimized Python

2011-12-18 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13628 ___ ___ Python-bugs-list mailing

[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Cédric Krier
Cédric Krier cedric.kr...@b2ck.com added the comment: Add test for __hash__ -- Added file: http://bugs.python.org/file24040/issue7502-hash.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7502

[issue7502] All DocTestCase instances compare and hash equal to each other

2011-12-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6a95820b9607 by Antoine Pitrou in branch '2.7': Followup to #7502: add __hash__ method and tests. http://hg.python.org/cpython/rev/6a95820b9607 -- ___ Python tracker

[issue13624] UTF-8 encoder performance regression in python3.3

2011-12-18 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Oooh, it's just faster because encoding ASCII to UTF-8 is now O(1) It's actually still O(n): the UTF-8 data still need to be copied into a bytes object. -- ___ Python tracker

[issue13624] UTF-8 encoder performance regression in python3.3

2011-12-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: It's actually still O(n): the UTF-8 data still need to be copied into a bytes object. Hum, correct, but a memory copy is much faster than having to decode UTF-8. -- ___ Python tracker

[issue13629] _PyParser_TokenNames does not match up with the token.h numbers

2011-12-18 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Is there a reason not to renumber token.h? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13629 ___

[issue13617] Reject embedded null characters in wchar* strings

2011-12-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: embedded_nul-2.patch: a more complete patch check also null byte in functions calling PyUnicode_EncodeFSDefault(). -- Added file: http://bugs.python.org/file24041/embedded_nul-2.patch

[issue11813] inspect.getattr_static doesn't get module attributes

2011-12-18 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I'd like to commit this patch. What's your real name Trundle, for the NEWS entry? -- assignee: - michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11813

[issue11813] inspect.getattr_static doesn't get module attributes

2011-12-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 56731ccf2e86 by Michael Foord in branch '3.2': Fix inspect.getattr_static to work on modules (again). http://hg.python.org/cpython/rev/56731ccf2e86 -- nosy: +python-dev resolution: - fixed stage: patch

[issue11807] Documentation of add_subparsers lacks information about parametres

2011-12-18 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: Fixed patch. -- Added file: http://bugs.python.org/file24042/11807_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11807 ___

[issue13628] python-gdb.py: patch to improve support of optimized Python

2011-12-18 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- components: +Demos and Tools stage: - patch review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13628 ___

[issue5689] Support xz compression in tarfile module

2011-12-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: There is failure on a XP buildbot. I don't know if it is a sporadic issue or not. http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/3921/steps/test/logs/stdio

[issue13628] python-gdb.py: patch to improve support of optimized Python

2011-12-18 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13628 ___ ___ Python-bugs-list

[issue11178] Running tests inside a package by module name fails

2011-12-18 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: No longer reproducable on CPython. Unfortunately still an issue with unittest2. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13629] _PyParser_TokenNames does not match up with the token.h numbers

2011-12-18 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Is there a reason not to renumber token.h? I thought about that, but at the time I wasn't sure whether or not that would break anything. I went with the current patch because it is lower risk. On the other hand, proper clients of token.h

[issue13628] python-gdb.py: patch to improve support of optimized Python

2011-12-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13628 ___ ___ Python-bugs-list mailing list

[issue11764] inspect.getattr_static code execution w/ class body as non dict

2011-12-18 Thread Michael Foord
Changes by Michael Foord mich...@voidspace.org.uk: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11764 ___

[issue11829] inspect.getattr_static code execution with meta-metaclasses

2011-12-18 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Andreas, is this still needed and valid? -- assignee: - michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11829 ___

[issue13626] Python SSL stack doesn't support DH ciphers

2011-12-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13626 ___ ___ Python-bugs-list mailing list

[issue13627] Python SSL stack doesn't support Elliptic Curve ciphers

2011-12-18 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13627 ___ ___ Python-bugs-list mailing list

[issue13630] IDLE: Find(ed) text is not highlighted while dialog box is open

2011-12-18 Thread Marco Scataglini
New submission from Marco Scataglini atlant...@gmx.com: Found text does not show at all highlighted on some text colors (like green and orange) when using the find button in the replace dialog box when box is open/visible. Then when dialog box is closed it will highlight the found text in

[issue13586] IDLE: Replace selected not working/consistent with find

2011-12-18 Thread Marco Scataglini
Marco Scataglini atlant...@gmx.com added the comment: Thank you Roger find_keep_open.patch works, but now that brings me to issue13630 that I thought was existing, and now this confirms it. -- ___ Python tracker rep...@bugs.python.org

[issue13631] readline fails to parse some forms of .editrc under editline (libedit) emulation on Mac OS X

2011-12-18 Thread Zvezdan Petkovic
New submission from Zvezdan Petkovic zvez...@zope.com: Problem === The changes in r87356 for py3k and r87358 for python-2.7 described in issue 9907 have broken parsing of the initialization file .editrc under editline emulation of readline on Mac OS X. Background == Both

[issue13631] readline fails to parse some forms of .editrc under editline (libedit) emulation on Mac OS X

2011-12-18 Thread Zvezdan Petkovic
Changes by Zvezdan Petkovic zvez...@zope.com: Added file: http://bugs.python.org/file24044/readline-3.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13631 ___

[issue11867] Make test_mailbox deterministic

2011-12-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Probably because I'm a threading/multiprocessing neophyte :) (Though I just learned a bunch about programming with threads recently...) -- ___ Python tracker rep...@bugs.python.org

[issue2134] Add new attribute to TokenInfo to report specific token IDs

2011-12-18 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: The proposed documentation text seems too complicated and language expert speaky to me. We should try to link to standard definitions when possible to reduce the text here. For example, I believe the Operators and Delimiters tokens in the

[issue13387] suggest assertIs(type(obj), cls) for exact type checking

2011-12-18 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13387

[issue13387] suggest assertIs(type(obj), cls) for exact type checking

2011-12-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 88aacd3541ae by Ezio Melotti in branch '2.7': #13387: rephrase unclear sentence. http://hg.python.org/cpython/rev/88aacd3541ae New changeset eccb4795767b by Ezio Melotti in branch '3.2': #13387: rephrase unclear

[issue3932] HTMLParser cannot handle '' and non-ascii characters in attribute names

2011-12-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 978f45013c34 by Ezio Melotti in branch '2.7': #3932: suggest passing unicode to HTMLParser.feed(). http://hg.python.org/cpython/rev/978f45013c34 -- nosy: +python-dev ___

[issue3932] HTMLParser cannot handle '' and non-ascii characters in attribute names

2011-12-18 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3932

[issue13607] Move generator specific sections out of ceval.

2011-12-18 Thread Ron Adam
Changes by Ron Adam ron3...@gmail.com: Removed file: http://bugs.python.org/file23969/f_why.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13607 ___

[issue13632] Update token documentation to reflect actual token types

2011-12-18 Thread Meador Inge
New submission from Meador Inge mead...@gmail.com: The current token documentation is out of date with respect to the currently available token types: Python 3.3.0a0 (default:766136049b44+, Dec 18 2011, 21:54:42) [GCC 4.6.2 20111027 (Red Hat 4.6.2-1)] on linux Type help, copyright, credits or

[issue13576] Handling of broken condcoms in HTMLParser

2011-12-18 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9c60fd12664f by Ezio Melotti in branch '2.7': #13576: add tests about the handling of (possibly broken) condcoms. http://hg.python.org/cpython/rev/9c60fd12664f New changeset 4ddbb756b602 by Ezio Melotti in branch

[issue13576] Handling of broken condcoms in HTMLParser

2011-12-18 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13576

[issue2134] Add new attribute to TokenInfo to report specific token IDs

2011-12-18 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Meador's patch looks good to me. The docs change for 2.7 and 3.2 would be similar, just with text like Specific tokens can be distinguished by checking the ``string`` attribute of OP tokens for a match with the expected character sequence.

[issue13607] Move generator specific sections out of ceval.

2011-12-18 Thread Ron Adam
Ron Adam ron3...@gmail.com added the comment: New diff file. The main difference is I moved the saved why value to the tstate object instead of the frame object as why_exit. I'm not seeing the time savings now for some reason. Maybe the previous increase was a case of coincidental noise.

  1   2   >