Skip to content

Commit 0b592d9

Browse files
committed
chore: update changelog
1 parent 26edd3d commit 0b592d9

File tree

5 files changed

+20
-14
lines changed

5 files changed

+20
-14
lines changed

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"firdousmurtaza",
5656
"flymemory",
5757
"frozenset",
58+
"functools",
5859
"Gaurav",
5960
"getattr",
6061
"getattribute",
@@ -94,6 +95,7 @@
9495
"listdir",
9596
"ljust",
9697
"lstrip",
98+
"madeelchaudhary",
9799
"makedirs",
98100
"memoryview",
99101
"mkdir",

docs/builtin/classmethod.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if __name__ == "__main__":
3535
counter = Counter()
3636
print(counter.increment())
3737
# 1
38-
38+
3939
counter = counter.get_new_instance()
4040
print(counter.increment())
4141
# 1

docs/cheatsheet/decorators.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ description: A Python Decorator is a syntax that provide a concise and reusable
77
Python Decorators
88
</base-title>
99

10-
A Python Decorator is a syntax that provides a concise and reusable way for extending a function or a class.
10+
A Python Decorator provides a concise and reusable way for extending a function or a class.
1111

1212
## Bare bone decorator
1313

14-
A decorator in its simplest form is a function that takes another function as an argument and returns a wrapper function. The following example shows the creation of a decorator and its usage.
14+
A decorator in its simplest form is a function that takes another function as an argument and returns a wrapper. The following example shows the creation of a decorator and its usage.
1515

1616
```python
1717
def your_decorator(func):
@@ -28,7 +28,6 @@ def foo():
2828
print("Hello World!")
2929

3030
foo()
31-
3231
# Before func!
3332
# Hello World!
3433
# After func!
@@ -110,23 +109,22 @@ class CountCallNumber:
110109

111110
def __init__(self, func):
112111
self.func = func
113-
self.call_number = 0
114-
112+
self.call_number = 0
113+
115114
def __call__(self, *args, **kwargs):
116115
self.call_number += 1
117116
print("This is execution number " + str(self.call_number))
118117
return self.func(*args, **kwargs)
119-
118+
120119
@CountCallNumber
121120
def say_hi(name):
122121
print("Hi! My name is " + name)
123122

124123
say_hi("Jack")
125-
126-
say_hi("James")
127-
128124
# This is execution number 1
129125
# Hi! My name is Jack
126+
127+
say_hi("James")
130128
# This is execution number 2
131129
# Hi! My name is James
132130
```

src/pages/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ updated: February 25, 2023
99
Changelog
1010
</base-title>
1111

12+
## 2023-10-27
13+
14+
- Added `classmethod` built in decorator. Thanks [@classic-arnold](https://github.com/classic-arnold)
15+
- Added `staticmethod` built in decorator. Thanks [@LairdStreak](https://github.com/LairdStreak)
16+
- Added string `replace` method to string manipulation. Thanks [@madeelchaudhary](https://github.com/madeelchaudhary)
17+
1218
## 2023-10-13
1319

1420
- Added examples for Boolean Operators. Thanks [@omii2k01](https://github.com/omii2k01)

src/store/navigation.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ export const useNavigationStore = defineStore('navigation', {
2929
{
3030
name: 'Built-in functions',
3131
path: '/cheatsheet/built-in-functions',
32-
updated: false,
32+
updated: true,
3333
},
3434
{
3535
name: 'Control flow',
3636
path: '/cheatsheet/control-flow',
37-
updated: true,
37+
updated: false,
3838
},
3939
{
4040
name: 'Functions',
@@ -95,7 +95,7 @@ export const useNavigationStore = defineStore('navigation', {
9595
{
9696
name: 'Exception handling',
9797
path: '/cheatsheet/exception-handling',
98-
updated: true,
98+
updated: false,
9999
},
100100
{
101101
name: 'Debugging',
@@ -110,7 +110,7 @@ export const useNavigationStore = defineStore('navigation', {
110110
{
111111
name: 'Decorators',
112112
path: '/cheatsheet/decorators',
113-
updated: false,
113+
updated: true,
114114
},
115115
{
116116
name: 'Context manager',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy