Created
May 28, 2009 03:32
-
-
Save benspaulding/119074 to your computer and use it in GitHub Desktop.
This file contains 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 characters
class Foo(object): | |
bar = ['this', 'that'] | |
class Baz(Foo): | |
# What is the best way to make the bar attr equal to the super class’s | |
# bar attr with some more items appended to the list? | |
# | |
# This obviously doesn't work, but it is the sort of thing I want. | |
bar += ['those', 'these'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment