@@ -560,10 +560,10 @@ PyCursesWindow_Dealloc(PyCursesWindowObject *wo)
560560curses.window.addch
561561
562562 [
563- x: int
564- X-coordinate.
565563 y: int
566564 Y-coordinate.
565+ x: int
566+ X-coordinate.
567567 ]
568568
569569 ch: object
@@ -584,13 +584,13 @@ current settings for the window object.
584584[clinic start generated code]*/
585585
586586PyDoc_STRVAR (curses_window_addch__doc__ ,
587- "addch([x, y ,] ch, [attr])\n"
587+ "addch([y, x ,] ch, [attr])\n"
588588"Paint character ch at (y, x) with attributes attr.\n"
589589"\n"
590- " x\n"
591- " X-coordinate.\n"
592590" y\n"
593591" Y-coordinate.\n"
592+ " x\n"
593+ " X-coordinate.\n"
594594" ch\n"
595595" Character to add.\n"
596596" attr\n"
@@ -605,15 +605,15 @@ PyDoc_STRVAR(curses_window_addch__doc__,
605605 {"addch", (PyCFunction)curses_window_addch, METH_VARARGS, curses_window_addch__doc__},
606606
607607static PyObject *
608- curses_window_addch_impl (PyCursesWindowObject * self , int group_left_1 , int x , int y , PyObject * ch , int group_right_1 , long attr );
608+ curses_window_addch_impl (PyCursesWindowObject * self , int group_left_1 , int y , int x , PyObject * ch , int group_right_1 , long attr );
609609
610610static PyObject *
611611curses_window_addch (PyCursesWindowObject * self , PyObject * args )
612612{
613613 PyObject * return_value = NULL ;
614614 int group_left_1 = 0 ;
615- int x = 0 ;
616615 int y = 0 ;
616+ int x = 0 ;
617617 PyObject * ch ;
618618 int group_right_1 = 0 ;
619619 long attr = 0 ;
@@ -629,12 +629,12 @@ curses_window_addch(PyCursesWindowObject *self, PyObject *args)
629629 group_right_1 = 1 ;
630630 break ;
631631 case 3 :
632- if (!PyArg_ParseTuple (args , "iiO:addch" , & x , & y , & ch ))
632+ if (!PyArg_ParseTuple (args , "iiO:addch" , & y , & x , & ch ))
633633 goto exit ;
634634 group_left_1 = 1 ;
635635 break ;
636636 case 4 :
637- if (!PyArg_ParseTuple (args , "iiOl:addch" , & x , & y , & ch , & attr ))
637+ if (!PyArg_ParseTuple (args , "iiOl:addch" , & y , & x , & ch , & attr ))
638638 goto exit ;
639639 group_right_1 = 1 ;
640640 group_left_1 = 1 ;
@@ -643,15 +643,15 @@ curses_window_addch(PyCursesWindowObject *self, PyObject *args)
643643 PyErr_SetString (PyExc_TypeError , "curses.window.addch requires 1 to 4 arguments" );
644644 goto exit ;
645645 }
646- return_value = curses_window_addch_impl (self , group_left_1 , x , y , ch , group_right_1 , attr );
646+ return_value = curses_window_addch_impl (self , group_left_1 , y , x , ch , group_right_1 , attr );
647647
648648exit :
649649 return return_value ;
650650}
651651
652652static PyObject *
653- curses_window_addch_impl (PyCursesWindowObject * self , int group_left_1 , int x , int y , PyObject * ch , int group_right_1 , long attr )
654- /*[clinic end generated code: output=43acb91a5c98f615 input=fe7e3711d5bbf1f6 ]*/
653+ curses_window_addch_impl (PyCursesWindowObject * self , int group_left_1 , int y , int x , PyObject * ch , int group_right_1 , long attr )
654+ /*[clinic end generated code: output=d4b97cc287010c54 input=5a41efb34a2de338 ]*/
655655{
656656 PyCursesWindowObject * cwself = (PyCursesWindowObject * )self ;
657657 int coordinates_group = group_left_1 ;
0 commit comments