печально быть антисоциальным - Post a comment

Feb. 19th, 2007

[info]smejmoon

01:08 pm

>>> def something(x = []):
...   x += ['foo']
...   return x
...  
>>> something()
['foo']
>>> something()
['foo', 'foo']
>>> something()
['foo', 'foo', 'foo']
>>> something([1])
[1, 'foo']
>>> something()
['foo', 'foo', 'foo', 'foo']

Read Comments

Reply:

From:
( )Anonymous- this user has disabled anonymous posting.
Username:
Password:
Subject:
No HTML allowed in subject
  
Message:

Notice! This user has turned on the option that logs your IP address when posting.