mirror of
https://github.com/evennia/evennia.git
synced 2026-03-17 05:16:31 +01:00
Update docs links
This commit is contained in:
parent
343d630245
commit
92834aacd0
17 changed files with 133 additions and 228 deletions
|
|
@ -73,14 +73,10 @@ is to use the `.format` _method_ of the string:
|
|||
> py print("This is a {} idea!".format("good"))
|
||||
This is a good idea!
|
||||
|
||||
```{eval-rst}
|
||||
.. sidebar:: Functions and Methods
|
||||
```{sidebar} Functions and Methods
|
||||
- Function: Something that performs and action when you `call` it with zero or more `arguments`. A function is stand-alone in a python module, like `print()`
|
||||
- Method: A function that sits "on" an object, like `obj.msg()`.
|
||||
|
||||
Function:
|
||||
Something that performs and action when you `call` it with zero or more `arguments`. A function
|
||||
is stand-alone in a python module, like `print()`
|
||||
Method:
|
||||
A function that sits "on" an object, like `<string>.format()`.
|
||||
```
|
||||
|
||||
A method can be thought of as a resource "on" another object. The method knows on which object it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue