[issue16182] readline: Wrong tab completion scope indices in Unicode terminals

2016-06-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0794bbfceec6 by Martin Panter in branch '3.5': Issue #16182: Attempted workarounds for Apple Editline https://hg.python.org/cpython/rev/0794bbfceec6 New changeset a1ca9c0ebc05 by Martin Panter in branch 'default': Issue #16182: Merge test_readline

[issue16182] readline: Wrong tab completion scope indices in Unicode terminals

2016-06-13 Thread Martin Panter
Martin Panter added the comment: Failures from AMD64 Snow Leop buildbots: == FAIL: test_nonascii_history (test.test_readline.TestHistoryManipulation) --

[issue27245] IDLE: Fix deletion of custom themes and key bindings

2016-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Patch amounts to putting 3 lines of apply inline and moving the first up to where is it needed. Serhiy, thanks for discovering the simple fix. It worked for me so I pushed it. I backported because the cascade of error messages is nasty when visible and

[issue27313] test case failures in test_widgets.ComboboxTest.of test_ttk_guionly on OS X with Cocoa Tk 8.5.18

2016-06-13 Thread Ned Deily
Ned Deily added the comment: For example, the tests pass in 3.5.1 but fail in 3.5.2rc1. I see that the changesets associated with Issue26177 altered them. -- ___ Python tracker

[issue27245] IDLE: Fix deletion of custom themes and key bindings

2016-06-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ac9e7466d8b by Terry Jan Reedy in branch 'default': Issue #27245: revert temporary rename https://hg.python.org/cpython/rev/3ac9e7466d8b -- ___ Python tracker

[issue27245] IDLE: Fix deletion of custom themes and key bindings

2016-06-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c8cddc4a8ee by Terry Jan Reedy in branch '2.7': Issue #27245: IDLE: Cleanly delete custom themes and key bindings. https://hg.python.org/cpython/rev/5c8cddc4a8ee New changeset 438359d00a83 by Terry Jan Reedy in branch '3.5': Issue #27245: IDLE:

Re: how to search item in list of list

2016-06-13 Thread Larry Hudson via Python-list
On 06/12/2016 08:29 PM, meInvent bbird wrote: once a nested list have a word "node" then true else false def search(current_item): if isinstance(current_item, list): if len(current_item)==4: if [item for item in current_item if item[4] == "node"] != []:

[issue27099] IDLE: turn builting extensions into regular modules

2016-06-13 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file43385/config-main.def ___ Python tracker ___

[issue27099] IDLE: turn builting extensions into regular modules

2016-06-13 Thread Ned Deily
Ned Deily added the comment: Terry, I don't know that much about the history of the config files. I do know that during framework installs of Python on OS X, the "install_IDLE" recipe in Mac/Makefile.in (which ./configure uses to produce a configured Mac/Makefile) has some editing steps,

[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2016-06-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 96d297e9a8a8 by Martin Panter in branch '3.5': Issue #22636: Handle OSError from subprocess, e.g. if command not found https://hg.python.org/cpython/rev/96d297e9a8a8 New changeset a6a36bb6ee50 by Martin Panter in branch 'default': Issue #22636:

Re: for / while else doesn't make sense

2016-06-13 Thread Michael Selik
On Mon, Jun 13, 2016 at 10:46 PM Steven D'Aprano wrote: > On Tue, 14 Jun 2016 09:45 am, Michael Selik wrote: > > On Sun, Jun 12, 2016 at 10:16 PM Steven D'Aprano > > wrote: > >> On Mon, 13 Jun 2016 04:44 am, Michael Selik wrote: > >> > On Sun, Jun 12,

[issue27136] sock_connect fails for bluetooth (and probably others)

2016-06-13 Thread Martin Panter
Martin Panter added the comment: Buildbots look happy with test_asyncio now, so closing again. -- status: open -> closed ___ Python tracker ___

[issue27313] test case failures in test_widgets.ComboboxTest.of test_ttk_guionly on OS X with Cocoa Tk 8.5.18

2016-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, sorry, I missed the version in the title. -- ___ Python tracker ___

[issue27313] test case failures in test_widgets.ComboboxTest.of test_ttk_guionly on OS X with Cocoa Tk 8.5.18

2016-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: These tests are not new. Are failures stable? What version of Tk is used? -- ___ Python tracker ___

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-06-13 Thread Eryk Sun
Eryk Sun added the comment: I get an access violation due to calling the ASN1_ITEM pointer as a function: > 810: ASN1_ITEM_ptr(method->it))); _ssl!_get_peer_alt_names+0x12a: 7ffe`17b1225a ffd0callrax

[issue27099] IDLE: turn builting extensions into regular modules

2016-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, from your response on 20580, there appears to be no conversion rule. Perhap you could go throuch config-main.def and make a list of what you want for Mac and Unix respectively, if different from the current binding. Serhiy, should anything be different

Python 3.6.0a2 is now available

2016-06-13 Thread Ned Deily
On behalf of the Python development community and the Python 3.6 release team, I'm happy to announce the availability of Python 3.6.0a2. 3.6.0a2 is the first of four planned alpha releases of Python 3.6, the next major release of Python. During the alpha phase, Python 3.6 remains under heavy

[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2016-06-13 Thread Martin Panter
Martin Panter added the comment: An Open Indiana buildbot failed. The old code let the shell print any errors about missing programs to /dev/null, so I will change the subprocess calls to handle OSError. == ERROR: setUpModule

[issue25782] CPython hangs on error __context__ set to the error itself

2016-06-13 Thread Yury Selivanov
Yury Selivanov added the comment: > issue27122_broken_cm.py also shows why I think "make it work" is the right > answer here [..] But fixing this issue by reordering the exception chain will only mask bugs that just better to be fixed. And sometimes, this will cause weird exceptions chains,

Re: Indentation example?

2016-06-13 Thread ICT Ezy
On Monday, June 13, 2016 at 3:09:15 AM UTC+5:30, Marc Dietz wrote: > On Sun, 12 Jun 2016 08:10:27 -0700 ICT Ezy wrote: > > > Pl explain with an example the following phase "Indentation cannot be > > split over multiple physical lines using backslashes; the whitespace up > > to the first backslash

[issue27314] Cannot install 3.5.2 with 3.6.0a1 installed

2016-06-13 Thread Larry Hastings
Changes by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list

[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2016-06-13 Thread Martin Panter
Martin Panter added the comment: Updated Py 2 patch to v5 with the added GCC comment -- Added file: http://bugs.python.org/file43383/ctypes_util_popen-5.py2.patch ___ Python tracker

[issue22636] avoid using a shell in ctypes.util: replace os.popen with subprocess

2016-06-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0715d403cae2 by Martin Panter in branch '3.5': Issue #22636: avoid using a shell in the ctypes.util module https://hg.python.org/cpython/rev/0715d403cae2 New changeset 60613ecad578 by Martin Panter in branch 'default': Issue #22636: Merge

[issue16182] readline: Wrong tab completion scope indices in Unicode terminals

2016-06-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5122b3465a38 by Martin Panter in branch '3.5': Issue #16182: Fix readline begidx, endidx, and use locale encoding https://hg.python.org/cpython/rev/5122b3465a38 New changeset 2ae2657d87a6 by Martin Panter in branch 'default': Issue #16182: Merge

[issue17500] move PC/icons/source.xar to http://www.python.org/community/logos/

2016-06-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9090aa75607 by Martin Panter in branch 'default': Issue #17500: Remove merge conflict scar tissue https://hg.python.org/cpython/rev/d9090aa75607 -- ___ Python tracker

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-06-13 Thread Steve Dower
Steve Dower added the comment: It seems to work fine on my build machine (Win Server 2012) but not my laptop (Win 10 Home). I suspect there's a different certificate being loaded that's causing the crash, but until I get a chance to debug properly I can't be sure. Hopefully I'll get a chance

Re: for / while else doesn't make sense

2016-06-13 Thread Steven D'Aprano
On Tue, 14 Jun 2016 09:45 am, Michael Selik wrote: > On Sun, Jun 12, 2016 at 10:16 PM Steven D'Aprano > wrote: > >> On Mon, 13 Jun 2016 04:44 am, Michael Selik wrote: >> >> > On Sun, Jun 12, 2016 at 6:11 AM Steven D'Aprano < >> > steve+comp.lang.pyt...@pearwood.info> wrote:

[issue27312] test_setupapp (idlelib.idle_test.test_macosx.SetupTest) fails on OS X

2016-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: test_setupapp calls setupApp with body if isAquaTk(): hideTkConsole(root) overrideRootMenu(root, flist) addOpenEventSupport(root, flist) fixb2context(root) isAquaTk should be True exactly twice, and it failed both times. The

[issue27314] Cannot install 3.5.2 with 3.6.0a1 installed

2016-06-13 Thread Steve Dower
Steve Dower added the comment: Okay, it's not an issue with the newer versions, and I don't see any reason to worry about 3.6.0a1. One issue that remains is that installing the launcher with 3.6.0 creates a separate add-remove programs entry and doesn't remove the 3.5.2rc1 entry, but the

[issue26631] Unable to install Python 3.5.1 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2016-06-13 Thread Steve Dower
Steve Dower added the comment: Launcher issue is issue27314 -- ___ Python tracker ___ ___ Python-bugs-list

[issue27314] Cannot install 3.5.2 with 3.6.0a1 installed

2016-06-13 Thread Steve Dower
Changes by Steve Dower : -- nosy: +Steven.Barker ___ Python tracker ___ ___

[issue27314] Cannot install 3.5.2 with 3.6.0a1 installed

2016-06-13 Thread Steve Dower
New submission from Steve Dower: (Originally posted as a comment to issue26631 but confirmed separately.) For 3.5.2 and 3.6.0a2, I updated the installer for the launcher so that it is always shared between Python versions (i.e. if you install 3.6 followed by 3.5, it won't touch the launcher

[issue16182] readline: Wrong tab completion scope indices in Unicode terminals

2016-06-13 Thread Martin Panter
Martin Panter added the comment: I get two other test suite failures if I set PYTHONIOENCODING, so I am not going to bother addressing this in test_readline :) FAIL: test_forced_io_encoding (test.test_capi.EmbeddingTests) FAIL: test_7 (test.test_pkg.TestPkg) --

[issue26631] Unable to install Python 3.5.1 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2016-06-13 Thread Steve Dower
Steve Dower added the comment: The launcher issue is different from the original one posted here, so I'll create a separate issue to track it. -- ___ Python tracker

Re: base64.b64encode(data)

2016-06-13 Thread Random832
On Mon, Jun 13, 2016, at 19:12, Gregory Ewing wrote: > They could maybe be made a bit cheaper still by arranging > some way for a bytes object and an ascii-only str object > to share underlying storage. While we're at it, why not allow bytes to share storage with FSR latin-1 strings and the

[issue27310] 3.6.0a2 IDLE.app on OS X fails to launch, use command line idle3.6 instead

2016-06-13 Thread Ned Deily
Changes by Ned Deily : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list

[issue27311] Incorrect documentation for zipfile.writestr()

2016-06-13 Thread John Hagen
John Hagen added the comment: I'll submit a patch shortly. -- ___ Python tracker ___ ___ Python-bugs-list

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: How about wrapping the appropriate tkinter code with (untested yet) import os HOME = os.environ['HOME'] try: finally" os.environ['HOME'] = HOME # will this unset? or use a restore_env('HOME', ...) context manager? Revising os.expanduser or apps to

[issue27311] Incorrect documentation for zipfile.writestr()

2016-06-13 Thread Martin Panter
Martin Panter added the comment: Looks like you are right. The change in the implementation happened in revision 19196cce1431. -- keywords: +easy nosy: +martin.panter stage: -> needs patch versions: -Python 3.4 ___ Python tracker

[issue27313] test case failures in test_widgets.ComboboxTest.of test_ttk_guionly on OS X with Cocoa Tk 8.5.18

2016-06-13 Thread Ned Deily
New submission from Ned Deily: On 3.6.0a2, 3.5.2rc1, and 2.7.12rc1: == FAIL: test_identify (tkinter.test.test_ttk.test_widgets.ComboboxTest) -- Traceback (most

[issue27312] test_setupapp (idlelib.idle_test.test_macosx.SetupTest) fails on OS X

2016-06-13 Thread Ned Deily
Ned Deily added the comment: Without looking closely at it, I would speculate that the failures are due to trying to test code in overrideRootMenu() that was previously only called once during execution and may not be re-enterant: # Remove the last 3 items of the file menu: a separator,

[issue27312] test_setupapp (idlelib.idle_test.test_macosx.SetupTest) fails on OS X

2016-06-13 Thread Ned Deily
New submission from Ned Deily: Running tests of 3.6.0a2 with gui enabled on OS X result in various failures of the form: == ERROR: test_setupapp (idlelib.idle_test.test_macosx.SetupTest) (tktype='carbon') Call setupApp with

Please use the Python Job Board for recruiting (was: [recruitment message])

2016-06-13 Thread Ben Finney
pan...@openmindtechno.com writes: > I am looking to hire for an excellent opportunity Please do not use this forum for recruiting. Instead, use the Python Job Board maintained for that purpose. -- \ “The fact that I have no remedy for all

[issue12855] linebreak sequences should be better documented

2016-06-13 Thread Martin Panter
Martin Panter added the comment: Alexander: does my latest patch linebreakdoc.v5.py2.7.patch address your concerns about the 2.7 documentation? If so, I can push it to the repository. -- ___ Python tracker

[issue27311] Incorrect documentation for zipfile.writestr()

2016-06-13 Thread John Hagen
New submission from John Hagen: The function signature and description for zipfile.writestr is incorrect: https://docs.python.org/3.5/library/zipfile.html#zipfile.ZipFile.writestr See: https://github.com/python/cpython/blob/master/Lib/zipfile.py#L1610 The documentation calls the parameter

[issue27310] 3.6.0a2 IDLE.app on OS X fails to launch, use command line idle3.6 instead

2016-06-13 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue27136] sock_connect fails for bluetooth (and probably others)

2016-06-13 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: Thank you Martin! -- ___ Python tracker ___ ___ Python-bugs-list

[issue27310] 3.6.0a2 IDLE.app on OS X fails to launch, use command line idle3.6 instead

2016-06-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 675569bee37f by Ned Deily in branch '2.7': Issue #27310: remove vestigial import in IDLE.app https://hg.python.org/cpython/rev/675569bee37f New changeset 0cf4bda2882c by Ned Deily in branch '3.5': Issue #27310: remove vestigial import in IDLE.app

[issue27310] 3.6.0a2 IDLE.app on OS X fails to launch, use command line idle3.6 instead

2016-06-13 Thread Ned Deily
New submission from Ned Deily: For 3.6.0a2, when attempting to launch IDLE.app on OS X (for example, by double-clicking the IDLE icon in the "/Applications/Python 3.6" folder), IDLE does not launch. In the system.log there will be a log message similar to: (org.python.IDLE.917792[45897]):

Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread Michael Selik
On Mon, Jun 13, 2016 at 7:46 PM wrote: > I ... am making an effort to get used to the rtl order as quickly as > possible. > Funny, you keep saying right-to-left. I think the issue is you think the parent class is more important. Fight the power! Youth revolt! In Python,

[issue27136] sock_connect fails for bluetooth (and probably others)

2016-06-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset e032ffd5ae84 by Martin Panter in branch '3.5': Issue #27136: Change test to use ::1 for better OS X Tiger compatibility https://hg.python.org/cpython/rev/e032ffd5ae84 New changeset f31b6c3e41f7 by Martin Panter in branch 'default': Issue #27136:

Re: for / while else doesn't make sense

2016-06-13 Thread Michael Selik
On Sun, Jun 12, 2016 at 10:16 PM Steven D'Aprano wrote: > On Mon, 13 Jun 2016 04:44 am, Michael Selik wrote: > > > On Sun, Jun 12, 2016 at 6:11 AM Steven D'Aprano < > > steve+comp.lang.pyt...@pearwood.info> wrote: > > > >> - run the for block > >> - THEN unconditionally run

Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread alanqueiros
On Monday, June 13, 2016 at 7:29:05 PM UTC-3, Gregory Ewing wrote: > > I see that in most cases the order doesn't matter, but still I would > > think that since the correct order is from right to left, that should be the > > common practice. > > This order is only "correct" if overriding is what

Re: base64.b64encode(data)

2016-06-13 Thread Gregory Ewing
Chris Angelico wrote: Maybe what Python needs is an "ascii" type that's a subclass of both str and bytes, and requires that the contents be <0x80. It is text, so it can be combined with text strings; but it is also bytes, so when you combine it with bytes strings, it'll behave as most people

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

2016-06-13 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: ncoghlan -> gregory.p.smith ___ Python tracker ___

Re: base64.b64encode(data)

2016-06-13 Thread Gregory Ewing
Michael Torrie wrote: On 06/12/2016 11:16 PM, Steven D'Aprano wrote: Squirt it down a wire as bytes? Almost certainly. Sometimes yes. But not always. And even when the ultimate destination is a wire, a Python programmer is more likely to be accessing the wire through some high-level

[issue25782] CPython hangs on error __context__ set to the error itself

2016-06-13 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks Serhiy. I've attached a new file (issue27122_broken_cm.py) with a context manager that is deliberately buggy in the same way as contextlib._GeneratorContextManager is currently, so the new test can be made independent of #27122 being fixed (Greg Smith

Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread Michael Selik
On Mon, Jun 13, 2016 at 2:46 PM wrote: > Thank you for your replies. I don't know if I'm quoting you correctly, I'm > quite confused with Google Groups... not sure if it's a "forum", something > like a mailing list, or both... or neither. > Mailing list. A "forum" in the

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-06-13 Thread Tim Golden
Tim Golden added the comment: Built 64-bit 2.7 but can't reproduce on tip, 2.7.12rc1 or 2.7.11 tags. -- ___ Python tracker ___

[issue20580] IDLE should support platform-specific default config defaults

2016-06-13 Thread Ned Deily
Ned Deily added the comment: "I have the impression from what you wrote above that every 'Control' should be 'Command'." I'm not sure where I gave that impression but, no, the default IDLE keyset on OS X has command accelerators with Command- modifiers and some with Control- modifiers, as is

[issue27173] Modern Unix key bindings for IDLE

2016-06-13 Thread Ned Deily
Ned Deily added the comment: "Please confirm that Classic OSX is the right choice over Classic Mac" It is. At least, when we install IDLE on OS X, Clsssic OS X is the default set. I don't know why Classic Mac exists; I'm guessing it is left over from Mac OS 9 days (pre OS X). --

[issue27099] IDLE: turn builting extensions into regular modules

2016-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, I reread #20580. It reminds me that both Control and Alt are problems. In built-in config-extensions.def, the builtin fixed bindings and one of the configurable bindings are: autocomplete: calltips: parenmatch: runscript: (configurable) I

Looking for Python Engineering Manager or Python experts for world's leading Artificial Intelligence Company in San Francisco,CA

2016-06-13 Thread pankaj
Hi, I am looking to hire for an excellent opportunity for an Python Engineering Manager or Python experts for world's leading Arti-0878ficial Intelligence Company in San Francisco,CA. Please do refer or contact me at cell 510-396-0878. Both Full time Perm and Contract opportunities are open.

Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread Gregory Ewing
alanquei...@gmail.com wrote: I see that in most cases the order doesn't matter, but still I would think that since the correct order is from right to left, that should be the common practice. This order is only "correct" if overriding is what you want. That's not always going to be the case.

[issue20580] IDLE should support platform-specific default config defaults

2016-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, looking at config-keys.def, the Mac and Osx sections have a mixture of 'Command' and 'Control'. I have the impression from what you wrote above that every 'Control' should be 'Command'. Why are the sections as they are? --

Re: Conversion: execfile --> exec

2016-06-13 Thread Michael Selik
On Mon, Jun 13, 2016 at 1:51 PM Rustom Mody wrote: > looks (to me) like an intent to import the package chaco with no locals > and globals -- Just guessing of course > And without creating a module object. I suppose that means it doesn't get cached in sys.modules either.

[issue27099] IDLE: turn builting extensions into regular modules

2016-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: The first line of the last message should have said 'in addition to' instead of 'rather than', In the following expanded table, Key is the number of pseudoevents with configurable and fixed key bindings. Gen is the number of General pseudoevents. (Current,

[issue27173] Modern Unix key bindings for IDLE

2016-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, Serhiy's patch 4 solves one of your concerns in #20580 with +@staticmethod +def DefaultKeys(): +if sys.platform[:3] == 'win': +return 'IDLE Classic Windows' +elif sys.platform == 'darwin': +return 'IDLE

[issue27309] Visual Styles support

2016-06-13 Thread [HYBRID BEING]
New submission from [HYBRID BEING]: This answer (http://stackoverflow.com/questions/33792008/python-tkinter-ttk-themed-message-box/33801260#33801260) to the Stack Overflow question states that Tkinter's messageboxes use non-themed controls due to the fact that python.exe and pythonw.exe lack

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-13 Thread Jarrod Petz
Jarrod Petz added the comment: eryksun, now I understand this is a bit more challenging because tkinter is the underlying library doing this and it is shared by other apps. Though I still don't feel that just because its been like this since 1995 means it should stay this way. This is

[issue27306] Grammatical Error in Documentation - Tarfile page

2016-06-13 Thread Berker Peksag
Berker Peksag added the comment: Thank you all! -- nosy: +berker.peksag resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue27306] Grammatical Error in Documentation - Tarfile page

2016-06-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 48052a140eed by Berker Peksag in branch '3.5': Issue #27306: Fix typo in tarfile documentation https://hg.python.org/cpython/rev/48052a140eed New changeset 9c9ed326d981 by Berker Peksag in branch 'default': Issue #27306: Merge from 3.5

[issue25782] CPython hangs on error __context__ set to the error itself

2016-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: With Yury's path the issue27122 test need to be changed (RuntimeError is now raised instead of original exception). Here is updated patch. -- Added file: http://bugs.python.org/file43381/Issue25782_5.patch ___

[issue25782] CPython hangs on error __context__ set to the error itself

2016-06-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: With reordering the issue27122 test is passed without changes. No changes in ExitStack is needed. Here is updated patch. -- Added file: http://bugs.python.org/file43380/set_context_reordering2.patch ___ Python

[issue26262] Cannot compile with /fp:strict with MSVC

2016-06-13 Thread Nathan Harold
Nathan Harold added the comment: Here's a patch with those three replacements and related comments. -- keywords: +patch nosy: +nharold Added file: http://bugs.python.org/file43379/constants.patch ___ Python tracker

[issue26386] tkinter - Treeview - .selection_add and selection_toggle

2016-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: LGTM, but after applying to all 3, leave open (or open new issue) to replace patch in 3.6 (before beta 1). Change signature to *items. That will automatically make a single string become a len 1 tuple. For selection (list the 4 selops and) add a note.

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-06-13 Thread Tim Golden
Tim Golden added the comment: The crash is actually happening in Modules/_ssl.c:_get_peer_alt_names. > _ssl.pyd!_get_peer_alt_names(x509_st * certificate) Line 810 + 0x2 bytes C _ssl.pyd!_decode_certificate(x509_st * certificate) Line 1187 + 0x8 bytes C

[issue27308] Inconsistency in cgi.FieldStorage() causes unicode/byte TypeError.

2016-06-13 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> cgi.FieldStorage can't parse multipart part headers with Content-Length and no filename in Content-Disposition

[issue27308] Inconsistency in cgi.FieldStorage() causes unicode/byte TypeError.

2016-06-13 Thread Marcel Hellkamp
Marcel Hellkamp added the comment: Looks like this is a duplicate to #24764 and already fixed. Sorry for the noise. -- ___ Python tracker ___

[issue25782] CPython hangs on error __context__ set to the error itself

2016-06-13 Thread Nick Coghlan
Nick Coghlan added the comment: For both of the proposed patches, could we add a test case based on contextlib.ExitStack and a variant of Victor's #27122 reproducer script at http://bugs.python.org/file42999/hang_bug2.py that uses a deliberately broken __exit__ implementation that always

[issue27308] Inconsistency in cgi.FieldStorage() causes unicode/byte TypeError.

2016-06-13 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch. From a quick look, the patch looks fine but we need a test case. You can see Lib/test/test_cgi.py for existing tests. -- stage: needs patch -> patch review ___ Python tracker

[issue25782] CPython hangs on error __context__ set to the error itself

2016-06-13 Thread Yury Selivanov
Yury Selivanov added the comment: > Yury's raises a RuntimeError in the loop situation. > Serhiy's simply reorders the exception context to put the referred to one at > the front of the chain in the event of a loop. Right, and I believe that my solution is more Pythonic. Reordering feels

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-06-13 Thread Tim Golden
Tim Golden added the comment: I can reproduce with the download build but not with a freshly-built executable -- ___ Python tracker ___

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

2016-06-13 Thread Nick Coghlan
Nick Coghlan added the comment: Greg, I think you should apply your change to eliminate the regression and get us back to the state of all stdlib context managers being well-behaved in this regard (we unfortunately missed the 3.5.2 release, but that will ensure it's fixed for 3.5.3). Given

[issue27308] Inconsistency in cgi.FieldStorage() causes unicode/byte TypeError.

2016-06-13 Thread Marcel Hellkamp
Marcel Hellkamp added the comment: This should fix the issue. -- keywords: +patch Added file: http://bugs.python.org/file43378/foo.patch ___ Python tracker

[issue27294] Better repr for Tkinter event objects

2016-06-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : Added file: http://bugs.python.org/file43377/tk-win-key-events2.txt ___ Python tracker ___

[issue19570] distutils' Command.ensure_dirname fails on Unicode

2016-06-13 Thread Adam Bartoš
Adam Bartoš added the comment: Recently, I was also hit by this when trying to autoset `sys.argv` to a list of Unicode string (see https://github.com/Drekin/win-unicode-console/issues/20#issuecomment-225638271 ). It would be nice to have this fixed. It seems to me (I may be wrong) that every

[issue27308] Inconsistency in cgi.FieldStorage() causes unicode/byte TypeError.

2016-06-13 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag stage: -> needs patch type: crash -> behavior versions: +Python 3.6 -Python 3.4 ___ Python tracker

Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread alanqueiros
Thank you for your replies. I don't know if I'm quoting you correctly, I'm quite confused with Google Groups... not sure if it's a "forum", something like a mailing list, or both... or neither. > The class' MRO ("Method Resolution Order") determines in which > order attributes are looked up. >

[issue27308] Inconsistency in cgi.FieldStorage() causes unicode/byte TypeError.

2016-06-13 Thread Marcel Hellkamp
Changes by Marcel Hellkamp : -- title: Inconsistency in cgi.FieldStorage() causes unicode/byte issue. -> Inconsistency in cgi.FieldStorage() causes unicode/byte TypeError. ___ Python tracker

[issue27308] Inconsistency in cgi.FieldStorage() causes unicode/byte issue.

2016-06-13 Thread Marcel Hellkamp
New submission from Marcel Hellkamp: Discovered here: https://github.com/bottlepy/bottle/issues/856 If a multipart section has a "Content-Length" header, but no "filename" attribute in the "Content-Disposition" header, cgi.FieldStorage tries to write binary data to a temporary file opened in

[issue27163] IDLE entry for What's New in Python 3.6

2016-06-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Provisional addition a bit revised from above. I did not markup idlelib as a module because there is currently no section to link to. I don't know if or how IDLE can be linked to the IDLE doc. I linked to the name change issue that started the change

[issue24254] Make class definition namespace ordered by default

2016-06-13 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue24869] shlex lineno inaccurate with certain inputs

2016-06-13 Thread Gareth Rees
Gareth Rees added the comment: A third alternative: 3. Add a method whose effect is to consume comments and whitespace, but which does not yield a token. You could then call this method, and then look at shlex.lineno, which will be the line number of the first character of the next token (if

Re: Conversion: execfile --> exec

2016-06-13 Thread Rustom Mody
On Monday, June 13, 2016 at 10:48:33 PM UTC+5:30, Michael Selik wrote: > On Mon, Jun 13, 2016, 10:36 AM Rustom Mody wrote: > > > On Monday, June 13, 2016 at 7:41:33 PM UTC+5:30, MRAB wrote: > > > On 2016-06-13 14:24, Long Yang wrote: > > > > The python 2.x command is as following: > > > >

[issue27186] add os.fspath()

2016-06-13 Thread Brett Cannon
Brett Cannon added the comment: Thanks for catching my screw-up, Martin; I misread the checks in the file by noticing the "nt" bit but not picking up it was comparing against sys.name instead of sys.platform. -- ___ Python tracker

Re: Overriding methods inherited from a superclass with methods from a mixin

2016-06-13 Thread Michael Selik
On Mon, Jun 13, 2016 at 12:01 AM wrote: > I haven't used Python for some time so I don't feel confident to judge > Yet, you are clearly judging the code you pasted as not OK. Perhaps you guys could help me either convincing me that the bpaste code is > OK > It would be

Re: Conversion: execfile --> exec

2016-06-13 Thread Michael Selik
On Mon, Jun 13, 2016, 10:36 AM Rustom Mody wrote: > On Monday, June 13, 2016 at 7:41:33 PM UTC+5:30, MRAB wrote: > > On 2016-06-13 14:24, Long Yang wrote: > > > The python 2.x command is as following: > > > --- > > > info = {} > > >

Re: base64.b64encode(data)

2016-06-13 Thread Chris Angelico
On Tue, Jun 14, 2016 at 1:15 AM, Michael Torrie wrote: >> Looking at this from the high-level perspective of Python, that makes it >> conceptually bytes not text. > > I don't see how this is always the case. From a high-level python > perspective it's definitely text. That's

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2016-06-13 Thread Neil Schemenauer
Neil Schemenauer added the comment: This looks to be a good idea and a good time to merge it now the bytecode has changed to 16-bit. The increase in complexity to compile.c is not bad and reducing the complexity of the eval loop is worth it, IMHO. -- nosy: +nascheme

  1   2   >