Skip to content

Commit f28652d

Browse files
author
amamov
committed
[refactoring]
1 parent 586cadb commit f28652d

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

.vscode/settings.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
{
2-
"python.formatting.provider": "black",
2+
"[javascript]": {
3+
"editor.defaultFormatter": "esbenp.prettier-vscode"
4+
},
5+
"[markdown]": {
6+
"editor.wordWrap": "on",
7+
"editor.quickSuggestions": false,
8+
"editor.defaultFormatter": "esbenp.prettier-vscode"
9+
},
10+
"[python]": {
11+
"editor.defaultFormatter": "ms-python.python"
12+
},
313
"python.linting.pylintEnabled": false,
414
"python.linting.flake8Enabled": true,
515
"python.linting.enabled": true,
6-
"editor.defaultFormatter": "ms-python.python"
16+
"python.linting.flake8Args": ["--max-line-length=100"],
17+
"python.formatting.provider": "black",
18+
"python.formatting.blackArgs": ["--line-length", "100"]
719
}

01 파이썬, 객체지향 프로그래밍/05-magic-method.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ class Robot:
66
Author : Amaco
77
"""
88

9-
population = 0
10-
119
def __init__(self, name):
1210
self.name = name
1311
Robot.population += 1
@@ -50,4 +48,4 @@ def __call__(self):
5048
print(droid1) # <__main__.Robot object at 0x7fde1c742110> -> R2-D2 robot!!
5149

5250

53-
droid1()
51+
droid1()

01 파이썬, 객체지향 프로그래밍/15-__slots__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
# __dict__를 통해 관리되는 객체의 성능을 최적화한다. -> 다수의 객체 생성시 메모리 사용 공간 대폭 감소한다.
66
"""
77

8+
import timeit
9+
810

911
class WithoutSlotClass:
1012
def __init__(self, name, age):
@@ -34,9 +36,6 @@ def __init__(self, name, age):
3436
print(ws.__slots__)
3537

3638

37-
import timeit
38-
39-
4039
# * 메모리 사용량 비교
4140

4241

0 commit comments

Comments
 (0)