[Python-bugs-list] [ python-Bugs-476557 ] Wrong error message for file.write(a, b) (original) (raw)
noreply@sourceforge.net noreply@sourceforge.net
Wed, 31 Oct 2001 10:51:50 -0800
- Previous message: [Python-bugs-list] [ python-Bugs-476858 ] Assignment to () should be legal
- Next message: [Python-bugs-list] [ python-Bugs-476884 ] Configparser line continuations fail
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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: Closed Resolution: Accepted Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Michael Hudson (mwh) 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
Comment By: Michael Hudson (mwh) Date: 2001-10-31 10:51
Message: Logged In: YES user_id=6656
OK, done in fileobject.c revision 2.136. Re space/tabs: submitting patches is a multi-OS multi-machine adventure for me at the moment. You probably don't want to know the details.
Comment By: Guido van Rossum (gvanrossum) Date: 2001-10-31 09:43
Message: Logged In: YES user_id=6380
Michael, the patch looks good, you can apply it yourself.
(How did you manage to get the patch space-filled where the source code has only tabs?)
Comment By: Michael Hudson (mwh) Date: 2001-10-31 02:31
Message: Logged In: YES user_id=6656
I think this is easy.
Can someone have a look at the attached patch while make test is running?
You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=476557&group_id=5470
- Previous message: [Python-bugs-list] [ python-Bugs-476858 ] Assignment to () should be legal
- Next message: [Python-bugs-list] [ python-Bugs-476884 ] Configparser line continuations fail
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]