[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-08-06 Thread Terry J. Reedy
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

[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2014-08-06 Thread Serhiy Storchaka
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

[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2014-08-06 Thread Jason Heeris
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.

[issue22154] ZipFile.open context manager support

2014-08-06 Thread Ralph Broenink
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

[issue22154] ZipFile.open context manager support

2014-08-06 Thread Serhiy Storchaka
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

[issue22138] patch.object doesn't restore function defaults

2014-08-06 Thread Sean McCully
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

[issue21091] EmailMessage.is_attachment should be a method

2014-08-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: commit review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21091 ___ ___

[issue22138] patch.object doesn't restore function defaults

2014-08-06 Thread Ezio Melotti
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

[issue22138] patch.object doesn't restore function defaults

2014-08-06 Thread Michael Foord
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

[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2

2014-08-06 Thread Ezio Melotti
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 ___

[issue22154] ZipFile.open context manager support

2014-08-06 Thread Ralph Broenink
Ralph Broenink added the comment: Perhaps this should be documented then :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22154 ___ ___

[issue22154] ZipFile.open context manager support

2014-08-06 Thread Serhiy Storchaka
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

[issue22155] Out of date code example for tkinter's createfilehandle

2014-08-06 Thread Martin Panter
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

[issue22155] Out of date code example for tkinter's createfilehandler

2014-08-06 Thread Martin Panter
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

[issue3638] Remove module level functions in _tkinter that depend on TkappObject

2014-08-06 Thread Martin Panter
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 ___

[issue22120] Return converter code generated by Argument Clinic has a warning for unsigned types

2014-08-06 Thread STINNER Victor
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

[issue22156] Fix compiler warnings

2014-08-06 Thread STINNER Victor
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

[issue21965] Add support for Memory BIO to _ssl

2014-08-06 Thread Jean-Paul Calderone
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 ___

[issue21965] Add support for Memory BIO to _ssl

2014-08-06 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@hybridcluster.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21965 ___ ___

[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2

2014-08-06 Thread Berker Peksag
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). --

[issue22155] Out of date code example for tkinter's createfilehandler

2014-08-06 Thread Serhiy Storchaka
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 ___

[issue22156] Fix compiler warnings

2014-08-06 Thread Serhiy Storchaka
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

[issue18841] math.isfinite fails with Decimal sNAN

2014-08-06 Thread Mark Dickinson
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

[issue22138] patch.object doesn't restore function defaults

2014-08-06 Thread Michael Foord
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

[issue22157] FAIL: test_with_pip (test.test_venv.EnsurePipTest)

2014-08-06 Thread snehal
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)

[issue22157] FAIL: test_with_pip (test.test_venv.EnsurePipTest)

2014-08-06 Thread snehal
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

[issue21965] Add support for Memory BIO to _ssl

2014-08-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Perhaps Glyph wants to chime in :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21965 ___ ___

[issue6422] timeit called from within Python should allow autoranging

2014-08-06 Thread Antoine Pitrou
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 ___

[issue2527] Pass a namespace to timeit

2014-08-06 Thread Antoine Pitrou
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

[issue22148] frozen.c should #include importlib.h instead of importlib.h

2014-08-06 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22148 ___ ___

[issue22080] Add windows_helper module helper

2014-08-06 Thread Claudiu Popa
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 ___

[issue22080] Add windows_helper module helper

2014-08-06 Thread Claudiu Popa
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 ___

[issue20056] Got deprecation warning when running test_shutil.py on Windows NT 6

2014-08-06 Thread Vajrasky Kok
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

[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-08-06 Thread Roundup Robot
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

[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-08-06 Thread Serhiy Storchaka
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 ___

[issue22035] Fatal error in dbm.gdbm

2014-08-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22035 ___ ___

[issue16465] dict creation performance regression

2014-08-06 Thread Serhiy Storchaka
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 ___

[issue14373] C implementation of functools.lru_cache

2014-08-06 Thread Serhiy Storchaka
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

[issue16465] dict creation performance regression

2014-08-06 Thread Antoine Pitrou
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:

[issue14373] C implementation of functools.lru_cache

2014-08-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: low - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list

[issue18004] test_list.test_overflow crashes Win64

2014-08-06 Thread Roundup Robot
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 ___

[issue14373] C implementation of functools.lru_cache

2014-08-06 Thread Antoine Pitrou
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

[issue18004] test_list.test_overflow crashes Win64

2014-08-06 Thread Serhiy Storchaka
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 ___

[issue5411] Add xz support to shutil

2014-08-06 Thread Serhiy Storchaka
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

[issue21039] pathlib strips trailing slash

2014-08-06 Thread Antoine Pitrou
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

[issue5411] Add xz support to shutil

2014-08-06 Thread Roundup Robot
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

[issue5411] Add xz support to shutil

2014-08-06 Thread Roundup Robot
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

[issue21039] pathlib strips trailing slash

2014-08-06 Thread Serhiy Storchaka
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

[issue5411] Add xz support to shutil

2014-08-06 Thread Serhiy Storchaka
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

[issue5411] Add xz support to shutil

2014-08-06 Thread Antoine Pitrou
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 ___

[issue14061] Misc fixes and cleanups in archiving code in shutil and test_shutil

2014-08-06 Thread Serhiy Storchaka
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

[issue16314] Support xz compression in distutils

2014-08-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16314 ___ ___

[issue10803] ctypes: better support of bytearray objects

2014-08-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10803 ___ ___

[issue21585] Run Tkinter tests with wantobjects=False

2014-08-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21585 ___ ___

[issue18844] allow weights in random.choice

2014-08-06 Thread Serhiy Storchaka
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 ___

[issue18615] sndhdr.whathdr could return a namedtuple

2014-08-06 Thread Serhiy Storchaka
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``,

[issue18615] sndhdr.whathdr could return a namedtuple

2014-08-06 Thread Claudiu Popa
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 ___

[issue18844] allow weights in random.choice

2014-08-06 Thread Antoine Pitrou
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). --

[issue20056] Got deprecation warning when running test_shutil.py on Windows NT 6

2014-08-06 Thread Serhiy Storchaka
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

[issue21965] Add support for Memory BIO to _ssl

2014-08-06 Thread Glyph Lefkowitz
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

[issue18844] allow weights in random.choice

2014-08-06 Thread Serhiy Storchaka
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

[issue18844] allow weights in random.choice

2014-08-06 Thread Antoine Pitrou
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

[issue10803] ctypes: better support of bytearray objects

2014-08-06 Thread Antoine Pitrou
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 ___

[issue22060] Clean up ctypes.test, use unittest test discovery

2014-08-06 Thread Serhiy Storchaka
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

[issue18844] allow weights in random.choice

2014-08-06 Thread Serhiy Storchaka
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

[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2

2014-08-06 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22150 ___ ___

[issue22157] FAIL: test_with_pip (test.test_venv.EnsurePipTest)

2014-08-06 Thread Ned Deily
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

[issue22060] Clean up ctypes.test, use unittest test discovery

2014-08-06 Thread Zachary Ware
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

[issue10803] ctypes: better support of bytearray objects

2014-08-06 Thread Serhiy Storchaka
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

[issue21585] Run Tkinter tests with wantobjects=False

2014-08-06 Thread Lita Cho
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

[issue22158] RFC 6531 (SMTPUTF8) support in smtpd.PureProxy

2014-08-06 Thread Milan Oberkirch
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

[issue16399] argparse: append action with default list adds to list instead of overriding

2014-08-06 Thread Yclept Nemo
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,

[issue19217] Calling assertEquals for moderately long list takes too long

2014-08-06 Thread Elena Oat
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

[issue22123] Provide a direct function for types.SimpleNamespace()

2014-08-06 Thread Mark Dickinson
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

[issue22123] Provide a direct function for types.SimpleNamespace()

2014-08-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22123 ___ ___

[issue22159] smtpd.PureProxy and smtpd.DebuggingServer do not work with decode_data=True

2014-08-06 Thread Milan Oberkirch
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:

[issue22123] Provide a direct function for types.SimpleNamespace()

2014-08-06 Thread Nick Coghlan
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

[issue22158] RFC 6531 (SMTPUTF8) support in smtpd.PureProxy

2014-08-06 Thread Milan Oberkirch
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 ___

[issue22027] RFC 6531 (SMTPUTF8) support in smtplib

2014-08-06 Thread Milan Oberkirch
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 ___

[issue16399] argparse: append action with default list adds to list instead of overriding

2014-08-06 Thread paul j3
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

[issue22123] Provide a direct function for types.SimpleNamespace()

2014-08-06 Thread Barry A. Warsaw
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

[issue22123] Provide a direct function for types.SimpleNamespace()

2014-08-06 Thread Nick Coghlan
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. --

[issue14534] Add method to mark unittest.TestCases as do not run.

2014-08-06 Thread Antoine Pitrou
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

[issue22123] Provide a direct function for types.SimpleNamespace()

2014-08-06 Thread Antoine Pitrou
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 ___

[issue22116] Weak reference support for C function objects

2014-08-06 Thread Roundup Robot
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:

[issue22116] Weak reference support for C function objects

2014-08-06 Thread Antoine Pitrou
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

[issue22160] Windows installers need to be updated following OpenSSL security reelase

2014-08-06 Thread Alex Gaynor
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

[issue15974] Optional compact and colored output for regrest

2014-08-06 Thread Antoine Pitrou
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

[issue14534] Add method to mark unittest.TestCases as do not run.

2014-08-06 Thread Ezio Melotti
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

[issue22092] Executing some tests inside Lib/unittest/test individually throws Error

2014-08-06 Thread Roundup Robot
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

[issue22092] Executing some tests inside Lib/unittest/test individually throws Error

2014-08-06 Thread Ezio Melotti
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

[issue14373] C implementation of functools.lru_cache

2014-08-06 Thread Raymond Hettinger
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

[issue14373] C implementation of functools.lru_cache

2014-08-06 Thread Antoine Pitrou
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

[issue22160] Windows installers need to be updated following OpenSSL security reelase

2014-08-06 Thread Ned Deily
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

[issue19217] Calling assertEquals for moderately long list takes too long

2014-08-06 Thread Ezio Melotti
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

[issue22118] urljoin fails with messy relative URLs

2014-08-06 Thread Demian Brecht
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

[issue22160] Windows installers need to be updated following OpenSSL security reelase

2014-08-06 Thread Roundup Robot
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

[issue22160] Windows installers need to be updated following OpenSSL security reelase

2014-08-06 Thread Zachary Ware
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 ___

[issue22160] Windows installers need to be updated following OpenSSL security release

2014-08-06 Thread Zachary Ware
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

[issue21308] PEP 466: backport ssl changes

2014-08-06 Thread Nick Coghlan
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 ___

  1   2   >