Created
April 28, 2016 23:17
-
-
Save sloria/0ae8f8cce7c123cdc14a371bd1313525 to your computer and use it in GitHub Desktop.
Revisions
-
sloria created this gist
Apr 28, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,45 @@ # Recorded with the doitlive recorder #doitlive shell: /bin/bash #doitlive prompt: sorin ```python class Foo: pass # We can assign anything f = Foo() f.poo = '¯\_(ツ)_/¯' f.poo f.woo = 'o(-`д´- 。)`)' f.woo class EnterpriseFoo: __slots__ = ('poo', ) # We can ONLY assign poo ef = EnterpriseFoo() ef.poo = '(*≧m≦*)' ef.poo ef.woo = '\(・`(ェ)・)/' class EnterpriseBar(EnterpriseFoo): pass # We can assign anything eb = EnterpriseBar() eb.poo = '{{|└(>o< )┘|}}' eb.woo = '╰༼=ಠਊಠ=༽╯' eb.woo class EnterpriseBaz: __slots__ = ('poo', '__dict__') # We can assign anything eb = EnterpriseBaz() eb.poo = '໒( ᓀ ‸ ᓂ )७' eb.woo = '((╬ಠิ﹏ಠิ))' eb.woo ```