This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author asdfasdfasdfasdfasdfasdfasdf
Recipients asdfasdfasdfasdfasdfasdfasdf, loewis, r.david.murray
Date 2010-08-27.15:11:54
SpamBayes Score 1.132918e-06
Marked as misclassified No
Message-id <1282921915.33.0.655747315632.issue9702@psf.upfronthosting.co.za>
In-reply-to
Content
def list_again(foo):
	foo.append("bar")

def list_again_again(foo):
	foo = foo + ["1"]

if __name__ == "__main__":
	bar = []
	list_again(bar)
	print bar
	list_again_again(bar)
	print bar



Ok so let me without running the above code exactly what it does AND then, stop and think about how *most* coders expect it to behave.
History
Date User Action Args
2010-08-27 15:11:55asdfasdfasdfasdfasdfasdfasdfsetrecipients: + asdfasdfasdfasdfasdfasdfasdf, loewis, r.david.murray
2010-08-27 15:11:55asdfasdfasdfasdfasdfasdfasdfsetmessageid: <1282921915.33.0.655747315632.issue9702@psf.upfronthosting.co.za>
2010-08-27 15:11:54asdfasdfasdfasdfasdfasdfasdflinkissue9702 messages
2010-08-27 15:11:54asdfasdfasdfasdfasdfasdfasdfcreate