[issue18008] python33-3.3.2 Parser/pgen: Permission denied

2013-05-18 Thread Georg Brandl
Georg Brandl added the comment: Indeed, the new "hg touch" facility should have been integrated in the release script. I've done that now, in the future all necessary files should have the correct timestamps in the release tarballs. -- resolution: works for me -> fixed status: open ->

[issue18003] New lzma crazy slow with line-oriented reading.

2013-05-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy, would you like to take this one? -- assignee: -> serhiy.storchaka stage: -> needs patch versions: +Python 3.4 -Python 3.3 ___ Python tracker __

[issue18003] New lzma crazy slow with line-oriented reading.

2013-05-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: > So, unless someone thinks that a pure C extension is the > right technical direction, lzma in 3.4 is probably as fast > as it's ever going to be. I would support the inclusion of a C extension. Reasonable performance is a prerequisite for broader adoption

[issue734176] Make Tkinter.py's nametowidget work with cloned menu widgets

2013-05-18 Thread Mark Lawrence
Mark Lawrence added the comment: Ten years on does anybody actually care about this? If you do the patch will need reworking as in Python 3 the code exists in lib/tkinter/__init__.py. -- ___ Python tracker _

[issue15392] Create a unittest framework for IDLE

2013-05-18 Thread R. David Murray
R. David Murray added the comment: I just did an hg pull/hg up in my 3.4 (default) checkout on linux: rdmurray@hey:~/python/p34>patch -p1 ___ ___ Python-bugs-list mailing list Uns

[issue15392] Create a unittest framework for IDLE

2013-05-18 Thread Todd Rovito
Todd Rovito added the comment: I still have the same problem with the patch it will not apply for me on Python 3.4. Based on Ezio's suggestion I used hg verify where I got three warnings unrelated to IDLE, but just to make sure I did a brand new checkout. Even after a new checkout the patch

[issue18008] python33-3.3.2 Parser/pgen: Permission denied

2013-05-18 Thread Ned Deily
Ned Deily added the comment: I don't know of an intention to break use of other makes but I don't know of any specific effort to test with various makes. As you may have noticed, there were some significant changes to the Makefile rules for pgen-related targets by changeset 52597f888e7a which

[issue17902] Document that _elementtree C API cannot use custom TreeBuilder for iterparse or IncrementalParser

2013-05-18 Thread Eli Bendersky
Eli Bendersky added the comment: Aaron, could you please sign the PSF CLA (http://www.python.org/psf/contrib/contrib-form/) - this will make it accepting patches from you easier. Other than that, I agree it's a legit patch. The alternative would be to fix _elementtree to actually allow arbitr

[issue17937] Collect garbage harder at shutdown

2013-05-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue17937] Collect garbage harder at shutdown

2013-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5abe85aefe29 by Antoine Pitrou in branch 'default': Issue #17937: Try harder to collect cyclic garbage at shutdown. http://hg.python.org/cpython/rev/5abe85aefe29 -- nosy: +python-dev ___ Python tracker <

[issue17988] ElementTree.Element != ElementTree._ElementInterface

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed with Eli. We shouldn't remove names in bugfix versions. -- nosy: +pitrou ___ Python tracker ___ _

[issue17988] ElementTree.Element != ElementTree._ElementInterface

2013-05-18 Thread Eli Bendersky
Eli Bendersky added the comment: > +1 for deletion of them (even in 3.3.3). Hmm, I don't think I agree. If someone relies on this thing for some obscure reason, breaking when the switch to 3.4 is made is still less abrasive than a break in a maintenance version. Since this isn't strictly a bug

[issue17901] _elementtree.TreeBuilder raises IndexError on end if constructed with element_factory=None

2013-05-18 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue17901] _elementtree.TreeBuilder raises IndexError on end if constructed with element_factory=None

2013-05-18 Thread Eli Bendersky
Eli Bendersky added the comment: I committed a fix with a simplified test. Thanks for the contribution, Aaron. Also, to get your patches committed directly you need to sign the Python contributor agreement. -- ___ Python tracker

[issue17901] _elementtree.TreeBuilder raises IndexError on end if constructed with element_factory=None

2013-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset c430bea30457 by Eli Bendersky in branch '3.3': Issue #17901: fix TreeBuilder construction for an explicit element_factory=None http://hg.python.org/cpython/rev/c430bea30457 New changeset e79df5d1f680 by Eli Bendersky in branch 'default': Issue #1790

[issue18008] python33-3.3.2 Parser/pgen: Permission denied

2013-05-18 Thread Marcus von Appen
Marcus von Appen added the comment: This is a FreeBSD-specific problem with the Python 3.3 port. Using pmake (BSD's make implementation) leads to random errors on either generating pgen or executing pgen. This seems to happen since Python 3.3.1 randomly and is quite hard to reproduce. Switchi

[issue17812] Quadratic complexity in b32encode

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Then I would recommend committing the simple patch in 3.3 and the more optimized one in 3.4. Both look fine to me, althgugh I haven't really examined the padding stuff. -- ___ Python tracker

[issue17812] Quadratic complexity in b32encode

2013-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think 3.3 needs a fix. The quadratic complexity is a bug. -- ___ Python tracker ___ ___ Python-b

[issue18003] New lzma crazy slow with line-oriented reading.

2013-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Try `f = io.BufferedReader(f)`. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-

[issue17812] Quadratic complexity in b32encode

2013-05-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue18003] New lzma crazy slow with line-oriented reading.

2013-05-18 Thread Michael Fox
Michael Fox added the comment: I looked into it a little and it looks like pyliblzma is a pure C extension whereas new lzma library wraps liblzma but the rest is python. In particular this happens for every line: if size < 0: end = self._buffer.find(b"\n", self._buffer_offset

[issue17812] Quadratic complexity in b32encode

2013-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file29972/base32_optimize.patch ___ Python tracker ___ ___ Python-bugs-list

[issue17812] Quadratic complexity in b32encode

2013-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file29971/base32_fix.patch ___ Python tracker ___ ___ Python-bugs-list mail

[issue17812] Quadratic complexity in b32encode

2013-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file30309/base32_optimize_2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue17812] Quadratic complexity in b32encode

2013-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Antoine. Here are updated patches. -- Added file: http://bugs.python.org/file30308/base32_fix_2.patch ___ Python tracker ___ ___

[issue18003] New lzma crazy slow with line-oriented reading.

2013-05-18 Thread Michael Fox
Michael Fox added the comment: 3.4 is much better but still 4x slower than 2.7 m@air:~/q/topaz/parse_datalog$ time python2.7 lzmaperf.py 102368 real0m0.053s user0m0.052s sys 0m0.000s m@air:~/q/topaz/parse_datalog$ time ~/tmp/cpython-23836f17e4a2/bin/python3.4 lzmaperf.py 102368 rea

[issue18008] python33-3.3.2 Parser/pgen: Permission denied

2013-05-18 Thread Ned Deily
Ned Deily added the comment: You did not provide enough information to determine exactly what went wrong in your build but you are likely running in an environment with non-standard permissions (umask, root, ACLs, etc.). Note that the failure occurs when the main Makefile rule to build Includ

[issue17975] libpython3.so conflicts between $VERSIONs

2013-05-18 Thread Patrick Welche
Patrick Welche added the comment: To quote the README: Installing multiple versions ... For example, if you want to install Python 2.6, 2.7 and 3.4 with 2.7 being the primary version, you would execute "make install" in your 2.7 build directory and "make altinstall"

[issue11995] test_pydoc loads all Python modules

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- nosy: +pitrou versions: +Python 3.4 Added file: http://bugs.python.org/file30307/test_pydoc_imports.patch ___ Python tracker ___

[issue17975] libpython3.so conflicts between $VERSIONs

2013-05-18 Thread Patrick Welche
Patrick Welche added the comment: No, I don't think you should close this, as you haven't explained what it is that you won't do. I think that a sensible plan is to introduce a configure flag whose effect is to not install the files which cause the conflict. You set the default to always inst

[issue18010] pydoc search chokes on import errors

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file30306/pydoc_search_onerror.patch ___ Python tracker ___ _

[issue17812] Quadratic complexity in b32encode

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Using a bytearray, rather than accumulating into a list, may reduce memory consumption. -- ___ Python tracker ___ _

[issue18010] pydoc search chokes on import errors

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not exactly. issue10060 is about a crash when loading an extension module, not an exception being raised and propagated through pydoc. -- ___ Python tracker __

[issue18003] New lzma crazy slow with line-oriented reading.

2013-05-18 Thread Nadeem Vawda
Nadeem Vawda added the comment: Have you tried running the benchmark against the default (3.4) branch? There was some significant optimization work done in issue 16034, but the changes were not backported to 3.3. -- ___ Python tracker

[issue5557] Byte-code compilation uses excessive memory

2013-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue16995] Add Base32 support for RFC4648 "Extended Hex" alphabet (patch attached)

2013-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue18010] pydoc search chokes on import errors

2013-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Isn't issue10060 related? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list m

[issue17844] Add link to alternatives for bytes-to-bytes codecs

2013-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Any opinions? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17812] Quadratic complexity in b32encode

2013-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Note that without patches both tests run many minutes. base32_fix.patch causes little (5%) performance degradation for small data (< KB), this is perhaps the cause for the use of string concatenation. However base32_optimize.patch speeds up about 3x for such

[issue17812] Quadratic complexity in b32encode

2013-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Note that without patches both tests run many minutes. base32_fix.patch causes little (5%) performance degradation for small data (< KB), this is perhaps the cause for the use of string concatenation. However base32_optimize.patch speeds up about 3x for such

[issue17839] base64 module should use memoryview

2013-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Nick, what you say about the patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue18009] os.write.__doc__ is misleading

2013-05-18 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18010] pydoc search chokes on import errors

2013-05-18 Thread Antoine Pitrou
New submission from Antoine Pitrou: After installing Django, I get the following error in test_pydoc: == FAIL: test_url_requests (test.test_pydoc.PydocUrlHandlerTest) -

[issue18009] os.write.__doc__ is misleading

2013-05-18 Thread Shai Berger
New submission from Shai Berger: At least on posix systems, os.write says it takes a string, but in fact it barfs on strings -- it needs bytes. $ python Python 3.3.1 (default, May 6 2013, 16:18:33) [GCC 4.7.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>>

[issue17988] ElementTree.Element != ElementTree._ElementInterface

2013-05-18 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: +1 for deletion of them (even in 3.3.3). -- ___ Python tracker ___ ___ Python-b

[issue17970] Mutlithread XML parsing cause segfault

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: I agree with Amaury, multi-threaded parsing should definitely not crash. Adding a lock should be quite easy. I wonder what would be the effect on performance, if there are lots of backs and forths between expat and Python. -- nosy: +pitrou ___

[issue17984] io and _pyio modules require the _io module

2013-05-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> needs patch type: behavior -> enhancement versions: -Python 2.7, Python 3.3 ___ Python tracker ___

[issue17975] libpython3.so conflicts between $VERSIONs

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: (on the bug Arfrever linked to, sorry) -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue17975] libpython3.so conflicts between $VERSIONs

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: According to Martin on the bug linked to: « Having the soname be libpython3 is the whole point of the library, it serves no other reason. It is intentional that there are file collisions with that file, and either the local admin or the distributor must make

[issue17998] internal error in regular expression engine

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Perhaps it would be safer to revert the original commit in bugfix branches, and just commit the better patch in default? -- nosy: +pitrou ___ Python tracker __

[issue17953] sys.modules cannot be reassigned

2013-05-18 Thread Yogesh Chaudhari
Yogesh Chaudhari added the comment: Documentation added for sys.modules -- keywords: +patch nosy: +Yogesh.Chaudhari Added file: http://bugs.python.org/file30305/issue17953.patch ___ Python tracker _

[issue3489] add rotate{left,right} methods to bytearray

2013-05-18 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18002] AMD64 Windows7 SP1 3.x buildbot: compilation of _ssl module fails, the build fails

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the heads-up. Closing. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It's called "internationalized domain name for APPLICATIONS". ;) It's > up to the application to interpret the ASCII text as IDNA encoded > FQDNs. As far as I know DNS, SSL's CNAME and OS interfaces etc. always > use ASCII labels. It's an elegant solution. Ju

[issue17980] CVE-2013-2099 ssl.match_hostname() trips over crafted wildcard names

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, this should be fixed now. Thanks a lot for reporting! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue17980] CVE-2013-2099 ssl.match_hostname() trips over crafted wildcard names

2013-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset b9b521efeba3 by Antoine Pitrou in branch '3.2': Issue #17980: Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099). http://hg.python.org/cpython/rev/b9b521efeba3 New changeset c6276

[issue18008] python33-3.3.2 Parser/pgen: Permission denied

2013-05-18 Thread William Moreno
New submission from William Moreno: cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -pthread -pthread Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Objects/obmalloc

[issue18007] CookieJar expects request objects with origin_req_host attribute instead of method

2013-05-18 Thread Simon Nicolussi
New submission from Simon Nicolussi: A fix for a DeprecationWarning (#17678) had the unfortunate side effect of changing the expected interface of the request object higher up in the call stack. For example, the documentation for CookieJar.add_cookie_header(request) states that the request ob

[issue17988] ElementTree.Element != ElementTree._ElementInterface

2013-05-18 Thread Eli Bendersky
Eli Bendersky added the comment: These "compatibility" names are likely to be remnants from the out-of-tree xml etree implementation before it made it into the stdlib. I think they can simply be removed in 3.4, as they're not documented anywhere. -- ___

[issue17989] ElementTree.Element broken attribute setting

2013-05-18 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue17989] ElementTree.Element broken attribute setting

2013-05-18 Thread Eli Bendersky
Eli Bendersky added the comment: Fixed. Thanks for the report! Python 3.4.0a0 (default:1b760f926846+9682241dc8fc+, May 18 2013, 07:52:49) [GCC 4.6.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import xml.etree.ElementTree as ET; j = ET.Element('j') >>> j

[issue17989] ElementTree.Element broken attribute setting

2013-05-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9682241dc8fc by Eli Bendersky in branch '3.3': Issue #17989: element_setattro returned incorrect error value. http://hg.python.org/cpython/rev/9682241dc8fc New changeset b111ae4f83ef by Eli Bendersky in branch 'default': Issue #17989: element_setatt

[issue18002] AMD64 Windows7 SP1 3.x buildbot: compilation of _ssl module fails, the build fails

2013-05-18 Thread Jeremy Kloth
Jeremy Kloth added the comment: The build of OpenSSL was failing due to an incomplete external check-in of OpenSSL (missing the cached assembler files). Martin has since updated the external and I have refreshed the OpenSSL exports on the buildbot. It is no longer failing to compile, but othe

[issue17989] ElementTree.Element broken attribute setting

2013-05-18 Thread Eli Bendersky
Changes by Eli Bendersky : -- stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue17989] ElementTree.Element broken attribute setting

2013-05-18 Thread Eli Bendersky
Eli Bendersky added the comment: The problem is that element_setattro is returning a wrong value for error - NULL instead of -1. So the exception is set and is triggered on the next line instead. Will fix for 3.3 and default branches -- ___ Python t

[issue17980] CVE-2013-2099 ssl.match_hostname() trips over crafted wildcard names

2013-05-18 Thread Christian Heimes
Christian Heimes added the comment: The IDNA RFC contains additional rules for wildcard matching ... very well hidden indead! http://tools.ietf.org/html/rfc6125#section-6.4.3 -- ___ Python tracker ___

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2013-05-18 Thread Christian Heimes
Christian Heimes added the comment: It's called "internationalized domain name for APPLICATIONS". ;) It's up to the application to interpret the ASCII text as IDNA encoded FQDNs. As far as I know DNS, SSL's CNAME and OS interfaces etc. always use ASCII labels. It's an elegant solution. Just th

[issue15758] FileIO.readall() has worst case O(n^2) complexity

2013-05-18 Thread Richard Oudkerk
Changes by Richard Oudkerk : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue17989] ElementTree.Element broken attribute setting

2013-05-18 Thread Eli Bendersky
Eli Bendersky added the comment: Yes, overwriting the Python classes with C classes is not an error, but the original issue is legit. The error should be more immediately reported. -- ___ Python tracker __

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, I don't this is a bug: match_hostname() expects str data, and therefore IDNA-decoded domain names: >>> b"xn--gtter-jua.example.de".decode("idna") 'götter.example.de' Doing the matching on the decoded domain name should be safe. Then it very much depe

[issue17989] ElementTree.Element broken attribute setting

2013-05-18 Thread Eli Bendersky
Changes by Eli Bendersky : -- assignee: -> eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue18006] Set thread name in linux kernel

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'd also point out that changing the kernel thread name *by default* would be pretty much a large regression. -- nosy: +pitrou ___ Python tracker _

[issue18004] test_list.test_overflow crashes Win64

2013-05-18 Thread Armin Rigo
Changes by Armin Rigo : -- nosy: -arigo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue18006] Set thread name in linux kernel

2013-05-18 Thread R. David Murray
R. David Murray added the comment: This is effectively a duplicate of issue 5672. Are you interested in carrying through the process outlined there by Martin? Otherwise we should close this issue as well until someone does propose to do so. -- nosy: +r.david.murray versions: -Python

[issue17807] Generator cleanup without tp_del

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Obsoleted by PEP 442. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___

[issue18004] test_list.test_overflow crashes Win64

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note: "test_overflow" can be found in Python2.7/Lib/test/test_list.py -- ___ Python tracker ___ ___

[issue18004] test_list.test_overflow crashes Win64

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: I take it you have more than 16GB of RAM? What happens if you replace "sys.maxint" with "sys.maxsize" in test_overflow? -- nosy: +arigo, pitrou ___ Python tracker _

[issue17975] libpython3.so conflicts between $VERSIONs

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Did you use "make altinstall"? -- nosy: +barry, dmalcolm, pitrou ___ Python tracker ___ ___ Python-b

[issue18006] Set thread name in linux kernel

2013-05-18 Thread Марк Коренберг
Changes by Марк Коренберг : -- title: Set thread nema in linux kernel -> Set thread name in linux kernel ___ Python tracker ___ ___ Py

[issue17931] PyLong_FromPid() is not correctly defined on Windows 64-bit

2013-05-18 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue18006] Set thread nema in linux kernel

2013-05-18 Thread Марк Коренберг
New submission from Марк Коренберг: In linux (Since 2.6.9) we can use syscall prctl(PR_SET_NAME, "Some thread name") to set thread name to the kernel. This thread is seen under this name in some process tool (like top, ps, pstree (have bug reported connected with this) and others). It will

[issue18000] _md5 should be built if _ssl cannot be built

2013-05-18 Thread Volker Braun
Volker Braun added the comment: This has been fixed for Python-3.3 in #14693. Attached is a straightforward Python-2.7.5 backport of the patch. -- keywords: +patch nosy: +vbraun Added file: http://bugs.python.org/file30304/hashlibfallbacks.patch ___

[issue18005] faster modular exponentiation in some cases

2013-05-18 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry, I'm rejecting this. This sort of micro-optimization for a little-used operation doesn't belong in Python. For applications that need it, use gmpy2. -- resolution: -> rejected status: open -> closed ___ Pyth

[issue18005] faster modular exponentiation in some cases

2013-05-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +eric.smith, lemburg, mark.dickinson, rhettinger, serhiy.storchaka, stutzbach versions: +Python 3.4 -Python 2.7 ___ Python tracker ___ ___

[issue18005] faster modular exponentiation in some cases

2013-05-18 Thread Pernici Mario
New submission from Pernici Mario: A trivial optimization can be made in ``pow(a, b, c)`` if ``b`` is even and ``c - a < a`` ``` In [1]: c = (1 << 100) + 1 In [2]: a = c - 1234567 In [3]: b = 2 In [4]: %timeit pow(a, b, c) 1 loops, best of 3: 3.03 s per loop In [5]: %timeit pow(c - a if

[issue17975] libpython3.so conflicts between $VERSIONs

2013-05-18 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: See issue #11347. (Python ebuilds in Gentoo manually delete libpython3.so.) -- nosy: +Arfrever ___ Python tracker ___ _

[issue3489] add rotate{left,right} methods to bytearray

2013-05-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think you rather need the inplace shift operation. Or even the move the tail of buffer to the start without filling the remaining. I.e. something like buffer[:size] = buffer[-size:] but without creating immediate bytes object. Now it may be written as:

[issue17975] libpython3.so conflicts between $VERSIONs

2013-05-18 Thread Patrick Welche
Patrick Welche added the comment: I see that this was introduced in http://www.python.org/dev/peps/pep-0384/ Would a configure option to make it easy not to install the conflicting file be acceptable? -- ___ Python tracker

[issue3489] add rotate{left,right} methods to bytearray

2013-05-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think we can close. issue17100 would have been more useful actually. -- ___ Python tracker ___ ___

[issue17973] '+=' on a list inside tuple both succeeds and raises an exception

2013-05-18 Thread Mark Dickinson
Mark Dickinson added the comment: @andy.chugunov: tuples are immutable in the sense that you can't put a new object into a tuple or remove objects from a tuple. That doesn't mean that tuples can't contain mutable objects, or prevent you from mutating the objects inside a tuple. So the append

[issue17998] internal error in regular expression engine

2013-05-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17973] '+=' on a list inside tuple both succeeds and raises an exception

2013-05-18 Thread Mark Dickinson
Mark Dickinson added the comment: Another 'fix' would be to allow assignment to a tuple item in the case that the item being assigned is the same (in the sense of 'is') as the item already in the tuple. Then the '+=' operation would succeed, but the tuple would remain immutable. -- n

[issue17989] ElementTree.Element broken attribute setting

2013-05-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Removed file: http://bugs.python.org/file30301/ElementTree.patch ___ Python tracker ___ ___ P

[issue17989] ElementTree.Element broken attribute setting

2013-05-18 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Replacement of pure-Python classes by C-accelerated classes is intentional. http://docs.python.org/3.3/library/xml.etree.elementtree.html "Changed in version 3.3: This module will use a fast implementation whenever available. The xml.etree.

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2013-05-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri