[Bug 1021783] Re: invalid behavior of curses.newpad().refresh()

Launchpad Bug Tracker 1021783 at bugs.launchpad.net
Tue Jul 17 23:51:11 UTC 2012


This bug was fixed in the package python3.2 - 3.2.3-3

---------------
python3.2 (3.2.3-3) unstable; urgency=low


  * Update to 20120709 from the 3.2 branch. Fixes:
    - Issue #15020: The program name used to search for Python's path is now
      "python3" under Unix, not "python".
    - Issue #15033: Fix the exit status bug when modules invoked using -m
      switch, return the proper failure return value (1).
    - Issue #12268: File readline, readlines and read() or readall() methods
      no longer lose data when an underlying read system call is interrupted.
      IOError is no longer raised due to a read system call returning EINTR
      from within these methods.
    - Issue #15142: Fix reference leak when deallocating instances of types
      created using PyType_FromSpec().
    - Issue #10053: Don't close FDs when FileIO.__init__ fails.
    - Issue #14990: Correctly fail with SyntaxError on invalid encoding
      declaration.
    - Issue #15247: FileIO now raises an error when given a file descriptor
      pointing to a directory.
    - Issue #5346: Preserve permissions of mbox, MMDF and Babyl mailbox
      files on flush().
    - Issue #10571: Fix the "--sign" option of distutils' upload command.
    - Issue #9559: If messages were only added, a new file is no longer
      created and renamed over the old file when flush() is called on an
      mbox, MMDF or Babyl mailbox.
    - Issue #14653: email.utils.mktime_tz() no longer relies on system
      mktime() when timezone offest is supplied.
    - Fix GzipFile's handling of filenames given as bytes objects.
    - Issue #15101: Make pool finalizer avoid joining current thread.
    - Issue #15036: Mailbox no longer throws an error if a flush is done
      between operations when removing or changing multiple items in mbox,
      MMDF, or Babyl mailboxes.
    - test_nntplib now tolerates being run from behind NNTP gateways that add
      "X-Antivirus" headers to articles.
    - Issue #15043: test_gdb is now skipped entirely if gdb security settings
      block loading of the gdb hooks.
    - Issue #13557: Clarify effect of giving two different namespaces to exec
      or execfile().
    - Issue #15300: Ensure the temporary test working directories are in the same
      parent folder when running tests in multiprocess mode from a Python build.
  * Lookup extension modules with a multiarch suffix too.
  * Include /usr/include/ncursesw in CPPFLAGS for the curses configure
    checks. Closes: #681007. LP: #1021783.
  * Fix running the testsuite.
  * Backport issue #13150: sysconfig no longer parses the Makefile and config.h
    files when imported, instead doing it at build time.  This makes importing
    sysconfig faster and reduces Python startup time by 20%.
  * Don't build the _hashlib and _ssl extensions as a builtin, but as
    extensions. Addresses: #680930.
  * python3.2: Add a break for python-virtualenv (<< 1.7.1.2-2~).
  * For lto builds, use -g instead of -g1; filter out lto flags in the
    installed Makefile. Addresses: #681348.
  * Don't run the test_gdb test on mips/mipsel, not even in debug mode.

 -- Matthias Klose <doko at debian.org>  Fri, 13 Jul 2012 21:40:01 +0200

** Changed in: python3.2 (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1021783

Title:
  invalid behavior of curses.newpad().refresh()

Status in “python3.2” package in Ubuntu:
  Fix Released

Bug description:
  There is invalid behavior of builtin curses module in amd64 version
  python3.2.

  From API spec, `refresh()` method of a window object returned by
  `curses.newpad(h,w)` should accept 6 arguments; `pad.refresh(pt, pl,
  st, sl, sb, sr)`.

  - http://docs.python.org/py3k/library/curses.html#curses.newpad

  But python3.2 package in amd64 ubuntu precise does not accept
  arguments.

  [bug occured snippet: newpad-refresh.py]
  ##########################################
  import curses

  try:
      screen = curses.initscr()
      curses.cbreak()

      pad = curses.newpad(10, 10)
      pad.addstr(0, 0, "press q")
      size = screen.getmaxyx()
      pad.refresh(0, 0, 0, 0, size[0] - 1, size[1] - 1)
      while True:
          ch = pad.getch()
          if ch == ord("q"):
              break
          pass
      pass
  finally:
      curses.nocbreak()
      curses.endwin()
      pass
  ###########################################

  [execution result]
  ###########################################
  $ python3 newpad-refresh.py 
  Traceback (most recent call last):
    File "newpad-refresh.py", line 10, in <module>
      pad.refresh(0, 0, 0, 0, size[0] - 1, size[1] - 1)
  TypeError: refresh() takes exactly 0 arguments (6 given)
  ###########################################

  The code is worked well on python2.7 pakcage and self compiled python3.2.3.
  There may be a package build problem at python3.2 or ncurses.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: python3.2 3.2.3-0ubuntu3
  ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
  Uname: Linux 3.2.0-26-generic x86_64
  ApportVersion: 2.0.1-0ubuntu8
  Architecture: amd64
  Date: Sat Jul  7 00:09:05 2012
  ProcEnviron:
   TERM=xterm
   PATH=(custom, user)
   LANG=ja_JP.UTF-8
   SHELL=/bin/bash
  SourcePackage: python3.2
  UpgradeStatus: Upgraded to precise on 2012-03-21 (106 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.2/+bug/1021783/+subscriptions



More information about the Ubuntu-sponsors mailing list