Skip to main content
added 17 characters in body
Source Link
Martijn Pieters
  • 1.1m
  • 327
  • 4.2k
  • 3.5k

As for the renamed super_; just reference __class__ in your method as well and it'll work again. The cell is created if you usereference either the super() or use __class__ names in your method:

As for the renamed super_; just reference __class__ in your method as well and it'll work again. The cell is created if you use super() or use __class__ in your method:

As for the renamed super_; just reference __class__ in your method as well and it'll work again. The cell is created if you reference either the super or __class__ names in your method:

deleted 11 characters in body
Source Link
Alex
  • 19.2k
  • 9
  • 66
  • 82
class Foo(Bar):
    def baz(self):
        return super(Foo, self).baz() + 42

Spam = Foo
Foo = something_else()

instance = Spam().baz()  # liable to blow up
class Foo(Bar):
    def baz(self):
        return super(Foo, self).baz() + 42

Spam = Foo
Foo = something_else()

instance = Spam().baz()  # liable to blow up
class Foo(Bar):
    def baz(self):
        return super(Foo, self).baz() + 42

Spam = Foo
Foo = something_else()

Spam().baz()  # liable to blow up
added 6 characters in body
Source Link
Martijn Pieters
  • 1.1m
  • 327
  • 4.2k
  • 3.5k
class Foo(Bar):
    def baz(self):
        return super(Foo, self).baz() + 42

Spam = Foo
Foo = something_else()

instance = Spam().baz()  # liable to blow up
class Foo(Bar):
    def baz(self):
        return super(Foo, self).baz() + 42

Spam = Foo
Foo = something_else()

instance = Spam()  # liable to blow up
class Foo(Bar):
    def baz(self):
        return super(Foo, self).baz() + 42

Spam = Foo
Foo = something_else()

instance = Spam().baz()  # liable to blow up
added 46 characters in body
Source Link
Martijn Pieters
  • 1.1m
  • 327
  • 4.2k
  • 3.5k
Loading
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot
Loading
added 3 characters in body
Source Link
Martijn Pieters
  • 1.1m
  • 327
  • 4.2k
  • 3.5k
Loading
Bounty Awarded with 200 reputation awarded by Zero Piraeus
added 3 characters in body
Source Link
Martijn Pieters
  • 1.1m
  • 327
  • 4.2k
  • 3.5k
Loading
Better code search; more results and faster
Source Link
Martijn Pieters
  • 1.1m
  • 327
  • 4.2k
  • 3.5k
Loading
added 156 characters in body
Source Link
Martijn Pieters
  • 1.1m
  • 327
  • 4.2k
  • 3.5k
Loading
deleted 31 characters in body
Source Link
Martijn Pieters
  • 1.1m
  • 327
  • 4.2k
  • 3.5k
Loading
Source Link
Martijn Pieters
  • 1.1m
  • 327
  • 4.2k
  • 3.5k
Loading