[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 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] https://git

[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 ___ ___ Python-bugs-list mailing list Unsu

[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': Issu

[issue28517] Dead code in wordcode

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[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 __

[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 #28314:

[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 file

[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

[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). -- _

[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

[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). -- nosy: +brett

[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

[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 ___ ___

[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 ___

[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 ___ ___ Python-bugs-list mailing list Unsubsc

[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

[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 ___ ___ Pytho

[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 ___ ___ Py

[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) priori

[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 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

[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 ___ __

[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 ___ ___ Python-bu

[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 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: no

[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 track

[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 by

[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 pa

[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] http://website-archive.mozilla.org/www.mozilla.org/firefox_releasenotes/en-US/

[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':

[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 ___

[issue28353] os.fwalk() unhandled exception when error occurs accessing symbolic link target

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23262] webbrowser module broken with Firefox 36+

2016-10-25 Thread Oleg Broytman
Oleg Broytman added the comment: Ah, I see. Ok then, see the new patch. -- Added file: http://bugs.python.org/file45216/webbrowser.py-3.5-newfox.patch ___ Python tracker ___

[issue28353] os.fwalk() unhandled exception when error occurs accessing symbolic link target

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset fe1fea4ded04 by Serhiy Storchaka in branch '3.5': Issue #28353: os.fwalk() no longer fails on broken links. https://hg.python.org/cpython/rev/fe1fea4ded04 New changeset e99ec3c77a63 by Serhiy Storchaka in branch '3.6': Issue #28353: os.fwalk() no lo

[issue28054] Diff for visually comparing actual with expected in mock.assert_called_with.

2016-10-25 Thread Michael Foord
Michael Foord added the comment: I like the idea and would be happy for it to be added to mock. -- ___ Python tracker ___ ___ Python-b

[issue20491] textwrap: Non-breaking space not honored

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

[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 #2049

[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: c

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

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a3892f49e1a by Serhiy Storchaka in branch 'default': Issue #28255: calendar.TextCalendar.prweek() no longer prints a space after https://hg.python.org/cpython/rev/4a3892f49e1a -- ___ Python tracker

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

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: prweek() and pryear() are changed only in 3.7. If this breaks somebody's code, there is enough time to update this code or rollback changes. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue23262] webbrowser module broken with Firefox 36+

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tests are failed with webbrowser.py-3.5-newfox.patch. -- versions: +Python 3.7 ___ Python tracker ___

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

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23262] webbrowser module broken with Firefox 36+

2016-10-25 Thread Oleg Broytman
Oleg Broytman added the comment: What's the error? Buildbot URL? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9f7505019767 by Serhiy Storchaka in branch '3.5': Issue #27275: Fixed implementation of pop() and popitem() methods in https://hg.python.org/cpython/rev/9f7505019767 New changeset 2def8a24c299 by Serhiy Storchaka in branch '3.6': Issue #27275: Fixed

[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 ___ ___ Python-bugs-list mailing li

[issue28528] Pdb.checkline()

2016-10-25 Thread Thomas Kluyver
New submission from Thomas Kluyver: Pdb.checkline() does a hasattr() check to protect against self.curframe not existing. self.curframe can also be None (if self.forget() or self.reset() was called), but checkline() does not handle this. The attached patch treats self.curframe == None as equiv

[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) -- Traceb

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

2016-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: +- Issue #28430: Fix iterator of C implemented asyncio.Future doesn't accept + non-None value is passed to it.send(val). This NEWS entry is not a coherent English sentence. Please revise. I don't understand it well enough to suggest a revision, but would re

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

2016-10-25 Thread INADA Naoki
INADA Naoki added the comment: I'm sorry about my bad English. > Fix iterator of C implemented asyncio.Future This meant: fut = asyncio.Future() # C implemented version of asyncio.Future it = iter(fut) # Iterator of it it.send(42) # raised TypeError before. It was not compatible with Pyt

[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 ___

[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 overrod

[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 list Unsubscribe: https:

[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

[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 ___

[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 Tim Peters
Tim Peters added the comment: This won't be changed - it's a near-universally mandated behavior across relevant standards. Many years ago it wasn't, but Knuth changed minds when he wrote: """ We must define x^0=1 for all x, if the binomial theorem is to be valid when x=0 , y=0 , and/or x=-y

[issue28029] Replace and empty strings

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Interestingly, initially string.replace() was implemented in terms of split/join. string.replace(s, '', s2, n) returned s for any s, s2 and n. After making replace() a method of str, in aca7b5eaf5e8 (1999-10-12), it became raising ValueError for empty patter

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

2016-10-25 Thread stephan
New submission from stephan: I have a small problem with python 3.5.2 64bit on win7 64 bit: I cannot check if an object is of type DirEntry (os.DirEntry or nt.DirEntry). Did I misunderstand something or what is wrong? Here is a log of my console: - In [

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: Applied: remote: notified python-check...@python.org of incoming changeset bb23770f82f1 remote: notified python-check...@python.org of incoming changeset 3b8dfe6f5bcb -- resolution: -> fixed status: open -> closed ___

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb23770f82f1 by Guido van Rossum in branch '3.6': Issue 25002: Deprecate asyncore/asynchat. Patch by Mariatta. https://hg.python.org/cpython/rev/bb23770f82f1 New changeset 3b8dfe6f5bcb by Guido van Rossum in branch 'default': Issue 25002: Deprecate

[issue28353] os.fwalk() unhandled exception when error occurs accessing symbolic link target

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset ec12e16ea6a1 by Serhiy Storchaka in branch '3.6': Issue #28353: Try to fix tests. https://hg.python.org/cpython/rev/ec12e16ea6a1 New changeset a0913dbadea6 by Serhiy Storchaka in branch 'default': Issue #28353: Try to fix tests. https://hg.python.or

[issue28531] Improve utf7 encoder memory usage

2016-10-25 Thread Xiang Zhang
New submission from Xiang Zhang: Currently utf7 encoder uses an aggressive memory allocation strategy: use the worst case 8. We can tighten the worst case. For 1 byte and 2 byte unicodes, the worst case could be 3*n + 2. For 4 byte unicodes, the worst case could be 6*n + 2. There are 2 cases.

[issue28531] Improve utf7 encoder memory usage

2016-10-25 Thread Xiang Zhang
Changes by Xiang Zhang : Removed file: http://bugs.python.org/file45219/utf7_encoder.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28531] Improve utf7 encoder memory usage

2016-10-25 Thread Xiang Zhang
Changes by Xiang Zhang : Added file: http://bugs.python.org/file45220/utf7_encoder.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue28531] Improve utf7 encoder memory usage

2016-10-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2016-10-25 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue28107] Update typing module documentation for NamedTuple

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks, applied! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python

[issue28107] Update typing module documentation for NamedTuple

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 78c0487562d9 by Guido van Rossum in branch '3.6': Issue #28107: Update typing module documentation for NamedTuple (Ivan) https://hg.python.org/cpython/rev/78c0487562d9 New changeset 709b19b9d6ea by Guido van Rossum in branch 'default': Issue #28107:

[issue28353] os.fwalk() unhandled exception when error occurs accessing symbolic link target

2016-10-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 470224ec16b6 by Serhiy Storchaka in branch '3.5': Issue #28353: Fixed tests of os.fwalk() with broken links. https://hg.python.org/cpython/rev/470224ec16b6 -- ___ Python tracker

[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: Can you tell me more about the crash? It doesn't cause a crash when I try it with my own install. -- ___ Python tracker ___ __

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change broke buildbots. $ ./python -We -m test.regrtest test_os Run tests sequentially 0:00:00 [1/1] test_os test test_os crashed -- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/libregrtest/runtest.py", line 151, in runtes

[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: I just see a windows screen poping up with (translated from french) "Python has stopped to work" a problem caused this program to stop working correctly. Windows is going to close this program and will inform you if a solution is available. -- __

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

2016-10-25 Thread R. David Murray
R. David Murray added the comment: Out of curiosity, what is your use case? You can grab an object you know is a DirEntry and take its type to get a type object to use in, for example, isinstance. posix.DirEntry is exposed...either nt.DirEntry should be too, or the posix one shouldn't be, and

[issue28333] input() with Unicode prompt produces mojibake on Windows

2016-10-25 Thread Steve Dower
Steve Dower added the comment: Not sure how I missed it originally, but that extra 1 char is actually very important: Python 3.6.0b2 (v3.6.0b2:b9fadc7d1c3f, Oct 10 2016, 20:36:51) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> i

[issue28532] Show sys.version when -V option is supplied twice.

2016-10-25 Thread INADA Naoki
New submission from INADA Naoki: As discussed on python-dev, this patch adds -VV option to python cmdline. $ ./python -V Python 3.6.0b2+ $ ./python -VV Python 3.6.0b2+ (3.6:84a3c5003510+, Oct 26 2016, 02:47:38) [GCC 6.2.0 20161005] The patch includes doc and man update. Please see, especially

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Guido van Rossum
Guido van Rossum added the comment: Sorry about that. Should I roll it back or is there a way to make the test pass (expect this deprecation)? -- ___ Python tracker ___

[issue28514] Python (IDLE?) freezes on file save on Windows

2016-10-25 Thread Kamran
Kamran added the comment: To Ned Deily I am using Python 3.2.3 because I use it at schoolo and my teacher said use this. Also because I do not know how to use any other model other than this because I was taught this at school. ANY SUGGESTIONS THANKS *Kamran Muhammad* On Mon, Oct 24, 2016

[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: Check in the Event Log viewer to see if there is an "Application Error" entry for python.exe. Also, if you run python.exe from a command prompt there may be more information displayed in the output. -- ___ Python track

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

2016-10-25 Thread Eryk Sun
Eryk Sun added the comment: os.DirEntry exists in 3.6, but the change wasn't backported to 3.5. See issue 27038. As a workaround, you can scan a non-empty directory to get a reference to the DirEntry type, e.g.: import os import tempfile with tempfile.NamedTemporaryFile() as f:

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

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, what is the reason for this code! But Python implementation of popitem() don't call overridden __getitem__/__delitem__. It uses dict.pop(). Simplified C implementation is closer to Python implementation. expiringdict is not the only implementation broke

[issue28259] Ctypes bug windows

2016-10-25 Thread Aristotel
Aristotel added the comment: Sorry for delay. I tried to write as small as possible example. Sorry if it is too big Usage: run 2 consoles, cd to dir with sources. In first console type 'python3 main.py test1.tox', and in second type 'python3 main.py test2.tox'. Wait 1-2 min until apps connect

[issue28333] input() with Unicode prompt produces mojibake on Windows

2016-10-25 Thread Eryk Sun
Eryk Sun added the comment: I forgot to include the link to the python-list thread where this came up: https://mail.python.org/pipermail/python-list/2016-October/715428.html -- ___ Python tracker _

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think replacing import asynchat import asyncore with with warnings.catch_warnings(): warnings.simplefilter('ignore', PendingDeprecationWarning) import asynchat import asyncore can help. asynchat and asyncore are used i

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Sorry about this Serhiy. I can work on another patch based on your code snippet later today. Should I create a different ticket about replacing asyncore and asynchat? -- ___ Python tracker

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Should I create a different ticket about replacing asyncore and asynchat? This may require several tickets, one per case. -- components: +Library (Lib) resolution: fixed -> stage: -> needs patch type: -> enhancement versions: +Python 3.7 ___

[issue28533] Replace asyncore

2016-10-25 Thread Mariatta Wijaya
New submission from Mariatta Wijaya: Deprecation warning was added to asyncore in https://bugs.python.org/issue25002 asyncore is still used in several tests and should be replaced. -- messages: 279439 nosy: Mariatta priority: normal severity: normal status: open title: Replace asyncore

[issue28534] Replace asynchat

2016-10-25 Thread Mariatta Wijaya
New submission from Mariatta Wijaya: Deprecation warning was added to asynchat in https://bugs.python.org/issue25002 asynchat is still used in several tests and should be replaced. -- components: asyncio messages: 279441 nosy: Mariatta, gvanrossum, yselivanov priority: normal severity:

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, asyncore/asynchat are used in smtpd! It looks to me that we should first write asyncio alternative to smtpd, then deprecate smtpd, and only after this we can deprecate asyncore/asynchat. -- dependencies: +Deprecate smtpd (based on deprecated asyn

[issue28533] Replace asyncore

2016-10-25 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- components: +asyncio nosy: +gvanrossum, yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks Serhiy, I created these two tickets: https://bugs.python.org/issue28534 https://bugs.python.org/issue28533 -- ___ Python tracker ___ _

[issue28529] 0 ** 0 should raise ArithmeticError

2016-10-25 Thread Mark Dickinson
Mark Dickinson added the comment: Also, https://en.wikipedia.org/wiki/Exponentiation#Zero_to_the_power_of_zero -- nosy: +mark.dickinson ___ Python tracker ___ ___

[issue17711] Persistent id in pickle with protocol version 0

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

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

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mail

[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue25002] Deprecate asyncore/asynchat

2016-10-25 Thread R. David Murray
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... -- ___ Python tracker ___

  1   2   >