File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -237,10 +237,11 @@ But is `stackoverflow.info` the same thing as `Website.info`?
237237
238238It's not.
239239
240- Instead, ` stackoverflow.info ` is a ** method** . Effbot also has a ` .info `
241- method. So ` Website.info(stackoverflow) ` does the same thing as
242- ` stackoverflow.info() ` , and when ` stackoverflow.info() ` is called it
243- automatically gets ` stackoverflow ` as an argument.
240+ Instead, ` stackoverflow.info ` is a ** method** . Functions as class
241+ attributes can be accessed as methods from instances. Effbot also
242+ has a ` .info ` method. So ` Website.info(stackoverflow) ` does the same
243+ thing as ` stackoverflow.info() ` , and when ` stackoverflow.info() ` is
244+ called it automatically gets ` stackoverflow ` as an argument.
244245
245246In other words, ` Class.method(instance) ` does the same thing as
246247` instance.method() ` . This also works with built-in classes, for
You can’t perform that action at this time.
0 commit comments