[issue28536] Show the qualified name when a call fails

2016-10-25 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: HAHA, I lied. :D Attached is what I have so far. -- keywords: +patch Added file: http://bugs.python.org/file45225/0001-Make-failed-calls-to-methods-show-the-fully-qualifie.patch ___ Python tracker

[issue28509] dict.update allocates too much

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Here is a script that produces more compact output. The first column is a size after which the dict is resized. import sys p = 1 b = {} for i in range(1): a = {} b[i] = i a.update(b) s = sys.getsizeof(a) if s > p:

[issue28535] round seems to provide floor, not proper rounding

2016-10-25 Thread R. David Murray
R. David Murray added the comment: You must have missed the note about floating point (in the grey box). assertAlmostEqual is a bit of problem child in any case. There are open issues about improved functionality for the use case it tries to address. -- nosy: +r.david.murray

[issue25166] Windows AllUsers installation places uninstaller in user profile

2016-10-25 Thread Christian Ullrich
Christian Ullrich added the comment: This bug has been open for over a year and two subsequent releases, and its planned resolution depends on a change to WiX. The related WiX bug (see comment above) is scheduled to be implemented in WiX 4.0, which has no prospective release date. According

[issue28536] Show the qualified name when a call fails

2016-10-25 Thread Martin Panter
Martin Panter added the comment: Perhaps you should merge your work with Issue 2786. With a very brief look, the patches seem to take a similar approach. -- nosy: +martin.panter resolution: -> duplicate superseder: -> Names in function call exception should have class names, if

[issue2786] Names in function call exception should have class names, if they're methods

2016-10-25 Thread Ryan Gonzalez
Changes by Ryan Gonzalez : -- nosy: +Ryan.Gonzalez ___ Python tracker ___ ___

[issue25166] Windows AllUsers installation places uninstaller in user profile

2016-10-25 Thread Zachary Ware
Zachary Ware added the comment: Christian, your desire for a single MSI is well known, and repeatedly stating that desire is far more likely to raise ire rather than spur change. No, you did not need to include "ceterum censeo". The installer system that Steve created for us has many

[issue19542] WeakValueDictionary bug in setdefault()()

2016-10-25 Thread Armin Rigo
Armin Rigo added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19542] WeakValueDictionary bug in setdefault()()

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-25 Thread Big Stone
Big Stone added the comment: possible particularities of my PC vs yours: - I have no python entry at all in the regex - I have no py.exe, - I have no Visual Studio (but the compiler) with Windows 10, I don't know where is the even viewer. -- ___

[issue25166] Windows AllUsers installation places uninstaller in user profile

2016-10-25 Thread Steve Dower
Steve Dower added the comment: I won't be changing the official releases to be a single MSI again - the experience is too hostile towards regular users. As my (volunteer) time allows, I've been working on resolving the issue in WiX and we are totally capable of moving to a private build of

[issue28535] round seems to provide floor, not proper rounding

2016-10-25 Thread Mike Williamson
New submission from Mike Williamson: Ran a test that I expected to pass. When the test failed, I was struck by the strange (incorrect) assertion claim when using unittest.assertAlmostEqual: AssertionError: 32.78 != 32.775 within 2 places Uhmm... yes it does! I delved in, discovering that

[issue28536] Show the qualified name when a call fails

2016-10-25 Thread Ryan Gonzalez
New submission from Ryan Gonzalez: e.g. make this: class X: def __init__(self): pass X(1) print something like this: TypeError: X.__init__() takes 1 positional argument but 2 were given instead of: TypeError: __init__() takes 1 positional argument but 2 were given I'm trying to

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-25 Thread Eryk Sun
Eryk Sun added the comment: I installed "WinPython-64bit-3.6.0.0Zerorc2.exe" on Windows 10. As you can see below, the included version of IDLEX depends on idlelib implementation details that have changed between 3.5 and 3.6: C:\WinPython36\python-3.6.0b2.amd64>.\python Python 3.6.0b2

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-10-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: we talented! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18235] _sysconfigdata.py wrong on AIX installations

2016-10-25 Thread Martin Panter
Martin Panter added the comment: Regarding out-of-tree builds (Problem 3), see Issue 10656, which already has a potential patch. -- ___ Python tracker

[issue28509] dict.update allocates too much

2016-10-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I prefer the existing code be left as is. We've already greatly compacted the dictionaries. There is no need to be ultra-aggressive in shaving off every little corner. There is some advantage to having the dict be more sparse (fewer collisions,

[issue26240] Docstring of the subprocess module should be cleaned up

2016-10-25 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue28516] contextlib.ExitStack.__enter__ has trivial but undocumented behavior

2016-10-25 Thread Walker Hale IV
Walker Hale IV added the comment: Clarifying the documentation regarding the __enter__ method eliminates the need for further discussion on this point regarding pop_all(), which was really just the motivating use case. That leaves the question of the most readable documentation change that

[issue4347] Circular dependency causes SystemError when adding new syntax

2016-10-25 Thread Martin Panter
Martin Panter added the comment: I occasionally get the following error, due to Parser/parsetok.o being older than Include/graminit.h. ./python -E -S -m sysconfig --generate-posix-vars ; if test $? -ne 0 ; then echo "generate-posix-vars failed" ; rm -f ./pybuilddir.txt ; exit 1 ; fi Could

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread STINNER Victor
STINNER Victor added the comment: R. David Murray added the comment: > The alternative has already been written: aiosmtpd, in the aiolibs project. The question is should it be added to the stdlib... I suggest to keep it on PyPI to keep fast releases. --

[issue28537] abc module fails to reject instantiation of some multiply-inheriting classes that fail to implement abstract methods

2016-10-25 Thread Nathaniel Manista
New submission from Nathaniel Manista: The attached file when executed should fail (raise an exception) one line above where it actually does. Right? I discovered this in 2.7 but have confirmed that it's still a problem in 3.6.0b2. -- components: Library (Lib) files: abc_what.py

[issue2506] Add mechanism to disable optimizations

2016-10-25 Thread irdb
Changes by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28537] abc module fails to reject instantiation of some multiply-inheriting classes that fail to implement abstract methods

2016-10-25 Thread R. David Murray
R. David Murray added the comment: Thanks for the report, but this is a duplicate of issue 5996. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> abstract class instantiable when subclassing dict

[issue5996] abstract class instantiable when subclassing dict

2016-10-25 Thread R. David Murray
Changes by R. David Murray : -- nosy: +Nathaniel Manista, aleax, cvrebert ___ Python tracker ___

[issue26240] Docstring of the subprocess module should be cleaned up

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 720865fa61a4 by Martin Panter in branch '3.5': Issue #26240: Clean up the subprocess module doc string https://hg.python.org/cpython/rev/720865fa61a4 New changeset 8358c68579e9 by Martin Panter in branch '3.6': Issue #26240: Merge subprocess doc

[issue28509] dict.update allocates too much

2016-10-25 Thread INADA Naoki
INADA Naoki added the comment: I feel that accept one resize while merging is better. How about this? /* Do one big resize at the start, rather than incrementally * resizing. At most one resize happen while merging. */ if (USABLE_FRACTION(mp->ma_keys->dk_size)

[issue5996] abstract class instantiable when subclassing dict

2016-10-25 Thread Nathaniel Manista
Nathaniel Manista added the comment: Wait, really? My report came out of a real bug that I had in my system and shipped to my users; it wasn't academic or contrived at all. -- ___ Python tracker

[issue5996] abstract class instantiable when subclassing dict

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: Oh sorry. I received the emails in a strange order. I guess it can stay open. -- resolution: wont fix -> status: closed -> open ___ Python tracker

[issue28530] Howto detect if an object is of type os.DirEntry

2016-10-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: Eryk: With the fixes for issue25994 and issue26603, you'd want to use a with statement for the scandir; the use pattern in that example is guaranteed to cause a ResourceWarning on any directory with more than one entry. -- nosy: +josh.r

[issue28014] Strange interaction between methods in subclass of C OrderedDict

2016-10-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: Note: This class doesn't actually work on 3.4 in other ways (because __getitem__ is not idempotent, while OrderedDict assumes it is): >>> s = SimpleLRUCache(2) >>> s['t1'] = 1 >>> s SimpleLRUCache([('t1', 1)]) >>> s['t2'] = 2 >>> s SimpleLRUCache([('t1', 1)])

[issue5996] abstract class instantiable when subclassing dict

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: Where did you report that? I don't see your name on this bug -- it has a patch that's been unapplied for 5 years, so I doubt it's very important. -- ___ Python tracker

[issue28537] abc module fails to reject instantiation of some multiply-inheriting classes that fail to implement abstract methods

2016-10-25 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___

[issue27275] KeyError thrown by optimised collections.OrderedDict.popitem()

2016-10-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: The Python implementation of OrderedDict breaks for issue28014, at least on 3.4.3 (it doesn't raise KeyError, but if you check the repr, it's only showing one of the two entries, because calling __getitem__ is rearranging the OrderedDict). >>> s =

[issue10656] "Out of tree" build fails on AIX

2016-10-25 Thread Martin Panter
Martin Panter added the comment: The idea of the patches makes sense to me. Embedding the name of whatever directory Python was built in into the installed version of Modules/ld_so_aix.in does not seem very clean to me. Is there another way of doing this? Perhaps a file copy or symlink?

[issue10656] "Out of tree" build fails on AIX

2016-10-25 Thread Martin Panter
Martin Panter added the comment: Actually, why do you remove $(srcdir) for Modules/python.exp? This code was added in r88426; see . -- ___ Python tracker

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: OK, backed out the code changes, kept the docs. -- ___ Python tracker ___

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6eb3312a9a16 by Guido van Rossum in branch '3.6': Issue #25002: Back out asyncore/asynchat deprecation. https://hg.python.org/cpython/rev/6eb3312a9a16 New changeset 2879185bc511 by Guido van Rossum in branch 'default': Issue #25002: Back out

[issue28516] contextlib.ExitStack.__enter__ has trivial but undocumented behavior

2016-10-25 Thread Martin Panter
Martin Panter added the comment: I agree it is good to explicitly document the __enter__() result, rather than relying on assumptions and example code. The patch looks good to me. I don’t understand the problem with pop_all() though. Is there still a problem if we apply your patch?

[issue28516] contextlib.ExitStack.__enter__ has trivial but undocumented behavior

2016-10-25 Thread R. David Murray
R. David Murray added the comment: Actually, the __enter__ method is looked up on the class, so saying "the __enter__ method of the instance" could be a bit confusing. Also, many context managers return self, so 'trivially' isn't really necessary as a modifier. What if we added a sentence to

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-10-25 Thread Steve Dower
Steve Dower added the comment: If you right-click the Start button, Event Viewer is near the top. -- ___ Python tracker ___

[issue18235] _sysconfigdata.py wrong on AIX installations

2016-10-25 Thread Martin Panter
Martin Panter added the comment: Michael F.: It sounds like you have three separate but related problems: 1. Confusion between LDSHARED and BLDSHARED referring to the in-source build tree vs final installed files. I think this is what David and Michael H. were originally trying to fix here.

[issue5996] abstract class instantiable when subclassing dict

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: Honestly let's just forget about this. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue28535] round seems to provide floor, not proper rounding

2016-10-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: To be clear, let's look at the first failed assertion: AssertionError: 32.78 != 32.775 within 2 places It sure *looks* like 32.775 ought to round to 32.78. And indeed it would, if it actually was 32.775. But despite appearances, it isn't. Sure, the number

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Martin Panter
Martin Panter added the comment: Perhaps it is okay to keep the documentation changes, but I think either the library changes should be reverted or worked around where the modules are still in use. I normally run the tests with -Werror, and the failures I get are: * test_ssl, test_smtplib,

[issue27025] More human readable generated widget names

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good point about "@". I missed this. Thanks Terry. "!" LGTM. Committed to 3.6 too. I consider this as the fix of the bug in 3.6 feature. -- resolution: -> fixed status: open -> closed versions: +Python 3.7 ___

[issue28524] Set default argument of logging.disable() to logging.CRITICAL

2016-10-25 Thread Al Sweigart
Al Sweigart added the comment: As a general indicator, I did a google search for "logging.disable(logging.XXX)" for the different levels. The number of results passing ERROR, WARN, DEBUG, and INFO are under a couple dozen each. But the number of results for "logging.disable(logging.CRITICAL)"

[issue28515] Py3k warnings in Python 2.7 tests

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you David for your advise. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28426] PyUnicode_AsDecodedObject can only return unicode now

2016-10-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 25.10.2016 04:16, Xiang Zhang wrote: > Marc-Andre, shouldn't the C API of unicode.encode() be > PyUnicode_AsEncodedString instead of PyUnicode_AsEncodedUnicode now? You're right. I got confused with all the slight variations. > BTW Serhiy, how about

[issue28517] Dead code in wordcode

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___

[issue28523] Idlelib.configdialog: use 'color' insteadof 'colour'

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Offtopic. I would suggest you to install GNU sed. From GnuWin [1] or as a part of Cygwin distribution [2]. 4-line Python script can be replaced with one simple command: sed -i -re "s/([Cc])olour/\1olor/g" configdialog.py [1]

[issue26085] Document default tk Text class bindings for tkinter and IDLE

2016-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I want to recast this as a doc issue. The BINDINGS section of http://www.tcl.tk/man/tcl8.6/TkCmd/text.htm, near the bottom, has a list with 33 numbered items. The main categories of action include selection modification, cursor movement, and text deletion.

[issue28517] Dead code in wordcode

2016-10-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ah ok, thanks for the explanation. -- ___ Python tracker ___ ___

[issue28147] Unbounded memory growth resizing split-table dicts

2016-10-25 Thread INADA Naoki
Changes by INADA Naoki : -- priority: normal -> high stage: patch review -> commit review ___ Python tracker ___

[issue28517] Dead code in wordcode

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The main problem was that this bug caused unnecessary breakage of tests in Victor's bytecode [1]. Stéphane, the number of opcodes to the end of the block was counted incorrectly. Just off-by-one error. One unreachable opcode always was left. [1]

[issue28426] PyUnicode_AsDecodedObject can only return unicode now

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71dce630dc02 by Serhiy Storchaka in branch '3.4': Issue #28426: Fixed potential crash in PyUnicode_AsDecodedObject() in debug build. https://hg.python.org/cpython/rev/71dce630dc02 New changeset 74569ecd67e4 by Serhiy Storchaka in branch '3.5':

[issue28525] Incorrect documented parameter for gc.collect

2016-10-25 Thread Roundup Robot
New submission from Roundup Robot: New changeset 05b5e1aaedc5 by Benjamin Peterson in branch '3.5': fix name of keyword parameter to gc.collect() (closes #28525) https://hg.python.org/cpython/rev/05b5e1aaedc5 New changeset f9a04afaeece by Benjamin Peterson in branch '3.6': merge 3.5 (#28525)

[issue28517] Dead code in wordcode

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5784cc37b5f4 by Serhiy Storchaka in branch '3.6': Issue #28517: Fixed of-by-one error in the peephole optimizer that caused https://hg.python.org/cpython/rev/5784cc37b5f4 New changeset 8d571fab4d66 by Serhiy Storchaka in branch 'default': Issue

[issue27025] More human readable generated widget names

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 603ac788ed27 by Serhiy Storchaka in branch '3.6': Issue #27025: Generated names for Tkinter widgets now start by the "!" prefix https://hg.python.org/cpython/rev/603ac788ed27 New changeset 505949cb2692 by Serhiy Storchaka in branch 'default': Issue

[issue28515] Py3k warnings in Python 2.7 tests

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 77571b528f6a by Serhiy Storchaka in branch '2.7': Issue #28515: Fixed py3k warnings. https://hg.python.org/cpython/rev/77571b528f6a -- nosy: +python-dev ___ Python tracker

[issue25464] Tix HList header_exists should be "exist"

2016-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Subsequent to me suggesting a test, the 3.6 doc gained this: "Deprecated since version 3.6: This Tk extension is unmaintained and should not be used in new code." This answers my question about using it in IDLE. Good to apply this anyway, but no test is fine

[issue28465] python 3.5 magic number

2016-10-25 Thread 曹忠
曹忠 added the comment: Thanks, I see. Brett Cannon 于2016年10月25日 周二 00:28写道: Brett Cannon added the comment: Closing this as a third-party Debian issue (if it even matters as bytecode is an optimization local to a machine and so different magic numbers shouldn't matter).

[issue28408] Fix redundant code and memory leak in _PyUnicodeWriter_Finish

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: -> serhiy.storchaka stage: patch review -> commit review ___ Python tracker ___

[issue28408] Fix redundant code and memory leak in _PyUnicodeWriter_Finish

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 3.5 is free from both problems. They were introduced in f33433d9c163. -- versions: -Python 3.5 ___ Python tracker

[issue28527] Hack in `genericpath.commonprefix()` crashes if `m` argument is not indexable

2016-10-25 Thread Christian Heimes
Christian Heimes added the comment: That's correct. The function raises a TypeError when you pass in a wrong type. -- nosy: +christian.heimes resolution: -> not a bug stage: -> resolved status: open -> closed type: crash -> behavior ___ Python

[issue25464] Tix HList header_exists should be "exist"

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is hard to add tests because testing infrastructure for Tix doesn't exist. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue28426] PyUnicode_AsDecodedObject can only return unicode now

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > BTW Serhiy, how about PyUnicode_AsEncodedObject? Not see it in your deprecate > list. Indeed. It is not such useless as other functions (that support only the rot13 encoding), but it can be replaced with either PyUnicode_AsEncodedString or PyCodec_Encode

[issue28526] Use PyUnicode_AsEncodedString instead of PyUnicode_AsEncodedObject

2016-10-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: PyUnicode_AsEncodedObject() can return an object of arbitrary type, while PyUnicode_AsEncodedString() always returns bytes. The code that uses PyUnicode_AsEncodedObject() in the _curses module expects bytes, but does not check the type of the result. This

[issue28426] PyUnicode_AsDecodedObject can only return unicode now

2016-10-25 Thread Xiang Zhang
Xiang Zhang added the comment: LGTM. I can understand the wording. -- ___ Python tracker ___ ___

[issue5830] heapq item comparison problematic with sched's events

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file45214/test_sched_noncomparable_args.patch ___ Python tracker ___

[issue5830] heapq item comparison problematic with sched's events

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file45213/test_sched_noncomparable_args.patch ___ Python tracker

[issue28427] WeakValueDictionary next bug (with multithreading)

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Following patch fixes more cases. But I don't think it fixes race conditions, it just makes them less likely. Increased priority because this bug makes weakref.WeakValueDictionary unusable in multithread program. -- components: +Library (Lib)

[issue28426] PyUnicode_AsDecodedObject can only return unicode now

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka dependencies: +Use PyUnicode_AsEncodedString instead of PyUnicode_AsEncodedObject ___ Python tracker

[issue28430] asyncio: C implemeted Future cause Tornado test fail

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset b471447352ac by INADA Naoki in branch '3.6': Issue #28430: Fix iterator of C implemented asyncio.Future doesn't https://hg.python.org/cpython/rev/b471447352ac New changeset bd141ec2973a by INADA Naoki in branch 'default': Issue #28430: Fix iterator

[issue28527] Hack in `genericpath.commonprefix()` crashes if `m` argument is not indexable

2016-10-25 Thread Jonathan Hogg
New submission from Jonathan Hogg: If `genericpath.commonprefix()` is called with a non-indexable argument, then the check for passing in a list of lists/tuples will raise an exception due to the `m[0]` test. -- components: Library (Lib) messages: 279386 nosy: jonathanhogg priority:

[issue28314] ElementTree: Element.getiterator(tag) broken in 3.6

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset ca1b91829edf by Serhiy Storchaka in branch '3.5': Issue #28314: Added tests for xml.etree.ElementTree.Element.getiterator(). https://hg.python.org/cpython/rev/ca1b91829edf New changeset c14a2d2a3b19 by Serhiy Storchaka in branch '3.6': Issue

[issue28314] ElementTree: Element.getiterator(tag) broken in 3.6

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue20847] asyncio docs should call out that network logging is a no-no

2016-10-25 Thread Марк Коренберг
Марк Коренберг added the comment: Typical network logging is using syslog UDP. Sending UDP is never block. -- nosy: +mmarkk ___ Python tracker ___

[issue28523] Idlelib.configdialog: use 'color' insteadof 'colour'

2016-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Hmmm. I believe the Win10 Anniversary Update is supposed to include the new Ubuntu-bash-linux subsystem. I presume it should include sed. I need to see if I have the update and the subsystem, and what it includes. I could have done this one, within one

[issue28107] Update typing module documentation for NamedTuple

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: Update typing module dicumentation for NamedTuple -> Update typing module documentation for NamedTuple ___ Python tracker

[issue23262] webbrowser module broken with Firefox 36+

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would not be easier to drop a support of SeaMonkey 1.x and other ancient browsers? -- ___ Python tracker ___

[issue28430] asyncio: C implemeted Future cause Tornado test fail

2016-10-25 Thread INADA Naoki
INADA Naoki added the comment: > - It appears it also touches Misc/NEWS a bit too much. Please make sure to > not to commit that. I wont to move move this entry from "Core and Builtins" section to "Library" section: - Issue #26081: Added C implementation of asyncio.Future. Original patch

[issue28107] Update typing module dicumentation for NamedTuple

2016-10-25 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Guido, > Honestly I think it's better if this remains a "hidden" feature until we have > support for it in mypy. So let's wait for that. This patch now could be applied (since the mypy PR for this is merged). --

[issue5830] heapq item comparison problematic with sched's events

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a test. -- keywords: +patch versions: +Python 3.5, Python 3.6, Python 3.7 -Python 3.0, Python 3.1 Added file: http://bugs.python.org/file45213/test_sched_noncomparable_args.patch ___ Python tracker

[issue23262] webbrowser module broken with Firefox 36+

2016-10-25 Thread Oleg Broytman
Oleg Broytman added the comment: I don't think Firefox versions <36 are too old to be dropped. -- ___ Python tracker ___

[issue28527] Hack in `genericpath.commonprefix()` crashes if `m` argument is not indexable

2016-10-25 Thread Jonathan Hogg
Jonathan Hogg added the comment: While I agree that the documentation specifies that this function takes a list, the previous version did not require a list, just any object that is iterable. Unfortunately, this change is causing a break in real code (`xon.sh` in this case, which appears to

[issue28255] TextCalendar.prweek/month/year outputs an extra whitespace character

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8d54c2a1c796 by Serhiy Storchaka in branch '3.5': Issue #28255: calendar.TextCalendar().prmonth() no longer prints a space https://hg.python.org/cpython/rev/8d54c2a1c796 New changeset ebe5bd33f86f by Serhiy Storchaka in branch '3.6': Issue #28255:

[issue27268] Incorrect error message on float('')

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: -serhiy.storchaka versions: +Python 3.7 ___ Python tracker ___

[issue27275] KeyError thrown by optimised collections.OrderedDict.popitem()

2016-10-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: Serhiy, doesn't this patch "fix" the issue by making subclasses with custom __getitem__/__delitem__ implementations not have them invoked by the superclass's pop/popitem? The old code meant that pop and popitem didn't need to be overridden even if you

[issue27275] KeyError thrown by optimised collections.OrderedDict.popitem()

2016-10-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: Explaining expiringdict's issue: It's two race conditions, with itself, not another thread. Example scenario (narrow race window): 1. An entry has an expiry time of X (so it will self-delete at time X or later) 2. At time X-1, the PySequence_Contains check is

[issue28526] Use PyUnicode_AsEncodedString instead of PyUnicode_AsEncodedObject

2016-10-25 Thread Josh Rosenberg
Josh Rosenberg added the comment: LGTM. -- nosy: +josh.r ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27495] Pretty printing sorting for set and frozenset instances

2016-10-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: There seems to be consensus that this should be treated as a bug fix, not a new feature. Could this still make it into 3.6 even though it missed the first beta? -- nosy: +steven.daprano ___ Python tracker

[issue28529] 0 ** 0 should raise ArithmeticError

2016-10-25 Thread Jáchym Barvínek
Jáchym Barvínek added the comment: Sorry, It should be 0.0 ** 0 == 0 ** 0.0 == 0.0 ** 0.0 == 1.0 of course. -- ___ Python tracker ___

[issue23262] webbrowser module broken with Firefox 36+

2016-10-25 Thread Oleg Broytman
Oleg Broytman added the comment: Oops, yes, mea culpa, sorry. Patch for the test added. -- Added file: http://bugs.python.org/file45218/test_webbrowser.py-3.5-newfox.patch ___ Python tracker

[issue28529] 0 ** 0 should raise ArithmeticError

2016-10-25 Thread Jáchym Barvínek
New submission from Jáchym Barvínek: 0 ** 0 is mathematically undefined and equivalent to 0/0. 0/0 correctly raises ZeroDivisionError, but 0 ** 0 == 1. Also 0.0 ** 0 == 0 ** 0.0 == 0.0 ** 0.0 == 0.0. Similarly for math.pow. -- components: Interpreter Core messages: 279410 nosy: Jáchym

[issue23262] webbrowser module broken with Firefox 36+

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > I don't think Firefox versions <36 are too old to be dropped. Just Firefox versions <1.5. Firefox 1.5 released 11 years ago supported options -new-window and -new-tab [1]. [1]

[issue23262] webbrowser module broken with Firefox 36+

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: $ ./python -m test.regrtest -vuall test_webbrowser ... == FAIL: test_open (test.test_webbrowser.MozillaCommandTest) --

[issue28408] Fix redundant code and memory leak in _PyUnicodeWriter_Finish

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue28408] Fix redundant code and memory leak in _PyUnicodeWriter_Finish

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9d618cebfc21 by Serhiy Storchaka in branch '3.6': Issue #28408: Fixed a leak and remove redundant code in _PyUnicodeWriter_Finish(). https://hg.python.org/cpython/rev/9d618cebfc21 New changeset 24c3f997bd1a by Serhiy Storchaka in branch 'default':

[issue20491] textwrap: Non-breaking space not honored

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset fcabef0ce773 by Serhiy Storchaka in branch '3.5': Issue #20491: The textwrap.TextWrapper class now honors non-breaking spaces. https://hg.python.org/cpython/rev/fcabef0ce773 New changeset bfa400108fc5 by Serhiy Storchaka in branch '3.6': Issue

  1   2   >