2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1,19 +0,0 @@
|
|||
>>> class Borg(object):
|
||||
__state = {}
|
||||
def __init__(self):
|
||||
self.__dict__ = self.__state
|
||||
# Any other class names/methods
|
||||
|
||||
|
||||
>>> b1 = Borg()
|
||||
>>> b2 = Borg()
|
||||
>>> b1 is b2
|
||||
False
|
||||
>>> b1.datum = range(5)
|
||||
>>> b1.datum
|
||||
[0, 1, 2, 3, 4]
|
||||
>>> b2.datum
|
||||
[0, 1, 2, 3, 4]
|
||||
>>> b1.datum is b2.datum
|
||||
True
|
||||
>>> # For any datum!
|
||||
Loading…
Add table
Add a link
Reference in a new issue