[issue5622] wrong error from curses.wrapper if curses initialization fails

2011-03-09 Thread Ned Deily

Changes by Ned Deily :


--
assignee:  -> ned.deily
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5622] wrong error from curses.wrapper if curses initialization fails

2011-03-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 6b6b8af33811 by Ned Deily in branch '3.1':
Issue #5622: Fix curses.wrapper to raise correct exception if curses
http://hg.python.org/cpython/rev/6b6b8af33811

New changeset e6c45cd46cb2 by Ned Deily in branch '3.2':
Issue #5622: merge fix from 3.1.
http://hg.python.org/cpython/rev/e6c45cd46cb2

New changeset ec717db610df by Ned Deily in branch 'default':
Issue #5622: merge fix from 3.2.
http://hg.python.org/cpython/rev/ec717db610df

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5622] wrong error from curses.wrapper if curses initialization fails

2011-03-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset c731e02472c5 by Ned Deily in branch '2.7':
Issue #5622: Fix curses.wrapper to raise correct exception if curses
http://hg.python.org/cpython/rev/c731e02472c5

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5622] wrong error from curses.wrapper if curses initialization fails

2011-01-08 Thread Ned Deily

Ned Deily  added the comment:

A simpler way to reproduce:
TERM= python -c 'import curses; curses.wrapper(lambda a:a.getch())'

I looked at adding an automated test case for this but it is a little tricky to 
make it bulletproof across all environments. Since the problem is really a 
one-time coding error, perhaps a permanent test case can be omitted?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5622] wrong error from curses.wrapper if curses initialization fails

2010-11-20 Thread Ned Deily

Changes by Ned Deily :


Removed file: http://bugs.python.org/file18285/issue5622.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5622] wrong error from curses.wrapper if curses initialization fails

2010-11-20 Thread Ned Deily

Changes by Ned Deily :


--
keywords: +easy
nosy:  -BreamoreBoy
stage: unit test needed -> patch review
versions:  -Python 2.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5622] wrong error from curses.wrapper if curses initialization fails

2010-08-16 Thread Freek Dijkstra

Freek Dijkstra  added the comment:

I can confirm that both the problem exists and the patch works on Python 2.6 
and 3.1. I love to see it committed.

--
nosy: +macfreek

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5622] wrong error from curses.wrapper if curses initialization fails

2010-07-31 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +akuchling

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5622] wrong error from curses.wrapper if curses initialization fails

2010-07-31 Thread Ned Deily

Ned Deily  added the comment:

[FYI: Comments at the beginning of a patch file are ignored by the standard 
Unix-y patch utilities.  They are there for a reason.]

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5622] wrong error from curses.wrapper if curses initialization fails

2010-07-31 Thread Mark Lawrence

Mark Lawrence  added the comment:

This is a one line patch on wrapper.py.  Sorry I can't do any more with this 
cos I only have a windows box.

--
keywords: +patch
nosy: +BreamoreBoy
stage:  -> unit test needed
type:  -> behavior
versions: +Python 3.2 -Python 3.0
Added file: http://bugs.python.org/file18285/issue5622.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5622] wrong error from curses.wrapper if curses initialization fails

2009-03-31 Thread Ned Deily

New submission from Ned Deily :

wrong error from curses.wrapper if curses initialization fails

One way to reproduce is trying under IDLE.app in OS X:

  import curses
  def scr(a):
a.getch()

  curses.wrapper(scr)

Traceback before patch:
  UnboundLocalError: local variable 'stdscr' referenced before 
assignment

Traceback after patch:
  _curses.error: setupterm: could not find terminal

APPLIES 2.6, 2.7, 3.0, 3.1

--
components: Library (Lib)
files: patch-nad0018.txt
messages: 84793
nosy: nad
severity: normal
status: open
title: wrong error from curses.wrapper if curses initialization fails
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13512/patch-nad0018.txt

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com