[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.
Terry J. Reedy added the comment: I believe the patch works slightly better on my system with the above mentioned block uncommented. The problem being addressed is this. The editor sendx a set command to the vertical scrollbar after *any* action that affects the lines displayed. We intercept the set command to set the sidebar in addition to the scrollbar slider. Works great. But after a font change, the editor emits two badly off and bogus commands, causing line numbers and the slider to unnecessarily jiggle up and down (or down and up). It then send a third set command with the proper fractions. Attached is the file I wrote to verify visual observations. I would like to commit this after checking a few details mentioned in previous messages. I would, however, like someone to first test the latest patch on OSX. -- assignee: - terry.reedy nosy: +ned.deily stage: - commit review Added file: http://bugs.python.org/file36285/tkfontsize.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17535 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22046] ZipFile.read() should mention that it might throw NotImplementedError
Serhiy Storchaka added the comment: ZipFile's constructor and ZipFile.open() can raise NotImplementedError, RuntimeError, EOFError, IOError, OSError or its subclasses, or any exception raised from underlying file object, including TypeError and AttributeError. ZipExtFile.read() can raise zlib.error, lzma.LZMAError, EOFError, IOError, OSError, etc. Any method can raise unexpected exception when used in unusual circumstances (with threads, in signal handler, in destructor, at shutdown stage). I don't think we should document all these exception. Python documentation never document all possible exceptions raised by a method. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22046 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22046] ZipFile.read() should mention that it might throw NotImplementedError
Jason Heeris added the comment: Python documentation never document all possible exceptions raised by a method. No, but clearly *some* exceptions are documented, and presumably there's some reasoning behind which are and aren't. In this case, the NotImplemented error is there by design. It's not an incidental effect of something else. It's part of the API, and it's used to indicate a common error condition: that the compression format is not supported. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22046 ___ ___ 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
New submission from Ralph Broenink: In Python 3.2, context manager support for ZipFile was added. However, I would also love the ability for ``ZipFile.open`` to be used as a context manager, e.g.: from zipfile import ZipFile with ZipFile(test.zip, r) as z: with z.open(test.txt, r) as f: print(f.read()) -- components: Extension Modules messages: 224914 nosy: Ralph.Broenink priority: normal severity: normal status: open title: ZipFile.open context manager support type: enhancement versions: Python 3.5 ___ 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
[issue22154] ZipFile.open context manager support
Serhiy Storchaka added the comment: This is already implemented. with ZipFile(Lib/test/zip_cp437_header.zip, r) as z: ... with z.open(filename_without.txt, r) as f: ... print(f.read()) ... print(f.closed) ... b'EOF\r\n' True -- components: +Library (Lib) -Extension Modules nosy: +serhiy.storchaka resolution: - out of date stage: - resolved status: open - closed ___ 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
[issue22138] patch.object doesn't restore function defaults
Sean McCully added the comment: Is special casing the special attrs a permament enough solution? -- keywords: +patch nosy: +seanmccully Added file: http://bugs.python.org/file36286/issue22138.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22138 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21091] EmailMessage.is_attachment should be a method
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: commit review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21091 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22138] patch.object doesn't restore function defaults
Ezio Melotti added the comment: Thanks for the patch, however I don't think this is a robust solution. Other objects might have undeletable attributes too. The current code can delete an attribute without restoring it so an easy solution would be removing the hasattr() check, but that seems to be there to deal with proxy objects, so doing that will probably break them (Lib/unittest/test/testmock/testpatch.py:821 seems to test proxy object). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22138 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22138] patch.object doesn't restore function defaults
Michael Foord added the comment: It might have to be. There's no general purpose solution that will fit every possible behaviour for a Python descriptor I'm afraid. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22138 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2
Ezio Melotti added the comment: If the HTML output was fine, what is the purpose of the change in pyspecific.py? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22150 ___ ___ 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
Ralph Broenink added the comment: Perhaps this should be documented then :) -- ___ 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
[issue22154] ZipFile.open context manager support
Serhiy Storchaka added the comment: May be. -- assignee: - docs@python components: +Documentation -Library (Lib) keywords: +easy nosy: +docs@python priority: normal - low resolution: out of date - stage: resolved - needs patch status: closed - open type: enhancement - behavior ___ 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
[issue22155] Out of date code example for tkinter's createfilehandle
New submission from Martin Panter: The only documentation on “createfilehandle” and friends that I can find looks like it needs updating: https://docs.python.org/release/3.4.0/faq/gui.html#can-i-have-tk-events-handled-while-waiting-for-i-o I have been using the equivalent of this instead, for both Python 2 and 3: import tkinter widget = tkinter.Tk() widget.tk.createfilehandler(file, tkinter.READABLE | tkinter.WRITABLE, callback) ... widget.tk.deletefilehandler(file) However I have no idea if this is a supported, proper way, if one even still exists. The old way was removed by Issue 3638. BTW, there is a link to release/3.4.1 documentation but that returned a 404 error for me, so I linked to the 3.4.0 doc instead. -- assignee: docs@python components: Documentation, Tkinter messages: 224922 nosy: docs@python, vadmium priority: normal severity: normal status: open title: Out of date code example for tkinter's createfilehandle versions: Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22155 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22155] Out of date code example for tkinter's createfilehandler
Changes by Martin Panter vadmium...@gmail.com: -- title: Out of date code example for tkinter's createfilehandle - Out of date code example for tkinter's createfilehandler ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22155 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3638] Remove module level functions in _tkinter that depend on TkappObject
Martin Panter added the comment: See Issue 22155 for fixing the createfilehandler FAQ documentation -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3638 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22120] Return converter code generated by Argument Clinic has a warning for unsigned types
STINNER Victor added the comment: Since my argument clinic patch hijacked this issue, I created a new one for fix_warnings.patch: issue #22156. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22120 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22156] Fix compiler warnings
New submission from STINNER Victor: The issue #22110 enabled more compiler warnings. Attached patch tries to fix most of them on Linux. -- files: fix_warnings.patch keywords: patch messages: 224924 nosy: haypo, neologix priority: normal severity: normal status: open title: Fix compiler warnings versions: Python 3.5 Added file: http://bugs.python.org/file36287/fix_warnings.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22156 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21965] Add support for Memory BIO to _ssl
Jean-Paul Calderone added the comment: Please do *not* add me to the nosy list of any issues. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21965 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21965] Add support for Memory BIO to _ssl
Changes by Jean-Paul Calderone jean-p...@hybridcluster.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21965 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2
Berker Peksag added the comment: Sorry, I forgot to explain that part of the patch. See broken-deprecated-removed.png. The Deprecated since version 3.5, will be removed in 3.6 paragraph should be in the first line, not in the second line (like the deprecated directive). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22150 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22155] Out of date code example for tkinter's createfilehandler
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - needs patch versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22155 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22156] Fix compiler warnings
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Extension Modules, Interpreter Core nosy: +serhiy.storchaka stage: - patch review type: - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22156 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18841] math.isfinite fails with Decimal sNAN
Mark Dickinson added the comment: Mark: it's not really ready for a patch, since there's no agreement yet on how best to solve this. In fact, I'm tempted to close as wont fix: the argument is that the math module consists for the most part only of thin wrappers around the platform math library. The underlying need (as far as I understand it) is to be able to tell whether a given number is a nan or not without having to know in advance whether it's a float, int or Decimal instance. There may be other ways of achieving this goal (like adding an `is_nan` method to `float` and `int`, for example.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18841 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22138] patch.object doesn't restore function defaults
Michael Foord added the comment: And yes, there's deliberate proxy object support in mock.patch (django settings being one specific use-case). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22138 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22157] FAIL: test_with_pip (test.test_venv.EnsurePipTest)
New submission from snehal: On ppc64le architecture I see following error with TAR : https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tar.xz == FAIL: test_with_pip (test.test_venv.EnsurePipTest) -- Traceback (most recent call last): File /home/ubuntu/python/Python-3.4.1/Lib/test/test_venv.py, line 352, in test_with_pip with_pip=True) subprocess.CalledProcessError: Command '['/tmp/tmpge5lfrua/bin/python', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1 During handling of the above exception, another exception occurred: Traceback (most recent call last): File /home/ubuntu/python/Python-3.4.1/Lib/test/test_venv.py, line 358, in test_with_pip self.fail(msg.format(exc, details)) AssertionError: Command '['/tmp/tmpge5lfrua/bin/python', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1 **Subprocess Output** Traceback (most recent call last): File /home/ubuntu/python/Python-3.4.1/Lib/runpy.py, line 170, in _run_module_as_main __main__, mod_spec) File /home/ubuntu/python/Python-3.4.1/Lib/runpy.py, line 85, in _run_code exec(code, run_globals) File /home/ubuntu/python/Python-3.4.1/Lib/ensurepip/__main__.py, line 4, in module ensurepip._main() File /home/ubuntu/python/Python-3.4.1/Lib/ensurepip/__init__.py, line 209, in _main default_pip=args.default_pip, File /home/ubuntu/python/Python-3.4.1/Lib/ensurepip/__init__.py, line 116, in bootstrap _run_pip(args + [p[0] for p in _PROJECTS], additional_paths) File /home/ubuntu/python/Python-3.4.1/Lib/ensurepip/__init__.py, line 40, in _run_pip import pip File /tmp/tmpn9zaabpk/pip-1.5.6-py2.py3-none-any.whl/pip/__init__.py, line 9, in module File /tmp/tmpn9zaabpk/pip-1.5.6-py2.py3-none-any.whl/pip/log.py, line 9, in module File /tmp/tmpn9zaabpk/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/__init__.py, line 2, in module File /tmp/tmpn9zaabpk/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/initialise.py, line 5, in module File /tmp/tmpn9zaabpk/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/ansitowin32.py, line 6, in module File /tmp/tmpn9zaabpk/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/winterm.py, line 2, in module File /tmp/tmpn9zaabpk/pip-1.5.6-py2.py3-none-any.whl/pip/_vendor/colorama/win32.py, line 7, in module File /home/ubuntu/python/Python-3.4.1/Lib/ctypes/__init__.py, line 7, in module from _ctypes import Union, Structure, Array ImportError: No module named '_ctypes' -- Ran 13 tests in 0.561s FAILED (failures=1) test test_venv failed make: *** [test] Error -- components: Tests messages: 224930 nosy: snehal priority: normal severity: normal status: open title: FAIL: test_with_pip (test.test_venv.EnsurePipTest) versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22157 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22157] FAIL: test_with_pip (test.test_venv.EnsurePipTest)
snehal added the comment: I have libffi installed on system root@beta1:/home/ubuntu/python/Python-3.4.1# dpkg -l | grep libffi ii libffi-dev:ppc64el 3.1~rc1+r3.0.13-12 ppc64el Foreign Function Interface library (development files) ii libffi6:ppc64el 3.1~rc1+r3.0.13-12 ppc64el Foreign Function Interface library runtime ii libffi6-dbg:ppc64el 3.1~rc1+r3.0.13-12 ppc64el Foreign Function Interface library runtime (debug symbols) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22157 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21965] Add support for Memory BIO to _ssl
Antoine Pitrou added the comment: Perhaps Glyph wants to chime in :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21965 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6422] timeit called from within Python should allow autoranging
Changes by Antoine Pitrou pit...@free.fr: -- assignee: amaury.forgeotdarc - versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6422 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2527] Pass a namespace to timeit
Antoine Pitrou added the comment: Would still be nice to have something like this. The timeit module API is still crippled, especially now that from __main__ import * doesn't work in a function anymore. -- stage: patch review - needs patch versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2527 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22148] frozen.c should #include importlib.h instead of importlib.h
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22148 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22080] Add windows_helper module helper
Changes by Claudiu Popa pcmantic...@gmail.com: Added file: http://bugs.python.org/file36288/issue22080.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22080 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22080] Add windows_helper module helper
Claudiu Popa added the comment: The new patch fixes the issues found by Zachary. Thanks for the review! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22080 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20056] Got deprecation warning when running test_shutil.py on Windows NT 6
Vajrasky Kok added the comment: Okay, here is the patch based on Serhiy's suggestion. -- keywords: +patch Added file: http://bugs.python.org/file36289/silent_warning_shutil_rmtree.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20056 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception
Roundup Robot added the comment: New changeset c46ad743bcb4 by Serhiy Storchaka in branch '2.7': Issue #21975: Fixed crash when using uninitialized sqlite3.Row (in particular http://hg.python.org/cpython/rev/c46ad743bcb4 New changeset c1ca1c4c131b by Serhiy Storchaka in branch '3.4': Issue #21975: Fixed crash when using uninitialized sqlite3.Row (in particular http://hg.python.org/cpython/rev/c1ca1c4c131b New changeset 9244ed41057a by Serhiy Storchaka in branch 'default': Issue #21975: Fixed crash when using uninitialized sqlite3.Row (in particular http://hg.python.org/cpython/rev/9244ed41057a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21975 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21975 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22035] Fatal error in dbm.gdbm
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22035 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16465] dict creation performance regression
Serhiy Storchaka added the comment: Antoine, are you still oppose to this patch? -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16465 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14373] C implementation of functools.lru_cache
Serhiy Storchaka added the comment: Raymond, do you have time for the review? It will be easier to support both implementation at the same time, than change only Python implementation and asynchronously update the patch with the risk to lost changes in C implementation. I think we should increase the priority of this issue. Efficient lru_cache will affect other parts of the stdlib. In particular the use of lru_cache was withdrawed in the re module due to large overhead of Python implementation. The ipaddress module now uses own specialized implementation of the caching instead of general lru_cache for the same reason. Issue13299 proposition will be more acceptable with faster lru_cache. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16465] dict creation performance regression
Antoine Pitrou added the comment: The patch adds complication to the already complicated memory management of dicts. It increases maintenance burden in critical code. Have we found any case where it makes a tangible difference? (I'm not talking about timeit micro-benchmarks) -- nosy: +tim.peters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16465 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14373] C implementation of functools.lru_cache
Changes by Antoine Pitrou pit...@free.fr: -- priority: low - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18004] test_list.test_overflow crashes Win64
Roundup Robot added the comment: New changeset 217485e80a32 by Serhiy Storchaka in branch '2.7': Issue #18004: test_overflow in test_list by mistake consumed 40 GiB of memory http://hg.python.org/cpython/rev/217485e80a32 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18004 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14373] C implementation of functools.lru_cache
Antoine Pitrou added the comment: I think a lock is still needed for cache misses. The dict operations (set and del) can release the GIL (as well as course as the PyObject_Call()), therefore you might end up with duplicate list links for a given key. (and given cache misses are supposed to be much more expensive anyway, I don't think acquiring a lock there is detrimental) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18004] test_list.test_overflow crashes Win64
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18004 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5411] Add xz support to shutil
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka dependencies: -Misc fixes and cleanups in archiving code in shutil and test_shutil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5411 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21039] pathlib strips trailing slash
Antoine Pitrou added the comment: Isaac, thanks for the reference. I'm reopening the issue for discussion (although I'm still not convinced this would be actually a good thing). May I ask you to post on the python-dev mailing-list for further feedback? -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21039 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5411] Add xz support to shutil
Roundup Robot added the comment: New changeset e57db221b6c4 by Serhiy Storchaka in branch 'default': Issue #5411: Added support for the xztar format in the shutil module. http://hg.python.org/cpython/rev/e57db221b6c4 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5411 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5411] Add xz support to shutil
Roundup Robot added the comment: New changeset a47996c10579 by Serhiy Storchaka in branch 'default': Issue #5411: Fixed version number. http://hg.python.org/cpython/rev/a47996c10579 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5411 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21039] pathlib strips trailing slash
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka resolution: rejected - type: - behavior versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21039 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5411] Add xz support to shutil
Serhiy Storchaka added the comment: Oh, my fault. Thank you Antoine! -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5411 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5411] Add xz support to shutil
Antoine Pitrou added the comment: Thank you Serhiy! You need to fix the version number in the versionchanged. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5411 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14061] Misc fixes and cleanups in archiving code in shutil and test_shutil
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka type: - behavior versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14061 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16314] Support xz compression in distutils
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16314 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10803] ctypes: better support of bytearray objects
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10803 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21585] Run Tkinter tests with wantobjects=False
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21585 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18844] allow weights in random.choice
Serhiy Storchaka added the comment: Raymond, what is your opinion? -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18844 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18615] sndhdr.whathdr could return a namedtuple
Serhiy Storchaka added the comment: The documentation says: When these functions are able to determine what type of sound data is stored in a file, they return a :func:`~collections.namedtuple`, containing five attributes: (``type``, ``sampling_rate``, ``channels``, ``frames``, ``bits_per_sample``). But actual attributes of returned namedtuple are filetype, framerate, nchannels, nframes and sampwidth. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18615 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18615] sndhdr.whathdr could return a namedtuple
Claudiu Popa added the comment: Thanks. -- Added file: http://bugs.python.org/file36290/issue18615_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18615 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18844] allow weights in random.choice
Antoine Pitrou added the comment: I don't want to speak for Raymond, but the proposed API looks good, and it seems Roulette Wheel 2 should be the implementation choice given its characteristics (simple, reasonably good and balanced performance). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18844 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20056] Got deprecation warning when running test_shutil.py on Windows NT 6
Serhiy Storchaka added the comment: Is this the only place in tests which emits deprecation warnings on Windows? -- assignee: - serhiy.storchaka stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20056 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21965] Add support for Memory BIO to _ssl
Glyph Lefkowitz added the comment: I don't have a whole lot to add. I strongly recommended that this be done this way twice, once when ssl was added to Python and once when ssl was added to tulip, so I'm glad to see it's happening now. Regarding the specific implementation I am unlikely to have the interest in reviewing the code because I already have a working TLS implementation which does this. Nevertheless, if it works to get the proactor interfaces to support SSL, then it is almost certainly adequate. It would be great to eliminate the dependency on OpenSSL's writing-to-a-socket code entirely; Python already knows how to write to a socket, and it probably knows how to do it better than OpenSSL does. My only further input is that this code should all be deleted and replaced with pyOpenSSL or at least a separate thin wrapper over PyCA's Cryptography bindings. My Cassandra complex and I look forward to this advice becoming obvious to everyone else in 5-7 years :-). In the meanwhile, I will de-nosy myself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21965 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18844] allow weights in random.choice
Serhiy Storchaka added the comment: Roulette Wheel 2 has twice slower initializations than Roulette Wheel, but then generates every new item twice faster. It is possible to implement hybrid generator, which yields first item using Roulette Wheel, and then rescales cumulative_dist and continues with Roulette Wheel 2. It will be so fast as Roulette Wheel for generating only one item and so fast as Roulette Wheel 2 for generating multiple items. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18844 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18844] allow weights in random.choice
Antoine Pitrou added the comment: The setup cost of RW2 should always be within a small constant multiplier of RW's, so I'm not sure it's worth the hassle to complicate things. But it's your patch :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18844 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10803] ctypes: better support of bytearray objects
Antoine Pitrou added the comment: Why not use the buffer API instead? -- assignee: theller - nosy: +pitrou, skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10803 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22060] Clean up ctypes.test, use unittest test discovery
Serhiy Storchaka added the comment: Changes look simple and straightforward. LGTM. It would be good also move tests into the Lib/test/test_ctypes subdirectory and eliminate Lib/test/test_ctypes.py (may be in separate issue). And may be move initialization and verbose printinting in setUpModule() functions. -- nosy: +michael.foord, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22060 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18844] allow weights in random.choice
Serhiy Storchaka added the comment: Non-generator weighted_choice() function is purposed to produce exactly one item. This is a use case for such optimization. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18844 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2
Ezio Melotti added the comment: LGTM. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22150 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22157] FAIL: test_with_pip (test.test_venv.EnsurePipTest)
Ned Deily added the comment: When you built 3.4.1, did the _ctypes module build correctly? What happens when you try to import ctypes? python3.4 -c 'import ctypes' -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22157 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22060] Clean up ctypes.test, use unittest test discovery
Zachary Ware added the comment: Serhiy Storchaka added the comment: It would be good also move tests into the Lib/test/test_ctypes subdirectory and eliminate Lib/test/test_ctypes.py (may be in separate issue). I plan to do so as part of #10572, if approved (or if there's no vehemently negative feedback on that issue within a couple weeks). And may be move initialization and verbose printinting in setUpModule() functions. Fair point, I'll get a new patch up soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22060 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10803] ctypes: better support of bytearray objects
Serhiy Storchaka added the comment: Because it is simpler and more efficient. The buffer API requires the releasing of buffer. Correct tracking the ownership of the buffer requires larger and more complicated patch. Even if support for general buffers will be added, I suppose it will be worth to left specialized paths for bytes and bytearrays in some places. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10803 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21585] Run Tkinter tests with wantobjects=False
Lita Cho added the comment: Hi Serhiy, This patch was made while I was learning tkinter. I figured out how to run the tests twice while changing wantobjects variable without creating new tests. Fortunately, all the tests seem to fast when wantobjects is 0 or 1. The only annoying thing is that it doesn't merge the count of the amount of tests ran within that module, since I am calling support.run_unittest twice. Hopefully, that's okay. Otherwise, I need to figure out how to call the tests twice individually within the generator. -- Added file: http://bugs.python.org/file36291/wantobj_test.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21585 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22158] RFC 6531 (SMTPUTF8) support in smtpd.PureProxy
New submission from Milan Oberkirch: This issue depends on issue 21725 for the communication with the client and issue 22027 for communicating with the remote server. I think I can come up with a patch for the default branch which is applicable but will not run without the two other issues beeing fixed (I tried that for issue 21783 but it didn't work out well). -- components: Library (Lib) messages: 224963 nosy: jesstess, pitrou, r.david.murray, zvyn priority: normal severity: normal status: open title: RFC 6531 (SMTPUTF8) support in smtpd.PureProxy versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22158 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16399] argparse: append action with default list adds to list instead of overriding
Yclept Nemo added the comment: Well that won't work. Example: import argparse class TestAction(argparse.Action): def __call__(self, parser, namespace, values, option_string=None): print(default: {}({})\tdest: {}({}).format(self.default, type(self.default), getattr(namespace, self.dest), type(getattr(namespace, self.dest if getattr(namespace, self.dest) is self.default: print(Replacing with: , values) setattr(namespace, self.dest, values) # extra logical code not necessary for testcase parser = argparse.ArgumentParser() parser.add_argument\ ( -o, --output , type=int , action=TestAction , default=42 ) args = parser.parse_args() $ ./argparse_test -o 42 -o 100 default: 42(class 'int') dest: 42(class 'int') Replacing with: 42 default: 42(class 'int') dest: 42(class 'int') Replacing with: 100 100 Use this approach: class ExtendAction(argparse.Action): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) if not isinstance(self.default, collections.abc.Iterable): self.default = [self.default] self.reset_dest = False def __call__(self, parser, namespace, values, option_string=None): if not self.reset_dest: setattr(namespace, self.dest, []) self.reset_dest = True getattr(namespace, self.dest).extend(values) Anyway, this should be properly documented... -- nosy: +Yclept.Nemo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16399 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19217] Calling assertEquals for moderately long list takes too long
Elena Oat added the comment: Attached is the patch that tries to solve the issue for the strings, tuples, lists and dictionaries. Tuples, lists and dictionaries use the same value for the threshold. There's a helper method in the tests that is generic to all mentioned types. This issue was discussed during the Helsinki Python sprint. -- nosy: +Elena.Oat Added file: http://bugs.python.org/file36292/issue19217-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19217 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22123] Provide a direct function for types.SimpleNamespace()
Mark Dickinson added the comment: +1 for the 'namespace' builtin. It looks as though whoever wrote `SimpleNamespace.__repr__` anticipated this: ns = types.SimpleNamespace(a=3, b=4) ns namespace(a=3, b=4) -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22123 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22123] Provide a direct function for types.SimpleNamespace()
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22123 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22159] smtpd.PureProxy and smtpd.DebuggingServer do not work with decode_data=True
New submission from Milan Oberkirch: I fixed this for smtpd.DebuggingServer in the patch for issue 21725 but think it is an independent issue which is resolvable with a small patch. -- components: Library (Lib) files: decode_data_proxy_debugging_server.patch keywords: patch messages: 224967 nosy: jesstess, pitrou, r.david.murray, zvyn priority: normal severity: normal status: open title: smtpd.PureProxy and smtpd.DebuggingServer do not work with decode_data=True versions: Python 3.5 Added file: http://bugs.python.org/file36293/decode_data_proxy_debugging_server.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22159 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22123] Provide a direct function for types.SimpleNamespace()
Nick Coghlan added the comment: types.SimpleNamespace was added as an implementation detail of the sys.implementation PEP. It's not a builtin yet, solely because we get far fewer arguments about the contents of the types module than we do builtins :) I'd be +1 on a PEP to also expose it as a namespace builtin. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22123 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22158] RFC 6531 (SMTPUTF8) support in smtpd.PureProxy
Changes by Milan Oberkirch milan...@oberkirch.org: -- keywords: +patch Added file: http://bugs.python.org/file36294/pp_smtputf8.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22158 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22027] RFC 6531 (SMTPUTF8) support in smtplib
Changes by Milan Oberkirch milan...@oberkirch.org: Removed file: http://bugs.python.org/file36159/smtpd_remove_deprecated_attrs_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22027 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16399] argparse: append action with default list adds to list instead of overriding
paul j3 added the comment: In my suggestion I used if 'current_value is default': without going into detail. The use of an 'is' test for integer values is tricky, as discussed in http://bugs.python.org/issue18943 int(42) is 42# True int(257) is 257 # False As with your 'self.reset_dest', in 18943 I suggested using a boolean flag instead of the 'is' test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16399 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22123] Provide a direct function for types.SimpleNamespace()
Barry A. Warsaw added the comment: On Aug 06, 2014, at 09:43 PM, Nick Coghlan wrote: I'd be +1 on a PEP to also expose it as a namespace builtin. Is a PEP necessary? Seems like a rather isolated and simple enhancement. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22123 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22123] Provide a direct function for types.SimpleNamespace()
Nick Coghlan added the comment: It's a new builtin, so I think at least a simple PEP is needed for traceability. The existence of types.SimpleNamespace should let us duck 99% of the bikeshedding - it's a new name for an existing type, not a new type. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22123 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14534] Add method to mark unittest.TestCases as do not run.
Antoine Pitrou added the comment: abstract_test_class anyone? (or abstractTestClass if that looks more consistent) (not that I would need it myself!) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14534 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22123] Provide a direct function for types.SimpleNamespace()
Antoine Pitrou added the comment: Agreed that a PEP would be necessary, even if it ends up sweet and simple. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22123 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22116] Weak reference support for C function objects
Roundup Robot added the comment: New changeset 87f940e85cb0 by Antoine Pitrou in branch 'default': Issue #22116: C functions and methods (of the 'builtin_function_or_method' type) can now be weakref'ed. Patch by Wei Wu. http://hg.python.org/cpython/rev/87f940e85cb0 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22116 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22116] Weak reference support for C function objects
Antoine Pitrou added the comment: I have committed your patch. Thank you very much for contributing! -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22116 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22160] Windows installers need to be updated following OpenSSL security reelase
New submission from Alex Gaynor: https://www.openssl.org/news/secadv_20140806.txt -- components: Interpreter Core, Library (Lib) keywords: security_issue messages: 224976 nosy: alex, benjamin.peterson, steve.dower priority: normal severity: normal status: open title: Windows installers need to be updated following OpenSSL security reelase versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22160 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15974] Optional compact and colored output for regrest
Changes by Antoine Pitrou pit...@free.fr: -- dependencies: -move regrtest over to using more unittest infrastructure resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15974 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14534] Add method to mark unittest.TestCases as do not run.
Ezio Melotti added the comment: abstractTestClass/abstractBaseClass were up next in the list of names that I was considering, but they are not too explicit about the fact the the test case will get ignored/skipped (especially if one is not familiar iwth the concept and behavior of abstract class). They are not too obscure either though, so those would be fine with me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14534 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22092] Executing some tests inside Lib/unittest/test individually throws Error
Roundup Robot added the comment: New changeset 668f6938fb1c by Ezio Melotti in branch '3.4': #22092: use absolute imports in unittest tests. Patch by Vajrasky Kok. http://hg.python.org/cpython/rev/668f6938fb1c New changeset 09f56fdcacf1 by Ezio Melotti in branch 'default': #22092: merge with 3.4. http://hg.python.org/cpython/rev/09f56fdcacf1 New changeset 6e5a2ac30c7e by Ezio Melotti in branch '2.7': #22092: use absolute imports in unittest tests. Patch by Vajrasky Kok. http://hg.python.org/cpython/rev/6e5a2ac30c7e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22092 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22092] Executing some tests inside Lib/unittest/test individually throws Error
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: michael.foord - ezio.melotti resolution: - fixed stage: patch review - resolved status: open - closed versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22092 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14373] C implementation of functools.lru_cache
Raymond Hettinger added the comment: I think we should increase the priority of this issue. I don't think so at all. The LRU cache we have now is plenty efficient for its intended use cases (caching I/O bound functions and expensive functions). If is only unsuitable for functions that are already blazingly fast. Getting the locks right and carefully looking for re-entrancy issues is important. Also, keeping the memory footprint of the keys small is important (if people didn't care about space, they wouldn't be using an LRU at all). I will look at this but currently have much higher priorities elsewhere in Python (adding C accelerators for tricky code is less important for the time being -- we have a long time until 3.5). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14373] C implementation of functools.lru_cache
Antoine Pitrou added the comment: Le 06/08/2014 21:19, Raymond Hettinger a écrit : I don't think so at all. The LRU cache we have now is plenty efficient for its intended use cases (caching I/O bound functions and expensive functions). If is only unsuitable for functions that are already blazingly fast. This is an unrealistic simplification. Many functions can be either expensive or blazingly fast, depending on their input (typical examples are re.compile(), math.factorial()...). But the decision of applying the lru_cache decorator is a compile-time binary decision: it cannot encode the varying properties of the function depending on its inputs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22160] Windows installers need to be updated following OpenSSL security reelase
Ned Deily added the comment: This wouldn't apply to 3.3 since we don't do binary installers for branches in security-fix mode (as discussed recently in Issue21671). Adding Larry as 3.4 release manager. -- nosy: +larry, ned.deily priority: normal - high versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22160 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19217] Calling assertEquals for moderately long list takes too long
Ezio Melotti added the comment: Thanks Puneeth for the initial tests and Elena for expanding the fix and the tests to cover assertDictEqual too. I reworked a bit Elena's patch to make the checks in case.py more consistent and simplified the tests. With the attached patch, unittest_scse.py works fine, producing this output: FF == FAIL: test_compare (__main__.SCSE) -- Traceback (most recent call last): File unittest_scse.py, line 14, in test_compare self.assertEqual(arr1, arr2) AssertionError: Lists differ: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,[29953 chars]1, 1] != [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,[29953 chars]2, 2] First differing element 0: 1 2 == FAIL: test_compare_2 (__main__.SCSE) -- Traceback (most recent call last): File unittest_scse.py, line 24, in test_compare_2 self.assertEqual(arr1, arr2) AssertionError: Lists differ: [1, 1[29932 chars] 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] != [1, 1[29932 chars] 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2] First differing element : 1 2 -- Ran 2 tests in 0.010s FAILED (failures=2) -- stage: test needed - commit review Added file: http://bugs.python.org/file36295/issue19217-3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19217 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22118] urljoin fails with messy relative URLs
Demian Brecht added the comment: Update based on review comments, added legacy support, fixed the tests up. -- Added file: http://bugs.python.org/file36296/issue22118_1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22118 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22160] Windows installers need to be updated following OpenSSL security reelase
Roundup Robot added the comment: New changeset cbcb10123451 by Zachary Ware in branch '2.7': Issue #22160: Update OpenSSL to 1.0.1i for the Windows build. http://hg.python.org/cpython/rev/cbcb10123451 New changeset 8219664dd2e4 by Zachary Ware in branch '3.4': Issue #22160: Update OpenSSL to 1.0.1i for the Windows build. http://hg.python.org/cpython/rev/8219664dd2e4 New changeset 275da9f9d7d7 by Zachary Ware in branch 'default': Issue #22160: Update OpenSSL to 1.0.1i for the Windows build. http://hg.python.org/cpython/rev/275da9f9d7d7 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22160 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22160] Windows installers need to be updated following OpenSSL security reelase
Zachary Ware added the comment: Update should be complete for Windows. -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22160 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22160] Windows installers need to be updated following OpenSSL security release
Zachary Ware added the comment: That is, the build process is updated; installers are not my department :) -- title: Windows installers need to be updated following OpenSSL security reelase - Windows installers need to be updated following OpenSSL security release ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22160 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21308] PEP 466: backport ssl changes
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file36075/ssl-backport.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21308 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com