[issue21619] Cleaning up a subprocess with a broken pipe
Martin Panter added the comment: Sure, new version is fine by me -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21619 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21619] Cleaning up a subprocess with a broken pipe
Serhiy Storchaka added the comment: I think we should add __enter__ for consistency. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21619 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11276] 2to3: imports fixer doesn't update references to modules specified without attributes
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa type: - behavior versions: +Python 3.5 -Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11276 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21619] Cleaning up a subprocess with a broken pipe
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file38386/overflow-pipe-test-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21619 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21619] Cleaning up a subprocess with a broken pipe
Roundup Robot added the comment: New changeset 4ea40dc3d26d by Serhiy Storchaka in branch '3.4': Issue #21619: Cleaned up test_broken_pipe_cleanup. https://hg.python.org/cpython/rev/4ea40dc3d26d New changeset 41ce95a5b2d8 by Serhiy Storchaka in branch 'default': Issue #21619: Cleaned up test_broken_pipe_cleanup. https://hg.python.org/cpython/rev/41ce95a5b2d8 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21619 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9191] winreg.c:Reg2Py() may leak memory (in unusual circumstances)
Claudiu Popa added the comment: This was fixed a couple of months ago: https://hg.python.org/cpython/rev/07968254be96. Also, malloc was changed to PyMem_New a couple of weeks ago: https://hg.python.org/cpython/rev/036a2aceae93 -- nosy: +Claudiu.Popa resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9191 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7877] Iterators over _winreg EnumKey and EnumValue results
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7877 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23581] unittest.mock.MagicMock doesn't support matmul (@) operator
Håkan Lövdahl added the comment: Here is a suggestion for a patch. It adds the missing matmul and has a small test for it. -- keywords: +patch nosy: +Håkan Lövdahl Added file: http://bugs.python.org/file38368/issue23581.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23581 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23600] tizinfo.fromutc changed for tzinfo wih StdOffset=0, DstOffset=1
Peter J C Law added the comment: Hi, Sorry for the overkill demo. I've attached a much shorter version, the key portion of which seems to be that, for the case of UK summer time the timezone, the tzinfo's `dst()` and `utcoffset()` methods return the same value. This results in the delta between the two (which my understanding suggests equates to the non-dst offset of the timezone) is zero (which is right). The python implementations (both in datetime.py and in the docs) cope with this by checking the DST difference and applying this after the timezone adjustments have happened. From a look through the CPython implementation, it looks to me like it's checking the wrong value before applying the DST difference. Specifically, on line 3033 in Modules/_datetimemodule.c, it checks `delta` before applying the DST. For the majority of timezones this happens to work since the standard offset is not 0 and it ends up doing the addition anyway (and no functionality is lost if the DST value is 0). Having tested changing the checked value to being dst rather than delta this does appear to fix this and all the existing tests still pass. Peter -- Added file: http://bugs.python.org/file38372/time_issues.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23600 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23568] unittest.mock.MagicMock doesn't support __rdivmod__
Håkan Lövdahl added the comment: I wrote a small patch and a test for it. Tested it on Python 3.5 and it worked. -- keywords: +patch nosy: +Håkan Lövdahl Added file: http://bugs.python.org/file38373/issue23568.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23568 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23601] use small object allocator for dict key storage
Serhiy Storchaka added the comment: See also issue16465. -- nosy: +pitrou, rhettinger, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23601 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23103] Reduce memory usage for ipaddress object instances
Serhiy Storchaka added the comment: Nick, what is your thoughts about the patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23103 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23601] use small object allocator for dict key storage
Antoine Pitrou added the comment: Interesting. I can reproduce the speedup on 64-bit Linux (Ubuntu 14.10). -- stage: - patch review type: - performance ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23601 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23601] use small object allocator for dict key storage
Serhiy Storchaka added the comment: $ ./python -m timeit dict(a=5, b=2) Unpatched: 10 loops, best of 3: 2.5 usec per loop issue16465 patch: 100 loops, best of 3: 1.87 usec per loop issue23601 patch: 100 loops, best of 3: 1.98 usec per loop -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23601 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23579] Amazon.com links
Roundup Robot added the comment: New changeset 5903ab233a1d by Benjamin Peterson in branch '3.4': replace Amazon links in the documentation (closes #23579) https://hg.python.org/cpython/rev/5903ab233a1d New changeset 4ad1ea911fd0 by Benjamin Peterson in branch '2.7': replace Amazon links in the documentation (closes #23579) https://hg.python.org/cpython/rev/4ad1ea911fd0 -- nosy: +python-dev resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23579 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21800] Implement RFC 6855 (IMAP Support for UTF-8) in imaplib.
Changes by Håkan Lövdahl hlovd...@gmail.com: -- nosy: +Håkan Lövdahl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21800 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21779] test_multiprocessing_spawn fails when ran with -Werror
Changes by Davin Potts pyt...@discontinuity.net: -- nosy: +davin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21779 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7352] pythonx.y-config --ldflags out of /usr and missing -Linstall_lib_dir
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: -terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7352 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23551] IDLE to provide menu options for using PIP
Terry J. Reedy added the comment: PS. I am fine with your initial plan. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23551 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13397] Option for XMLRPC clients to automatically transform Fault exceptions into standard exceptions
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: -Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13397 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7352] pythonx.y-config --ldflags out of /usr and missing -Linstall_lib_dir
Matthias Klose added the comment: this seems to work for me: $ python-config --ldflags -L/usr/lib/python2.7/config-x86_64-linux-gnu -L/usr/lib -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions the patch is incomplete, no patch for the shell script is provided. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7352 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock
Serhiy Storchaka added the comment: May be the code would cleaner when convert the for loop to the while loop and wrap in try/except only next()? -- Added file: http://bugs.python.org/file38377/issue_23051_4-3.4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23551] IDLE to provide menu options for using PIP
Terry J. Reedy added the comment: On Windows, I think we should consider directly supportting http://www.lfd.uci.edu/~gohlke/pythonlibs/ Unofficial Windows Binaries for Python Extension Packages When possible, this has 2.6, 2.7, 3.3, and 3.4 binaries for 32 and 64 bits. I and others use this site, but beginners would not know to use it. Since last summer, Christoph has switched nearly all files from .zip to pip-installable .whl. The site says to download and point pip to the local downloaded copy, but I presume pip can be directly pointed to the site. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23551 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23103] Reduce memory usage for ipaddress object instances
Roundup Robot added the comment: New changeset 88a5c1698ca4 by Serhiy Storchaka in branch 'default': Issue #23103: Reduced the memory consumption of IPv4Address and IPv6Address. https://hg.python.org/cpython/rev/88a5c1698ca4 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23103 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23551] IDLE to provide menu options for using PIP
Mark Lawrence added the comment: I really do think we should support Christoph's site. It has saved me many a headache over the years. For beginners it's also got to be preferable to seeing the rather cryptic Unable to find vcvarsall.bat message, plus how many of them want to install VS? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23551 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21992] New AST node Else() should be introduced
Mark Shannon added the comment: I would say yes, it is too late. Any change to the AST is a breaking change. The current AST is full of missing line numbers, incorrect column offsets and other inconsistencies. To fix them all would be a major undertaking with no obvious benefit to the core interpreter. If you are interested in implementing a parser with proper location information, I would suggest discussing it on the code-quality mailing list: https://mail.python.org/mailman/listinfo/code-quality -- nosy: +Mark.Shannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21992 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23279] test_site/test_startup_imports fails when mpl_toolkit or logilab based modules installed
Mark Lawrence added the comment: I've added names from the nosy list for #20986 as it appears to be similar. -- nosy: +BreamoreBoy, brett.cannon, christian.heimes, ncoghlan, vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23279 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17570] Improve devguide Windows instructions
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +steve.dower ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17570 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23103] Reduce memory usage for ipaddress object instances
Nick Coghlan added the comment: +1 from me, although since we're committing to preserving the weakref support for compatibility reasons now, I'm wondering if we should also add a test for it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23103 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23602] Implement __format__ for Fraction
New submission from Tuomas Suutari: Since Decimal supports __format__, it would be nice that Fraction did too. -- components: Library (Lib) messages: 237460 nosy: tuomas.suutari priority: normal severity: normal status: open title: Implement __format__ for Fraction versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23602 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23602] Implement __format__ for Fraction
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +eric.smith, ezio.melotti, mark.dickinson, rhettinger, skrah stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23602 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23603] MinGW-64
New submission from Ashish Sadanandan: I'm trying to embed Python 3.4.3 (x64) in a program compiled using MinGW-W64 g++ 4.9.2 (output from g++ -v attached) and Boost.Python 1.57.0. A simple example kept crashing at runtime and I managed to track it down to this testcase (which is not using Boost.Python but demonstrates why a check in Boost is failing). `python34.zip` in the `Py_SetPath()` call is a zip archive containing the entire contents of the `Lib` directory in my Python3.4 installation. #include Python.h #include iostream int main() { Py_SetPath(Lpython34.zip); Py_Initialize(); PyObject *s = PyUnicode_FromString(Hello World); std::cout PyUnicode_Check(s) std::endl; std::cout PyUnicode_CheckExact(s) std::endl; std::cout PyUnicode_AsUTF8(s) std::endl; PyRun_SimpleString(from time import time, ctime\n print('Today is', ctime(time())\n)); Py_Finalize(); } I compile this using g++ -ID:/Tools/Python/3.4/x64/include -O0 -g3 -pedantic -Wall -Wextra -std=c++14 test.cpp -LD:/Tools/Python/3.4/x64/libs -lpython34 -o test.exe Running test.exe results in 0 1 Hello World Today is Sat Mar 7 12:06:53 2015 The problem is the first line of output. Creating a `PyObject` using `PyUnicode_FromString()` and then calling `PyUnicode_Check()` on the earlier result is returning `0`. The cause of this is that the `tp_flags` field somewhere within `PyObject` is `0` and `PyUnicode_Check()` performs a bitand with that and returns `0`. If I understand the docs correctly, when `PyUnicode_CheckExact()` returns true, `PyUnicode_Check()` should also return true because the former is a more stringent check than the latter. Additional details that may or may not be relevant. I followed these steps to create `libpython34.a` for linking with g++. From an MSYS prompt $ gendef.exe /C/Windows/System32/python34.dll $ dlltool --dllname /C/Windows/System32/python34.dll --def python34.def --output-lib libpython34.a I also tried downloading libpython34.a from Christoph Gohlke's website (http://www.lfd.uci.edu/~gohlke/pythonlibs/#libpython) but that produces the same result. Is this a bug, or do I not understand what `PyUnicode_Check()` is supposed to do? -- components: Extension Modules files: g++dashv.txt messages: 237472 nosy: Ashish Sadanandan priority: normal severity: normal status: open title: MinGW-64 type: behavior versions: Python 3.4 Added file: http://bugs.python.org/file38381/g++dashv.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23603 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23602] Implement __format__ for Fraction
Tuomas Suutari added the comment: Here's a patch that adds Fraction.__format__ implementation, test cases and documentation. -- keywords: +patch Added file: http://bugs.python.org/file38378/issue23602.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23602 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13583] sqlite3.Row doesn't support slice indexes
Serhiy Storchaka added the comment: Here is a patch with much simpler implementation. -- components: +Extension Modules Added file: http://bugs.python.org/file38379/sqlite3_row_slice.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13583 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21992] New AST node Else() should be introduced
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21992 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23103] Reduce memory usage for ipaddress object instances
Serhiy Storchaka added the comment: OK. But I hesitate that weakref support is useful for IP addresses. -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23103 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23603] MinGW-64 and embedding Python3.4
Changes by Ashish Sadanandan ashish.sadanan...@gmail.com: -- title: MinGW-64 - MinGW-64 and embedding Python3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23603 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23601] use small object allocator for dict key storage
Mark Shannon added the comment: I don't remember why PyMem_Malloc rather than PyObject_MALLOC was used, it may have been inherited from the allocation of dict tables in the earlier implementation. My only concern is that the benchmark only tests performance for very small dictionaries. The small object allocator is limited to 512 bytes before it falls back on malloc, so for larger dict keys the speed up would vanish. A benchmark with a range of sizes would be more convincing, if only to show that it is no slower for larger dicts. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23601 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text
Ezio Melotti added the comment: Here is a patch that fixes the problem. Even though calling .close() is the correct solution, I preferred to restore the previous behavior and call handle_data as soon as possible. There is a corner case in which a charref might be cut in half while feeding chunks to the parser -- in that case the parser will wait and it might still be necessary to call .close() if an incomplete charref is at the end of the string. Adding context manager support to HTMLParser might also help solving the problem, but that's a separate issue. (Also thanks to Serhiy for the feedback he provided me on IRC.) -- keywords: +patch nosy: +serhiy.storchaka stage: - commit review versions: +Python 2.7, Python 3.5 Added file: http://bugs.python.org/file38376/issue23144.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23144 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23551] IDLE to provide menu options for using PIP
Saimadhav Heblikar added the comment: For the initial version here is what I plan to code: A single package manager entry in a suitable menu. This would open a dialog window containing options for (inspired from msg236906). 1. Show installed packages(freeze) This menu would have options to update and remove the said package. 2. Install package The user may specify an url, paste a requirements.txt type file or point to a requirements.txt file. 3. Settings Change install directory The user will be able to update/revert to a specific version. Incase of an error, the error message which would be have been printed to the terminal will be displayed to the user in a dialog box. Any changes made to packages would be for the version using which IDLE was started. Also, what do you feel about support from non-PyPI repositories like github? Do we intend to support everything pip supports or only a subset of it (say PyPI)? For this initial version, I would like to keep cloning across versions for later version. For now these are the things I would like to get right first. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23551 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file38376/issue23144.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23144 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text
Changes by Ezio Melotti ezio.melo...@gmail.com: Added file: http://bugs.python.org/file38380/issue23144.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23144 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23602] Implement __format__ for Fraction
Serhiy Storchaka added the comment: from fractions import Fraction as F format(F(1, 3), '.30f') '0.00' -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23602 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4851 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22455] idna/punycode give wrong results on narrow builds
Mark Lawrence added the comment: As 2.7 is to be supported until 2020 and a potential fix is available shouldn't we be using it? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22455 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22227] Simplify tarfile iterator
Mark Lawrence added the comment: LGTM at a quick glance. Can we have a formal patch review please. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7352] pythonx.y-config --ldflags out of /usr and missing -Linstall_lib_dir
koobs added the comment: +nosy doko on ned_deily's advice -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7352 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7352] pythonx.y-config --ldflags out of /usr and missing -Linstall_lib_dir
koobs added the comment: Still an issue on 2.7, 3.2, 3.3. Updating Versions to reflect this fact and assist downstreams in backporting a forthcoming fix to those versions that won't get it due to security-fix only branches. See Also: Issue: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197757 Patch: https://bz-attachments.freebsd.org/attachment.cgi?id=153794 -- nosy: +haypo versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7352 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)
Changes by Peter Otten __pete...@web.de: -- nosy: +peter.otten ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23495 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client
Serhiy Storchaka added the comment: Added comments on Rietveld. Is there a limit to the length of header line? Would not unfolding all header values exceed the limit? -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22928 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23600] tizinfo.fromutc changed for tzinfo wih StdOffset=0, DstOffset=1
Changes by Alistair Lynn arpl...@gmail.com: -- nosy: +alynn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23600 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16462] smtpd should return greeting
Changes by Håkan Lövdahl hlovd...@gmail.com: -- nosy: +Håkan Lövdahl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16462 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21992] New AST node Else() should be introduced
Mark Lawrence added the comment: The referenced issue1659410 has been closed as too late. Does that also apply here or is this still considered to be a valid enhancement request? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21992 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22524] PEP 471 implementation: os.scandir() directory scanning function
Ben Hoyt added the comment: Oops, I'm sorry re previous comment -- looks like I forgot to attach scandir-8.patch. Now attached. Please re-read my previous comment and review. :-) -- Added file: http://bugs.python.org/file38374/scandir-8.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22524 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23601] use small object allocator for dict key storage
Marc-Andre Lemburg added the comment: There seem to be quite a few other places where this simple optimization could make sense as well, perhaps even going as far as converting all uses of PyMem_MALLOC to PyObject_MALLOC. There was a time when the small memory allocator did not return free arenas to the system allocator, but those are long ago. The only detail to watch out for is not mixing the malloc/free APIs. In particular, memory which is allocated in the interpreter and then deallocated elsewhere in extensions needs to continue using the PyMem_* APIs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23601 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19610] setup.py does not allow a tuple for classifiers
Serhiy Storchaka added the comment: The patch changes this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19610 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23400] Inconsistent behaviour of multiprocessing.Queue() if sem_open is not implemented
Davin Potts added the comment: Attaching updated single patch for both default/3.5 and 3.4 to use Serhiy's insightful simplification. This updated patch has been tested on current Debian Hurd (see earlier comments about full battery of tests there) and OS X 10.10 (full, verbose tests). Note that the patch for 2.7 does not need a similar update as it contains purely documentation and no code changes. Thanks goes to Serhiy and Berker for their thoughtful reviews and follow-ups. -- Added file: http://bugs.python.org/file38375/issue23400_py35_and_py34_furtherimproveddocsandstyle.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23400 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21779] test_multiprocessing_spawn fails when ran with -Werror
Mark Lawrence added the comment: This can be reproduced on Windows 8.1. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21779 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22268] add dedicated functions mrohasattr and mrogetattr
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- title: mrohasattr and mrogetattr - add dedicated functions mrohasattr and mrogetattr ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22268 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21162] code in multiprocessing.pool freeze if inside some code from scikit-learn (and probably liblinear) executed on ubuntu 12.04 64 Bit
Davin Potts added the comment: I am unable to reproduce the described behavior using the script provided in that gist using Python 2.7.9 on OS X 10.10 with scikit-learn 0.15.2, scipy 0.14.0, numpy 1.9.0. For me, the sample code runs happily through to completion. Can the OP still reproduce the behavior? If not, it looks like scikit-learn and scipy have changed in the interim, addressing this behavior. -- nosy: +davin status: open - pending type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21162 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21793] httplib client/server status refactor
Roundup Robot added the comment: New changeset ad64b6a7c0e2 by Serhiy Storchaka in branch 'default': Issue #21793: BaseHTTPRequestHandler again logs response code as numeric, https://hg.python.org/cpython/rev/ad64b6a7c0e2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21793 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21793] httplib client/server status refactor
Serhiy Storchaka added the comment: Thank you Martin for noticing a logging issue. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21793 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires
Serhiy Storchaka added the comment: According to RFC 6265, Section 5.2: 2. If the name-value-pair string lacks a %x3D (=) character, ignore the set-cookie-string entirely. But Set-Cookie: spam; Expires=Thu, 01 Jan 1970 00:00:10 GMT is accepted. key=spam, value=None. 5. If the name string is empty, ignore the set-cookie-string entirely. But Set-Cookie: =spam; Expires=Thu, 01 Jan 1970 00:00:10 GMT is accepted. key=, value=spam. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23138 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23460] Decimals do not obey ':g' exponential notation formatting rules
Tuomas Suutari added the comment: Here's a patch that fixes the description for 'g' to explain what happens for `Decimal` and also documents the Decimal.__format__ in the documentation of the decimal module. -- keywords: +patch nosy: +Tuomas Suutari Added file: http://bugs.python.org/file38370/issue23460.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23460 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23601] use small object allocator for dict key storage
New submission from Julian Taylor: dictionary creation spends a not insignificant amount of time in malloc allocating keys objects. Python has a nice small object allocator that avoids a lot of this overhead and falls back to malloc for larger allocations. Is there a reason the dictionary does not use that allocator for its keys objects? doing so e.g. via attached incomplete patch improves small dict creation performance by 15%. import timeit print(timeit.repeat(dict(a=5, b=2))) with change: [0.4282559923725, 0.427258015296, 0.436232985377] without [0.516061002634, 0.518172000496, 0.51842199191] or is there something I am overlooking and the use of PyMem_Malloc instead of PyObject_Malloc is an intentional design decision? -- components: Interpreter Core files: 0001-use-small-object-allocator-for-keys-object.patch keywords: patch messages: 237439 nosy: jtaylor priority: normal severity: normal status: open title: use small object allocator for dict key storage versions: Python 3.5 Added file: http://bugs.python.org/file38371/0001-use-small-object-allocator-for-keys-object.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23601 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23551] IDLE to provide menu options for using PIP
Changes by Peter Otten __pete...@web.de: -- nosy: +peter.otten ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23551 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23584] test_doctest lineendings fails in verbose mode
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review type: - behavior versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23584 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23579] Amazon.com links
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23579 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23530] os and multiprocessing.cpu_count do not respect cpuset/affinity
Julian Taylor added the comment: attached documentation update patch. -- keywords: +patch Added file: http://bugs.python.org/file38369/0001-Issue-23530-Update-documentation-clarify-relation-of.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23530 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22154] ZipFile.open context manager support
Tuomas Suutari added the comment: The context manager support was added on issue #5511, so the documentation should go to 2.7, 3.4 and default. Also the version added notes should be added. -- nosy: +Tuomas Suutari ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22154 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7352] pythonx.y-config --ldflags out of /usr and missing -Linstall_lib_dir
Changes by koobs koobs.free...@gmail.com: -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7352 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21793] httplib client/server status refactor
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: commit review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21793 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23601] use small object allocator for dict key storage
Changes by Mark Shannon m...@hotpy.org: -- nosy: +Mark.Shannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23601 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2211] Cookie.Morsel interface needs update
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka status: languishing - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2211 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2211] Cookie.Morsel interface needs update
Serhiy Storchaka added the comment: Added comments on Rietveld. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2211 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23601] use small object allocator for dict key storage
Changes by SilentGhost ghost@gmail.com: -- nosy: +lemburg, tim.peters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23601 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23581] unittest.mock.MagicMock doesn't support matmul (@) operator
Berker Peksag added the comment: Looks good. I'll tweak the patch and commit it. Thanks Håkan. -- stage: - patch review type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23581 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23138 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client
Martin Panter added the comment: Folded header fields are deprecated as of RFC 7230; see https://tools.ietf.org/html/rfc7230#section-3.2.4. The only reasons to fold them I can think of is for readability (debugging), when generating a messsage/http MIME message (which I don’t think the Python library supports), or maybe when dealing with a strange server limitation. Normally there is not meant to be a limit for lines in the HTTP header, although it is common to limit the total unfolded header field value. If we go ahead and drop folding support, perhaps we should deprecate the putheader() multi-argument mode, rather than just document the arguments are now joined by spaces. It seems a pointless API now with this change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22928 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22227] Simplify tarfile iterator
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23604] Python 3.4 and 2.7 installation no Script folder and no pip installed
Changes by SilentGhost ghost@gmail.com: -- components: +Installation, Windows -Extension Modules nosy: +steve.dower, tim.golden, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23604 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22227] Simplify tarfile iterator
Martin Panter added the comment: The code changes look correct and worthwhile to me. Just added some suggestions for the comments, which would become out of date. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text
Martin Panter added the comment: I still think it would be worthwhile adding close() calls to the examples in the documentation (Doc/library/html.parser.rst). BTW I haven’t tested this, and maybe it is not a concern, but even with this patch it looks like the parser will buffer unlimited data and output nothing until close() if each string it is fed ends with an ampersand (and otherwise contains only plain text, no tags etc). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23144 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21619] Cleaning up a subprocess with a broken pipe
STINNER Victor added the comment: overflow-pipe-test.patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21619 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23604] Python 3.4 and 2.7 installation no Script folder and no pip installed
New submission from Daiyue Weng: Hi, I was doing a fresh installation for Python 2.7.9 (32 bit) and 3.4.3 (32 bit) (downloaded from PSF) on Win7 X64 today, and I found that there is no 'Script' folder in 'Python27' and 'Python34' folder as first child level folder, but there is one in Tools. However, I couldn't find pip within that 'Script' folder, although pip should be installed with Python by default. The other I was doing the same installation for my other PC and laptop, there was 'Script' folder (as first level child folder in 'Python27' and 'Python34') containing pip. So what is going on? how to install pip and maybe other useful scripts this way? 'C:\Pythonxy\Lib\site-packages' contains nothing but a README file. I tried 'python -m ensurepip' in 'C:\Python34'. I got the following errors: Ignoring indexes: https://pypi.python.org/simple Collecting setuptools Exception: Traceback (most recent call last): File C:\Users\daiyue\AppData\Local\Temp\tmppvmc8dv1\pip-6.0.8-py2.py3-none- any.whl\pip\basecommand.py, line 232, in main status = self.run(options, args) File C:\Users\daiyue\AppData\Local\Temp\tmppvmc8dv1\pip-6.0.8-py2.py3-none- any.whl\pip\commands\install.py, line 339, in run requirement_set.prepare_files(finder) File C:\Users\daiyue\AppData\Local\Temp\tmppvmc8dv1\pip-6.0.8-py2.py3-none- any.whl\pip\req\req_set.py, line 333, in prepare_files upgrade=self.upgrade, File C:\Users\daiyue\AppData\Local\Temp\tmppvmc8dv1\pip-6.0.8-py2.py3-none- any.whl\pip\index.py, line 326, in find_requirement file_locations, url_locations = self._sort_locations(locations) File C:\Users\daiyue\AppData\Local\Temp\tmppvmc8dv1\pip-6.0.8-py2.py3-none- any.whl\pip\index.py, line 158, in _sort_locations sort_path(os.path.join(path, item)) File C:\Users\daiyue\AppData\Local\Temp\tmppvmc8dv1\pip-6.0.8-py2.py3-none- any.whl\pip\index.py, line 139, in sort_path if mimetypes.guess_type(url, strict=False)[0] == 'text/html': File C:\Python34\lib\mimetypes.py, line 287, in guess_type init() File C:\Python34\lib\mimetypes.py, line 348, in init db.read_windows_registry() File C:\Python34\lib\mimetypes.py, line 255, in read_windows_registry with _winreg.OpenKey(hkcr, subkeyname) as subkey: TypeError: OpenKey() argument 2 must be str without null characters or None, not str I also tried 'python -m ensurepip' in 'C:\Python27'. I got some errors in Users\user_name\pip log file: C:\Python27\lib\ensurepip\__main__.py run on 03/07/15 01:47:03 Ignoring indexes: https://pypi.python.org/simple/ Downloading/unpacking setuptools Cleaning up... Removing temporary dir c:\users\daiyue\appdata\local\temp\pip_build_daiyue... Exception: Traceback (most recent call last): File c:\users\daiyue\appdata\local\temp\tmpxji_co\pip-1.5.6-py2.py3-none-any.whl\pip\basecommand.py, line 122, in main status = self.run(options, args) File c:\users\daiyue\appdata\local\temp\tmpxji_co\pip-1.5.6-py2.py3-none-any.whl\pip\commands\install.py, line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File c:\users\daiyue\appdata\local\temp\tmpxji_co\pip-1.5.6-py2.py3-none-any.whl\pip\req.py, line 1177, in prepare_files url = finder.find_requirement(req_to_install, upgrade=self.upgrade) File c:\users\daiyue\appdata\local\temp\tmpxji_co\pip-1.5.6-py2.py3-none-any.whl\pip\index.py, line 209, in find_requirement file_locations, url_locations = self._sort_locations(locations) File c:\users\daiyue\appdata\local\temp\tmpxji_co\pip-1.5.6-py2.py3-none-any.whl\pip\index.py, line 128, in _sort_locations sort_path(os.path.join(path, item)) File c:\users\daiyue\appdata\local\temp\tmpxji_co\pip-1.5.6-py2.py3-none-any.whl\pip\index.py, line 109, in sort_path if mimetypes.guess_type(url, strict=False)[0] == 'text/html': File C:\Python27\lib\mimetypes.py, line 290, in guess_type init() File C:\Python27\lib\mimetypes.py, line 351, in init db.read_windows_registry() File C:\Python27\lib\mimetypes.py, line 254, in read_windows_registry with _winreg.OpenKey(hkcr, subkeyname) as subkey: TypeError: must be string without null bytes or None, not str I have also tried out 64bit Python installation, but got the same result. So how to fix this? I posted the same message on comp.lang.python and Python Google group with no response so I guess i may try some luck here. cheers -- components: Extension Modules messages: 237476 nosy: Daiyue Weng priority: normal severity: normal status: open title: Python 3.4 and 2.7 installation no Script folder and no pip installed type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23604 ___ ___ Python-bugs-list mailing list Unsubscribe:
[issue20876] python -m test test_pathlib fails
Antoine Pitrou added the comment: I have applied the patch to 3.4 and default. Thank you! -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20876 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20876] python -m test test_pathlib fails
Roundup Robot added the comment: New changeset 40e8a8e83ed0 by Antoine Pitrou in branch '3.4': Issue #20876: correctly close temporary file in test.support.fs_is_case_insensitive() https://hg.python.org/cpython/rev/40e8a8e83ed0 New changeset 5406ed13bd6e by Antoine Pitrou in branch 'default': Issue #20876: correctly close temporary file in test.support.fs_is_case_insensitive() https://hg.python.org/cpython/rev/5406ed13bd6e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20876 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21518] Expose RegUnloadKey in winreg
Changes by Claudiu Popa pcmantic...@gmail.com: Added file: http://bugs.python.org/file38382/issue21518_5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21518 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text
Ezio Melotti added the comment: I still think it would be worthwhile adding close() calls to the examples in the documentation (Doc/library/html.parser.rst). If I add context manager support to HTMLParser I can update the examples to use it, but otherwise I don't think it's worth changing them now. BTW I haven’t tested this, and maybe it is not a concern, but even with this patch it looks like the parser will buffer unlimited data and output nothing until close() if each string it is fed ends with an ampersand (and otherwise contains only plain text, no tags etc). This is true, but I don't think it's a realistic case. For this to be a problem you would need: 1) Someone feeding the parser with arbitrary chunks. Text files are usually fed to the parser whole, or line by line -- arbitrary chunks are uncommon. 2) A file that contains lot of entities. In most documents charrefs are not very common, and so the chances that a chunk will split one in the middle is low. Chances that several consecutive charrefs are split in the middle is even lower. 3) A file that is very big. Even if all the file is buffered until a call to close(), it shouldn't be a concern, since most files have relatively small size. It is true that this has a quadratic complexity, but I would expect the parsing to complete in a reasonable time for average sizes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23144 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22522] sys.excepthook doesn't receive the traceback when called from code.InteractiveInterpreter
Claudiu Popa added the comment: This was fixed by a different patch in https://hg.python.org/cpython/rev/5f3dd0a2b1ab -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22522 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23601] use small object allocator for dict key storage
Julian Taylor added the comment: PyObject_Malloc just calls malloc above the threshold so there is no problem for larger dicts. For larger dicts the performance of malloc is also irrelevant as the time will be spent elsewhere. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23601 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20876] python -m test test_pathlib fails
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20876 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23603] Embedding Python3.4 - PyUnicode_Check fails (MinGW-W64)
Changes by Ashish Sadanandan ashish.sadanan...@gmail.com: -- title: MinGW-64 and embedding Python3.4 - Embedding Python3.4 - PyUnicode_Check fails (MinGW-W64) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23603 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23103] Reduce memory usage for ipaddress object instances
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23103 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23103] Reduce memory usage for ipaddress object instances
Changes by Serhiy Storchaka storch...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23103 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23602] Implement __format__ for Fraction
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23602 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23588] Errno conflicts in ssl.SSLError
Martin Panter added the comment: [padding] This behaviour of returning an SSL-specific error code in the “errno” attribute is not documented. The “errno” attribute is actually specified to hold a POSIX error code, and I don’t think this specification should be changed. I don’t see how checking for an “errno_scope” attribute is any better than checking for isinstance(exception, SSLError). I think the SSL error codes should be removed from “errno”, or maybe moved to a new attribute (ssl_error?), like what is already done with the “winerror” attribute. -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23588 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22524] PEP 471 implementation: os.scandir() directory scanning function
Roundup Robot added the comment: New changeset d04d5b9c29f6 by Victor Stinner in branch 'default': Issue #22524: New os.scandir() function, part of the PEP 471: os.scandir() https://hg.python.org/cpython/rev/d04d5b9c29f6 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22524 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22524] PEP 471 implementation: os.scandir() directory scanning function
STINNER Victor added the comment: KNOWN ISSUE: There's a reference leak in the POSIX version (found with python -m test -R 3:2 test_os). Don't worry, it was a simple refleak, I fixed it: diff -r 392d3214fc23 Modules/posixmodule.c --- a/Modules/posixmodule.c Sun Mar 08 01:58:04 2015 +0100 +++ b/Modules/posixmodule.c Sun Mar 08 02:08:05 2015 +0100 @@ -16442,6 +16442,7 @@ DirEntry_fetch_stat(DirEntry *self, int result = STAT(path, st); else result = LSTAT(path, st); +Py_DECREF(bytes); if (result != 0) return PyErr_SetFromErrnoWithFilenameObject(PyExc_OSError, self-path); -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22524 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com