[Python-bugs-list] [ python-Bugs-476557 ] Wrong error message for file.write(a, b) (original) (raw)

noreply@sourceforge.net noreply@sourceforge.net
Tue, 30 Oct 2001 14:46:07 -0800


Bugs item #476557, was opened at 2001-10-30 14:46 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=476557&group_id=5470

Category: Python Interpreter Core Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Wrong error message for file.write(a, b)

Initial Comment: Passing too many arguments to a file's write() method produces an error message that complains about paasing a tuple rather than more accurately complaining about too many arguments:

TypeError: argument must be string or read-only character buffer, not tuple

Hamish Lawson


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