[Python-bugs-list] [ python-Bugs-514928 ] curses error in w.border()

noreply@sourceforge.net noreply@sourceforge.net
Fri, 08 Feb 2002 13:33:21 -0800


Bugs item #514928, was opened at 2002-02-08 10:42
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=514928&group_id=5470

Category: Extension Modules
Group: Python 2.1.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Bastian Kleineidam (calvin)
>Assigned to: Guido van Rossum (gvanrossum)
Summary: curses error in w.border()

Initial Comment:
this fails on my Linux box:
import curses
w = curses.initscr()
w.border(0)
SystemError: old style getargs format uses new features


Greetings, Calvin

----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-02-08 13:33

Message:
Logged In: YES 
user_id=6380

FWIW, I've applied this fix to the 2.1 maintenance branch,
in case someone ever decides to release a 2.1.3.

----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2002-02-08 12:51

Message:
Logged In: YES 
user_id=6380

Yes, it's a bug. It's been fixed in 2.2.

Try this diff for 2.1.2:

566c566
<   if
(!PyArg_Parse(args,"|llllllll;ls,rs,ts,bs,tl,tr,bl,br",
---
>   if
(!PyArg_ParseTuple(args,"|llllllll;ls,rs,ts,bs,tl,tr,bl,br",


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=514928&group_id=5470