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

2016-10-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Put me down for -0. I don't think the minor convenience is worth the loss in clarity. -- ___ Python tracker ___

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

2016-10-24 Thread Big Stone
Big Stone added the comment: python.exe crashes when I try this python._pth: . Lib import site DLLs Lib\site-packages #python36.zip all variation I try on Lib\site-packages do fail, when I not commenting # the line... Nevertheless, jupyter/numpy/bokeh do work with original setting. I'm lost

[issue27025] More human readable generated widget names

2016-10-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Agreed that ` is not best and should be changed. An alternative should be in next release. I looked back at the output in msg268406. ! is similar to | but shorter, and better for that. It is also, generally, thicker, which is better. With the font used on

[issue25002] Deprecate asyncore/asynchat

2016-10-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Hi, Attached is the patch that adds pending deprecation warnings to asyncore and asynchat. Please review. Thanks :) -- keywords: +patch nosy: +Mariatta Added file: http://bugs.python.org/file45210/issue25002.patch

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

2016-10-24 Thread Al Sweigart
Al Sweigart added the comment: > How about logger.disabled = True. This seems to violate "there should be one and only one way to do it". What happens when logging.disabled is True but then logging.disable(logging.NOTSET) is called? I could see this being a gotcha. Since logging.CRITICAL is

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

2016-10-24 Thread Xiang Zhang
Xiang Zhang added the comment: > We could use sys.maxsize instead of logging.CRITICAL to disable any custom > logging levels as well if this is a concern. sys.maxsize is not the upper bound limit of integers in Python. There is no such value in Python3. > The use case I've found is that I

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

2016-10-24 Thread Al Sweigart
Al Sweigart added the comment: xiang.zhang: The use case I've found is that I often have logging enabled while writing code, and then want to shut it off once I've finished. This might not be everyone's use case, but this is a backwards-compatible change since it's currently a required

[issue28517] Dead code in wordcode

2016-10-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: +0 The situation this addresses isn't common and the patch will rarely produce a perceptable benefit (just making the disassembly look a little nicer). That said, change looks simple enough and doesn't add any overhead. -- nosy: +rhettinger

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

2016-10-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: Given that a user can add their on levels, I think that having a default would be misleading (having no arguments implies total disabling but with custom levels the default of CRITICAL might not disable all messages). -- nosy: +rhettinger

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

2016-10-24 Thread Xiang Zhang
Xiang Zhang added the comment: Is disabling all logging messages a common need? Maybe other levels are common but we can't know. And at least the doc patch needs a versionchanged tag. -- nosy: +xiang.zhang ___ Python tracker

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2016-10-24 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, very nice. (And no worries on taking an as-you-have-time approach to this - you'll see from the dates on some of the referenced issues below that even I'm in that situation where runpy is concerned) I think you're right that offering a 2-phase load/run API

[issue28426] PyUnicode_AsDecodedObject can only return unicode now

2016-10-24 Thread Xiang Zhang
Xiang Zhang added the comment: Marc-Andre, shouldn't the C API of unicode.encode() be PyUnicode_AsEncodedString instead of PyUnicode_AsEncodedUnicode now? BTW Serhiy, how about PyUnicode_AsEncodedObject? Not see it in your deprecate list. -- ___

[issue28525] Incorrect documented parameter for gc.collect

2016-10-24 Thread Javier Rey
Changes by Javier Rey : -- assignee: docs@python components: Documentation files: gc_collect_doc_fix.patch keywords: patch nosy: docs@python, vierja priority: normal severity: normal status: open title: Incorrect documented parameter for gc.collect versions: Python

[issue26682] Ttk Notebook tabs do not show with 1-2 char names

2016-10-24 Thread Ned Deily
Changes by Ned Deily : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue26571] turtle regression in 3.5

2016-10-24 Thread Robert Harder
Robert Harder added the comment: Thanks for pointing out the workaround. Was driving me crazy. Possible fix is to add TurtleScreen._RUNNING = True ~line 967 in turtle.py, in TurtleScreen.__init__ function. -- nosy: +Robert Harder ___ Python

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

2016-10-24 Thread Steve Dower
Steve Dower added the comment: Might have to use a backslash in the path - I don't remember whether I tried to handle forward slashes or not, but I suspect not. Definitely tried it with site-packages though. -- ___ Python tracker

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

2016-10-24 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list

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

2016-10-24 Thread Al Sweigart
New submission from Al Sweigart: As a convenience, we could make the default argument for logging.disable()'s lvl argument as logging.CRITICAL. This would make disabling all logging messages: logging.disable() ...instead of the more verbose: logging.disable(logging.CRITICAL) This one-line

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

2016-10-24 Thread Terry J. Reedy
New submission from Terry J. Reedy: idlelib.configdialog uses the British spelling 'colour' instead of the American spelling 'color' everywhere except for externally mandated import and parameter names and in some recent comments. idlelib uses 'color' everywhere else. # change 'colour' to

[issue25684] ttk.OptionMenu radiobuttons aren't unique between two instances of OptionMenu

2016-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.7 -Python 3.4 ___ Python tracker ___

[issue3015] tkinter with wantobjects=False has been broken for some time

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

[issue25464] Tix HList header_exists should be "exist"

2016-10-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset f57078cf5f13 by Serhiy Storchaka in branch '2.7': Issue #25464: Fixed HList.header_exists() in Tix module by adding https://hg.python.org/cpython/rev/f57078cf5f13 New changeset e928afbcc18a by Serhiy Storchaka in branch '3.5': Issue #25464: Fixed

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

2016-10-24 Thread Big Stone
New submission from Big Stone: on WinPython-64bit-3.6.0.0Zerorc2.exe, python-3.6.0b2 based, I can't get IDLEX working with "python._pth". If I put "Lib\site-packages\" in python._pth, python.exe dies. If I put "#Lib\site-packages\", idlexlib is said "unable to located". Could it be a

[issue28426] PyUnicode_AsDecodedObject can only return unicode now

2016-10-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: As I already mentioned, PyUnicode_AsEncodedUnicode() needs to stay, since it's the C API for unicode.encode(). The others can be deprecated. -- ___ Python tracker

[issue26085] Tkinter spoils the input text

2016-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Does anybody want to provide documentation patch? Otherwise this issue will be closed as "not a bug". -- assignee: -> docs@python components: +Documentation nosy: +docs@python ___ Python tracker

[issue26340] modal dialog with transient method; parent window fails to iconify

2016-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue26660] tempfile.TemporaryDirectory() cleanup exception on Windows if readonly files created

2016-10-24 Thread Kyle Altendorf
Changes by Kyle Altendorf : -- nosy: +altendky ___ Python tracker ___ ___ Python-bugs-list

[issue22757] TclStackFree: incorrect freePtr. Call out of sequence?

2016-10-24 Thread Zachary Ware
Changes by Zachary Ware : -- resolution: -> not a bug stage: test needed -> resolved status: pending -> closed ___ Python tracker

[issue22757] TclStackFree: incorrect freePtr. Call out of sequence?

2016-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue26682] Ttk Notebook tabs do not show with 1-2 char names

2016-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Tk bug tracker is http://core.tcl.tk/tk/ticket. I don't think we can do something from our side. -- resolution: -> third party ___ Python tracker

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2016-10-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Never mind the second question. -- ___ Python tracker ___ ___

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2016-10-24 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Shouldn't "time part" underlined in my previous note be "date part" instead? Also, does non-zero mean non-empty? -- ___ Python tracker

[issue27025] More human readable generated widget names

2016-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Now it is clear that '`' is bad prefix. There are 32 non-alphanumerical non-control ASCII characters: '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', ':', ';', '<', '=', '>', '?', '@', '[', '\\', ']', '^', '_', '`', '{', '|', '}',

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2016-10-24 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: belopolsky, could you tell me what it is wrong with the doc about time.strptime ? -- ___ Python tracker ___

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

2016-10-24 Thread Eryk Sun
Eryk Sun added the comment: > Windows 7 is very old. 3.8 will probably be the last Python version to support Windows 7 (2020-01 EOL). 3.6 is the last to support Vista. -- nosy: +eryksun ___ Python tracker

[issue28341] cpython tip fails to build on Mac OS X 10.11.6 w/ XCode 8.0

2016-10-24 Thread Ned Deily
Ned Deily added the comment: There clearly was a specific problem introduced with the 10.12 SDK. It may be possible to work around by adding AVAILABILITY macros at appropriate spots in C code or some such. If someone is interested in supplying a patch, I'm willing to consider applying it

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

2016-10-24 Thread Ned Deily
Ned Deily added the comment: Kamran, the image you supplied shows that you are trying to use IDLE from Python 3.2.3. 3.2.3 is very old and no longer supported. Also, Windows 7 is very old. The last binary release of Python 3.2.x was 3.2.5 so you could try installing that version. Or,

[issue28341] cpython tip fails to build on Mac OS X 10.11.6 w/ XCode 8.0

2016-10-24 Thread Christoph Reiter
Christoph Reiter added the comment: Thanks for your response. I'm using MACOSX_DEPLOYMENT_TARGET etc. and it has worked so far building on 10.9/10/11 for running on 10.6. If I find a cause/fix I'll open a new issue. -- ___ Python tracker

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

2016-10-24 Thread Walker Hale IV
Walker Hale IV added the comment: This one-line patch should clarify the point. -- ___ Python tracker ___ ___

[issue28341] cpython tip fails to build on Mac OS X 10.11.6 w/ XCode 8.0

2016-10-24 Thread Ned Deily
Ned Deily added the comment: Christoph, building on a newer OS X release for an older OS X release is tricky and out-of-scope for this closed issue. (But, it likely has the same root cause. The simplest solution is to build on the lowest-supported release, e.g. 10.9. You may also have

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

2016-10-24 Thread Walker Hale IV
Changes by Walker Hale IV : -- assignee: -> docs@python components: +Documentation keywords: +patch nosy: +docs@python Added file: http://bugs.python.org/file45206/issue28516.diff ___ Python tracker

[issue28520] Failed to install Python 3.3.5 on OSX 10.11.6

2016-10-24 Thread Ned Deily
Ned Deily added the comment: Interesting! Up until the Python 3.4.2 and 2.7.9 releases, the python.org installers for Mac operating systems were produced as old-style "bundle" installer packages and were shipped in a .dmg container. The bundle format had long been deprecated, supplanted by

[issue28498] tk busy command

2016-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Shouldn't it be just an alias to tk_busy_hold?" > > Not sure, I figured since it is a separate command in tk I would make it a > separate command in Python, too. place is just an alias to place_configure despites the fact that in Tk "place" and "place

[issue28498] tk busy command

2016-10-24 Thread klappnase
klappnase added the comment: Hi Serhiy, thanks for the feedback. "+def tk_busy(self, **kw): Shouldn't it be just an alias to tk_busy_hold?" Not sure, I figured since it is a separate command in tk I would make it a separate command in Python, too. "+def tk_busy_hold(self, **kw):

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

2016-10-24 Thread Kamran
Kamran added the comment: what do u mean *Kamran Muhammad* On Mon, Oct 24, 2016 at 5:26 PM, Stéphane Wirtel wrote: > > Stéphane Wirtel added the comment: > > We can't help you, there is no backtrace, no stacktrace, no dump, in fact, > nothing. can you provide more

[issue28517] Dead code in wordcode

2016-10-24 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Serhiy, Could you help me, because I don't understand your patch ? because a RETURN_VALUE will go to the end of the block, and in this case, I don't understand why there is a JUMP_FORWARD at 12 in Python 3.6. -- nosy: +matrixise

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

2016-10-24 Thread Pavel Savchenko
Pavel Savchenko added the comment: An implementation of this exists in pytest-mock. Recently an idea was brought up to shift the development of PR #57 into mock directly for everyone's benefit. https://github.com/pytest-dev/pytest-mock

[issue25152] venv documentation doesn't tell you how to specify a particular version of python

2016-10-24 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks, Stéphane :) Perhaps this can be updated into patch review stage? -- ___ Python tracker ___

[issue28465] python 3.5 magic number

2016-10-24 Thread Brett Cannon
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.cannon resolution: -> third party status: open -> closed

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

2016-10-24 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: We can't help you, there is no backtrace, no stacktrace, no dump, in fact, nothing. can you provide more details because without that, we can not reproduce your issue. -- ___ Python tracker

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

2016-10-24 Thread Kamran
Kamran added the comment: it is idle *Kamran Muhammad* On Mon, Oct 24, 2016 at 4:24 PM, Kamran wrote: > > Kamran added the comment: > > Is *THIS* any help?[image: Inline image 1] > > *Kamran Muhammad* > > On Sun, Oct 23, 2016 at 10:10 PM, SilentGhost

[issue28521] _PyEval_RequestCodeExtraIndex should return a globally valid index, not a ThreadState specific one

2016-10-24 Thread John Ehresman
New submission from John Ehresman: The index returned by _PyEval_RequestCodeExtraIndex is currently specific to the current thread state. This means that there will be problems if the index is used on another thread. It would be possible to set things up in my code so that

[issue28447] socket.getpeername() failure on broken TCP/IP connection

2016-10-24 Thread R. David Murray
R. David Murray added the comment: Your example does not show a destroyed socket object, so to what are you referring? Python won't recycle an object as garbage until there are no remaining references to it. If you think that there is information the socket object "knows" that it is

[issue23749] asyncio missing wrap_socket (starttls)

2016-10-24 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

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

2016-10-24 Thread R. David Murray
R. David Murray added the comment: Hmm. I guess we just assume it is obvious, given that the with statement examples name the variable 'stack', and the pop_all docs mention that no callbacks are called until it is closed "or at the end of a with statement". So, technically, using the result

[issue20766] reference leaks in pdb

2016-10-24 Thread Jack Liu
Jack Liu added the comment: Good to know the fix will be included Python official builds. Thanks. -- ___ Python tracker ___

[issue28520] Failed to install Python 3.3.5 on OSX 10.11.6

2016-10-24 Thread Jack Liu
New submission from Jack Liu: For some reason. I need to install Python 3.3.5 (64-bit) on OSX 10.11.6. I got installer from http://www.python.org/ftp/python/3.3.5/python-3.3.5-macosx10.6.dmg, failed to install Python 3.3.5 on OSX 10.11.6. See error in attached screenshot. I know it's able to

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

2016-10-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ee476248a74a by Raymond Hettinger in branch '3.6': Issue #5830: Remove old comment. Add empty slots. https://hg.python.org/cpython/rev/ee476248a74a -- nosy: +python-dev ___ Python tracker

[issue27939] Tkinter mainloop raises when setting the value of ttk.LabeledScale

2016-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is caused by replacing int() by self._tk.getint() in IntVar.get() (issue23880). But the failure can be reproduced even in 3.4 if set tk.wantobjects = 0 before creating root widget. One way is making getint() accepting floats. This fizes original

[issue23749] asyncio missing wrap_socket (starttls)

2016-10-24 Thread François
Changes by François : -- nosy: +Frzk ___ Python tracker ___ ___ Python-bugs-list

[issue28330] Use simpler and faster sched.Event definition

2016-10-24 Thread Raymond Hettinger
Raymond Hettinger added the comment: A Serhiy noted, this patch will break the class when two events are scheduled at the same time and priority. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue28518] execute("begin immediate") throwing OperationalError

2016-10-24 Thread Xiang Zhang
Xiang Zhang added the comment: Looks like commit 284676cf2ac8 in #10740 introduces this. Haven't read through the thread yet. -- ___ Python tracker ___

[issue28518] execute("begin immediate") throwing OperationalError

2016-10-24 Thread Jason R. Coombs
Changes by Jason R. Coombs : -- nosy: +jason.coombs ___ Python tracker ___ ___

[issue28519] Update pydoc tool to support generic types

2016-10-24 Thread Ivan Levkivskyi
New submission from Ivan Levkivskyi: It was proposed in the discussion of #27989 to update pydoc rendering of documentation of classes supporting generic types. Currently there are two ideas: 1. Keep the class header intact (i.e. listing actual runtime __bases__) and adding a separate section

[issue28447] socket.getpeername() failure on broken TCP/IP connection

2016-10-24 Thread Georgey
Georgey added the comment: Not only does the getpeername() method not work, but the socket instance itself has been destroyed as garbage by python. - I understand the former, but cannot accept the latter. -- resolution: not a bug -> wont fix status: closed -> pending

[issue28518] execute("begin immediate") throwing OperationalError

2016-10-24 Thread Марк Коренберг
Changes by Марк Коренберг : -- nosy: +mmarkk ___ Python tracker ___ ___

[issue28518] execute("begin immediate") throwing OperationalError

2016-10-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +berker.peksag, ghaering, serhiy.storchaka, xiang.zhang ___ Python tracker ___

[issue28498] tk busy command

2016-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: First, thank you Miguel and klappnase for your patches. But they should be provided in different way, as described in Python Developer’s Guide [1]. > I totally disagree of this change on your patch: This is not my patch. This is regenerated klappnase's. I

[issue28518] execute("begin immediate") throwing OperationalError

2016-10-24 Thread Florian Schulze
New submission from Florian Schulze: Using: conn = sqlite3.connect(':memory:', isolation_level='IMMEDIATE') conn.execute('begin immediate') Throws: sqlite3.OperationalError: cannot start a transaction within a transaction This didn't happen in previous versions and the conn.in_transaction

[issue28498] tk busy command

2016-10-24 Thread klappnase
klappnase added the comment: At least with python 3.4 here wantobjects still is valid, and personally I really hope that it remains this way, because I use to set wantobjects=False in my own code to avoid having to deal with errors because of some method or other unexpectedly returning

[issue28341] cpython tip fails to build on Mac OS X 10.11.6 w/ XCode 8.0

2016-10-24 Thread Christoph Reiter
Christoph Reiter added the comment: I get the same error when building python on osx 10.12 + xcode 8 for 10.9+ and then running it on 10.11. Any idea what could be the problem? -- nosy: +lazka ___ Python tracker

[issue28517] Dead code in wordcode

2016-10-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch fixes removing unreachable code after RETURN_VALUE in peephole optimizer. -- assignee: -> serhiy.storchaka keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file45202/peephole_remove_unreachable_code.patch