[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Raymond Hettinger
New submission from Raymond Hettinger: On little-endian machines, the decoding of an oparg can be sped-up by using a single 16-bit pointer deference. Current decoding: leaq2(%rcx), %rbp movzbl -1(%rbp), %eax movzbl -2(%rbp), %r14d sall$8, %eax addl%eax, %r14d

[issue22341] Python 3 crc32 documentation clarifications

2015-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch LGTM. But while we are here, wouldn't be worth to unify the name of second parameter of binascii and zlib CRC calculation functions? And unify the description of crc_hqx() with other functions. -- ___

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You have forgot to attach a patch. -- ___ Python tracker ___ ___

[issue25822] Add docstrings to fields of urllib.parse results

2015-12-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Results of urlsplit() and urlparse() functions in the urllib.parse module are named tuple with a number of fields. Since property docstrings are writable now (issue24064), we can provide docstrings for all these fields. See also issue24878. --

[issue23416] Make urllib.parse.SplitResult etc arguments optional

2015-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree that it would be nice to have. But this feature has a cost. $ ./python -m timeit -s 'from urllib.parse import ParseResult' -- "ParseResult('http', 'u...@example.com:p...@www.python.org:080', '/doc/', '', 'query=yes', 'frag')" Unpatched: 1.61 usec

[issue21240] Add an abstactmethod directive to the Python ReST domain

2015-12-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d0d8b27a4e6 by Berker Peksag in branch '3.5': Issue #21240: Add an abstractmethod directive to mark abstract methods in the docs more explicitly https://hg.python.org/cpython/rev/1d0d8b27a4e6 New changeset 84468e1aea61 by Berker Peksag in branch

[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2015-12-08 Thread Berker Peksag
Berker Peksag added the comment: We should probably delete the "will be removed in Python 3.7" part from the deprecation message to make porting from Python 2 easier. For example, we will add inspect.getargspec() back in 3.6. See issue 25486. --

[issue24238] Avoid entity expansion attacks in Element Tree

2015-12-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> patch review ___ Python tracker ___

[issue21240] Add an abstactmethod directive to the Python ReST domain

2015-12-08 Thread Berker Peksag
Berker Peksag added the comment: Thanks for reminding me of this issue, Brett. I have also updated numbers and selectors docs to use the new directive. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 -Python 3.4

[issue4709] Mingw-w64 and python on windows x64

2015-12-08 Thread Carl Kleffner
Carl Kleffner added the comment: The situation is not THAT bad. You can install a prerelease of mingwpy with pip: pip install -i https://pypi.anaconda.org/carlkl/simple mingwpy or with conda: (thanks to omnia-md) conda install -c https://conda.anaconda.org/omnia mingwpy It is not hosted

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Added patch. -- keywords: +patch Added file: http://bugs.python.org/file41268/improve_arg_decoding.diff ___ Python tracker

[issue15858] tarfile missing entries due to omitted uid/gid fields

2015-12-08 Thread Tom Lynn
Tom Lynn added the comment: I think issue24514 (fixed in Py2.7.11) is a duplicate of this issue. -- ___ Python tracker ___

[issue25824] 32-bit 2.7.11 installer creates registry keys that are incompatible with the installed python27.dll

2015-12-08 Thread Arnaud Diederen
New submission from Arnaud Diederen: [First of all let me say I'm not all that familiar with Windows, so please let me know if the wording in my analysis below is not clear and/or misleading.] It would appear the 32-bit installer for Python 2.7.11 creates the registry key: ---

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue25824] 32-bit 2.7.11 installer creates registry keys that are incompatible with the installed python27.dll

2015-12-08 Thread Zachary Ware
Zachary Ware added the comment: Eryk is correct, there should be no -32 suffix in 2.7. It's simple enough to fix, just remove the last line Eryk quoted (and purge generated files from PC/). This is a pretty major bug; Benjamin and Steve, how do you want to deal with it? --

[issue25824] 32-bit 2.7.11 installer creates registry keys that are incompatible with the installed python27.dll

2015-12-08 Thread Zachary Ware
Changes by Zachary Ware : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In about a half cases next_instr points to unaligned 16-bit value. Not all platforms allow access to unaligned data. We need other test in additional to PY_LITTLE_ENDIAN to allow this optimization. -- nosy: +mark.dickinson

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Stefan Krah
Stefan Krah added the comment: Usually unaligned accesses are believed to carry a big performance penalty, though rumor has it that for the latest generation of CPUs this is no longer an issue. -- nosy: +skrah ___ Python tracker

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. Doesn't this introduce undefined behaviour? The new code looks like a violation of the strict aliasing rule. (Or do we compile with `-fno-strict-aliasing` or the like?) -- ___ Python tracker

[issue21815] imaplib truncates some untagged responses

2015-12-08 Thread Lita Cho
Lita Cho added the comment: I apologize, I completely forgot. I will do it this week. Thanks for the reminder! -- ___ Python tracker ___

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +tim.peters ___ Python tracker ___ ___

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file41269/improve_arg_decoding2.diff ___ Python tracker ___

[issue25825] AIX shared library extension modules installation broken

2015-12-08 Thread David Edelsohn
New submission from David Edelsohn: AIX requires helper scripts to build Python shared extension modules. The definitions and Makefile installation rules have bitrotted. Makefile.pre.in: @if [ -s Programs/python.exp -a \ except python.exp is created in Modules/python.exp, not

[issue25825] AIX shared library extension modules installation broken

2015-12-08 Thread David Edelsohn
Changes by David Edelsohn : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue25824] 32-bit 2.7.11 installer creates registry keys that are incompatible with the installed python27.dll

2015-12-08 Thread Steve Dower
Steve Dower added the comment: Needs a new release - up to Ben whether it's .12 or just a new .11. I can do the build today or this weekend, but not in between. -- ___ Python tracker

[issue25826] imaplib can't process lines after starttls

2015-12-08 Thread David Wahlund
New submission from David Wahlund: File "C:\Python34\lib\imaplib.py", line 536, in login typ, dat = self._simple_command('LOGIN', user, self._quote(password)) File "C:\Python34\lib\imaplib.py", line 1141, in _simple_command return self._command_complete(name, self._command(name,

[issue25826] imaplib can't process lines after starttls

2015-12-08 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> resolved type: crash -> behavior ___ Python tracker ___

[issue21815] imaplib truncates some untagged responses

2015-12-08 Thread Maciej Szulik
Maciej Szulik added the comment: Perfect, thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13940] imaplib: Mailbox names are not quoted

2015-12-08 Thread Maciej Szulik
Maciej Szulik added the comment: siemer thx for the comments in the review. I'll try to address them by the end of this week. -- ___ Python tracker ___

[issue25826] imaplib can't process lines after starttls

2015-12-08 Thread David Wahlund
David Wahlund added the comment: Sorry, my bad... Using ImapClient that changed the socket to str. -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue23200] Deprecate the zlib decompressor’s flush() method

2015-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After reading zlib manual it looks to me that your are right, flush() has no other effect except a little less memory consumption. This can be not important in the context of Python. Hope Nadeem will confirm this. -- assignee: docs@python ->

[issue25827] Support ICC in configure

2015-12-08 Thread Zachary Ware
New submission from Zachary Ware: Attached is a patch that adds support for ICC to configure, making it easier to build with ICC on Unix and adjusting arguments to better fit ICC. - Adds '--with-icc' argument to configure, which sets 'CC=icc' and 'CXX=icpc' - Adds support for ICC PGO -

[issue25807] test_multiprocessing_fork.test_mymanager fails and hangs

2015-12-08 Thread Toby Tobkin
Toby Tobkin added the comment: Do you have more information on the environment you're running tests on? I did not reproduce the crash by running the tests on a stock Ubuntu 14 64-bit. -- nosy: +tobytobkin ___ Python tracker

[issue24931] _asdict breaks when inheriting from a namedtuple

2015-12-08 Thread Nicholas Chammas
Nicholas Chammas added the comment: I know. I came across this issue after upgrading to the 3.5.1 release and seeing that vars(namedtuple) didn't work anymore. I looked through the changelog [0] for an explanation of why that might be and couldn't find one, so I posted that question on Stack

[issue24421] Race condition compiling Modules/_math.c

2015-12-08 Thread Martin Panter
Martin Panter added the comment: Here is an alternative patch to compile _math.c once from the main makefile, before the extension modules are built. I have only tested this on Linux, building in the source directory, and from a separate directory. -- versions: -Python 3.4 Added

[issue22341] Python 3 crc32 documentation clarifications

2015-12-08 Thread Martin Panter
Martin Panter added the comment: In crc-sign.v5.patch I have changed the binascii.crc_hqx() and crc32() documentation to use “value”, matching the zlib documentation. Is that what you had in mind? -- stage: -> patch review versions: +Python 3.6 Added file:

[issue25824] 32-bit 2.7.11 installer creates registry keys that are incompatible with the installed python27.dll

2015-12-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't really have the time to cut a new release in the next few weeks. On Tue, Dec 8, 2015, at 10:42, Steve Dower wrote: > > Steve Dower added the comment: > > Needs a new release - up to Ben whether it's .12 or just a new .11. I can > do the build today

[issue13317] building with 2to3 generates wrong import paths because build_ext is run after build_py

2015-12-08 Thread Swati Jaiswal
Swati Jaiswal added the comment: are you working on it @eric? -- nosy: +curioswati ___ Python tracker ___ ___

[issue18597] On Windows sys.stdin.readline() doesn't handle Ctrl-C properly

2015-12-08 Thread Emanuel Barry
Changes by Emanuel Barry : -- versions: +Python 3.3, Python 3.4, Python 3.6 ___ Python tracker ___

[issue22341] Python 3 crc32 documentation clarifications

2015-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, thank you Martin. -- assignee: docs@python -> martin.panter stage: patch review -> commit review ___ Python tracker

[issue18597] On Windows sys.stdin.readline() doesn't handle Ctrl-C properly

2015-12-08 Thread Troy Hirni
Troy Hirni added the comment: I'm also experiencing this on Windows 8 and 10. In the bare example below, I can Ctrl-C to exit the loop. When I press Enter again, the exception at the bottom appears. try: while True: input("? ") except: pass >>> >>> try: ... while True: ...

[issue25820] Clean up run_gdb() calls

2015-12-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6902b2024d25 by Martin Panter in branch '3.5': Issue #25820: Remove unused assignment and redundant GDB CLI arguments https://hg.python.org/cpython/rev/6902b2024d25 New changeset 2e5fdb8a8874 by Martin Panter in branch 'default': Issue #25820:

[issue25825] AIX shared library extension modules installation broken

2015-12-08 Thread Martin Panter
Martin Panter added the comment: It looks like the Programs/python.exp change was done accidentally in revision 88a532a31eb3 (Issue 18093), so we should be safe reverting the relevant lines back to Modules/python.exp. The configure script currently sets

[issue25820] Clean up run_gdb() calls

2015-12-08 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue24931] _asdict breaks when inheriting from a namedtuple

2015-12-08 Thread Larry Hastings
Larry Hastings added the comment: You're a little late; 3.5.1 was released two days ago. -- ___ Python tracker ___

[issue24931] _asdict breaks when inheriting from a namedtuple

2015-12-08 Thread Nicholas Chammas
Nicholas Chammas added the comment: Should this change be called out in the 3.5.1 release docs? It makes some code that works on 3.5.0 break in 3.5.1. See: http://stackoverflow.com/q/34166469/877069 -- nosy: +Nicholas Chammas ___ Python tracker

[issue15858] tarfile missing entries due to omitted uid/gid fields

2015-12-08 Thread Martin Panter
Martin Panter added the comment: Yes I think you are right. With Python 3.5.0: $ python3 -c 'import tarfile; print(tarfile.open("bad.tar").getnames())' ['foo', 'foo/a'] $ python3 -m tarfile --list bad.tar foo/ foo/a The proposed fix here is slightly different: truncate from the first space,