[Python-bugs-list] [ python-Bugs-458654 ] Code Bug
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 06 Sep 2001 11:21:47 -0700
Bugs item #458654, was opened at 2001-09-05 02:38
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=458654&group_id=5470
Category: Documentation
Group: Python 2.1.1
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Code Bug
Initial Comment:
4.7.1 Default Argument Values
def f(a, l = []):
l.append(a)
return l
print f(1)
print f(2)
print f(3)
Needs a <cr> after return l
----------------------------------------------------------------------
>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-09-06 11:21
Message:
Logged In: YES
user_id=3066
This isn't a bug; it works as given. Typing this at an
interative prompt without a blank line there would *not*
work, however, so I'll add the blank line anyway.
Fixed in Doc/tut/tut.tex revision 1.148.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=458654&group_id=5470