Terry J. Reedy | 5 Aug 02:29 2015

[issue24790] Idle: improve stack viewer


New submission from Terry J. Reedy:

Debug => Stack Viewer (no hot key) could become more useful, aside from #23544, freezing Idle when Debugger active.

1. Don't include idlelib.run.runcode.
2. Don't duplicate globals under each function. Once for the module is enough.
3. Remove +Locals under each function and instead display locals when expanding Clicking a function
should display locals without having to click anything else.
4. Add a button to expand all locals?

----------
components: IDLE
messages: 248010
nosy: terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Idle: improve stack viewer
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue24790>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org
(Continue reading)

David W. Lambert | 4 Aug 22:22 2015

[issue24789] ctypes doc string


New submission from David W. Lambert:

doc string suggests str is a valid init argument.  The code strongly discourages this.

ctypes.create_string_buffer

def create_string_buffer(init, size=None):
    """create_string_buffer(aBytes) -> character array
    create_string_buffer(anInteger) -> character array
    create_string_buffer(aString, anInteger) -> character array
    """
    if isinstance(init, bytes):
        if size is None:
            size = len(init)+1
        buftype = c_char * size
        buf = buftype()
        buf.value = init
        return buf
    elif isinstance(init, int):
        buftype = c_char * init
        buf = buftype()
        return buf
    raise TypeError(init)

----------
components: ctypes
messages: 247998
nosy: LambertDW
priority: normal
(Continue reading)

Pastafarianist | 4 Aug 22:10 2015

[issue24788] HTTPException is derived from Exception instead of IOError


New submission from Pastafarianist:

In both Python 2 and Python 3, HTTPException is derived from Exception. This is not quite convenient, since
catching all connection-related errors while performing an HTTP query requires catching both IOError
(which is subclassed by socket.error) and HTTPException. It might be better to change the parent class to
IOError instead.

----------
components: Library (Lib)
messages: 247995
nosy: Pastafarianist
priority: normal
severity: normal
status: open
title: HTTPException is derived from Exception instead of IOError
type: enhancement
versions: Python 3.6

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue24788>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Tiago Wright | 4 Aug 02:05 2015

[issue24787] csv.Sniffer guesses "M" instead of \t or , as the delimiter


New submission from Tiago Wright:

csv.Sniffer().sniff() guesses "M" for the delimiter of the first dataset below. The same error occurs
when the "," is replaced by "\t". However, it correctly guesses "," for the second dataset.

---Dataset 1----
Invoice File,Credit Memo,Amount Claimed,Description,Invoice,Message,
Sscanner ac15072911220.pdf,CM_15203,28714.32,MX Jan Feb,948198,,
Sscanner ac15072911221.pdf,CM 16148,15600,MX Unkwon,948199,,
Sscanner ac15072911230.pdf,CM 16148,33488,MX Cavalier,948200,Photos don't match the invoice
Sscanner ac15072911261.pdf,CM_14464,1713.6,MX Dutiful,948203,,
Sscanner ac15072911262.pdf,CM 16148,3114,MX Apr,948202,,
Sscanner ac15072911250.pdf,CM_14464,1232.28,MX Jan Feb,948208,,
Sscanner ac15072911251.pdf,CM_17491,15232,MX Unkwon,948207,,
Sscanner ac15072911253.pdf,CM_14464,11250,MX Cavalier,,,
Sscanner ac15072911253.pdf,CM_14464,11250,MX Dutiful,,,
Sscanner ac15072911253.pdf,CM_14464,11250,MX Apr,,,

--- Dataset 2---
Invoice File,Credit Memo,Amount Claimed,Description,Invoice,Message,
Sscanner ac15072911220.pdf,CM_15203,82.07,MX Jan Feb,948198,,
Sscanner ac15072911221.pdf,CM 16148,23.29,MX Unkwon,948199,,
Sscanner ac15072911230.pdf,CM 16148,88.55,MX Cavalier,948200,Photos don't match the invoice,
Sscanner ac15072911261.pdf,CM_14464,58.78,MX Dutiful,948203,,
Sscanner ac15072911262.pdf,CM 16148,52,MX Apr,948202,,
Sscanner ac15072911250.pdf,CM_14464,40.40,MX Jan Feb,948208,,
Sscanner ac15072911251.pdf,CM_17491,54.97,MX Unkwon,948207,,
Sscanner ac15072911253.pdf,CM_14464,4.08,MX Cavalier,,,
Sscanner ac15072911253.pdf,CM_14464,49.11,MX Dutiful,,,
(Continue reading)

Jesús Cea Avión | 4 Aug 00:28 2015

[issue24786] Changes in the devguide repository are not published online in HTML


New submission from Jesús Cea Avión:

I change content and configuration in the devguide repository and I don't see the changes available in HTML
in <https://docs.python.org/devguide/> even after some days.

----------
assignee: docs <at> python
components: Documentation
messages: 247961
nosy: docs <at> python, jcea
priority: normal
severity: normal
status: open
title: Changes in the devguide repository are not published online in HTML

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue24786>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Guido van Rossum | 3 Aug 16:52 2015

[issue23996] _PyGen_FetchStopIterationValue() crashes on unnormalised exceptions


Guido van Rossum added the comment:

Please try to make sure this is fixed before 3.5 rc 1.

----------

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue23996>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Alex Grönholm | 3 Aug 13:44 2015

[issue24785] Document asyncio.futures.wrap_future()


New submission from Alex Grönholm:

Since Python 3.5 will not support awaiting for concurrent.futures.Futures natively, one has to use the
asyncio.futures.wrap_future() function in coroutines like this:

async def foo():
    await wrap_future(executor.submit(...))

The wrap_future() function is, however, not mentioned in the asyncio documentation. It should be, in
order for the standard library to provide the above crutch until proper support arrives in 3.6.

----------
assignee: docs <at> python
components: Documentation
messages: 247924
nosy: alex.gronholm, docs <at> python
priority: normal
severity: normal
status: open
title: Document asyncio.futures.wrap_future()
type: enhancement
versions: Python 3.5

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue24785>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
(Continue reading)

Louis Dassy | 3 Aug 11:06 2015

[issue24784] Build fails --without-threads


New submission from Louis Dassy:

Build of default branch fails using --without-threads. I added the WITH_THREAD check around PyGILState_Check

----------
components: Build
files: without-threads.patch
keywords: patch
messages: 247921
nosy: berker.peksag, louis.dassy, python-dev
priority: normal
severity: normal
status: open
title: Build fails --without-threads
type: compile error
versions: Python 3.6
Added file: http://bugs.python.org/file40114/without-threads.patch

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue24784>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

David E. Narvaez | 3 Aug 02:31 2015

[issue24783] Import Error (undefined symbol: PyFloat_Type) when Importing math Module on Shared Build


New submission from David E. Narvaez:

The original bug report can be found at https://bugs.kde.org/show_bug.cgi?id=335965. I was not able to
reproduce this on Gentoo until the Fedora maintainer commented they build their Python with
--enable-shared. At that point, I built two copies of Python 2.7 from git, one with defaults and one with
--enable-shared. When I run the application with PYTHONHOME=/path/to/defualt/install it runs
correctly, and when I run the application with PYTHONHOME=/path/to/shared/install I can reproduce the bug.

Is there something missing in the linking of this application in order for it to use a Python installation
built with --enable-shared?

----------
components: Installation
messages: 247915
nosy: david-narvaez
priority: normal
severity: normal
status: open
title: Import Error (undefined symbol: PyFloat_Type) when Importing math Module on Shared Build
versions: Python 2.7

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue24783>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

(Continue reading)

Mark Roseman | 2 Aug 23:06 2015

[issue24782] Merge 'configure extensions' into main IDLE config dialog


New submission from Mark Roseman:

I'm wondering about moving the functionality of the 'configure extensions' dialog into the main
configuration dialog.  As I don't know the history here, I'm wondering why it was made separate.

My proposal would be to add an 'Extensions' tab in the main config dialog. Along the left would be a listbox
holding the names of each extension. Along the right would be options for the extension selected in the
listbox (done pretty much the same as now). Selecting a different extension from the list would swap in the
appropriate set of options.

This would have the additional advantage of doing away with the stacked tabs.

----------
components: IDLE
messages: 247898
nosy: kbk, markroseman, roger.serwy, terry.reedy
priority: normal
severity: normal
status: open
title: Merge 'configure extensions' into main IDLE config dialog
type: enhancement
versions: Python 3.5, Python 3.6

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue24782>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
(Continue reading)

Mark Roseman | 2 Aug 23:02 2015

[issue24781] Improve UX of IDLE Highlighting configuration tab


New submission from Mark Roseman:

Placeholder for improvements to the syntax highlighting tab in IDLE config dialog.

I've attached cfg_highlight.png which shows a before and after I'm suggesting as a starting point. It
would have the same functionality but uses a lot less pieces to implement it. Thoughts?

----------
components: IDLE
files: cfg_highlight.png
messages: 247897
nosy: kbk, markroseman, roger.serwy, terry.reedy
priority: normal
severity: normal
status: open
title: Improve UX of IDLE Highlighting configuration tab
type: enhancement
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40109/cfg_highlight.png

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue24781>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

(Continue reading)


Gmane