summaryrefslogtreecommitdiff
path: root/Technology
diff options
context:
space:
mode:
authornic <ra@afu.re>2024-11-02 22:00:27 -0400
committernic <ra@afu.re>2024-11-02 22:00:27 -0400
commit7668ddaa5e9934bf744d41b965de3ae904b42bbb (patch)
tree34a08781bac4bdafc53f838d4f5abbfcfb02bf0a /Technology
parent5d74b79cd917095069a10d90240f52584b05c921 (diff)
Auto from nzxt - Sat 02 Nov 2024 10:00:27 PM EDT
Diffstat (limited to 'Technology')
-rw-r--r--Technology/Python.md24
-rw-r--r--Technology/index.md1
2 files changed, 24 insertions, 1 deletions
diff --git a/Technology/Python.md b/Technology/Python.md
index 8374f6b..fffa970 100644
--- a/Technology/Python.md
+++ b/Technology/Python.md
@@ -1,10 +1,32 @@
-methods this format foo.bar .bar
+Python does not have a classpath and unless you are root, you can't install new pkg for the whole system
+
+virtualenv - solution to pkg management? - isolated space with own instance of python
+
+virtualenv TESTENV -p python
+source TESTENV/bin/activate
+# to get out of env
+deactivate
+
+
+** exponant
+
+x = 'Mark'
+len(x) - function
+x.upper() - method
dir() - built it give directory of an object (all methods available)
+# Data containers
list() - []
dict() - {}
tuple() - ()
set() - set()
+
+
+
+__ init__ - where to assign instance specific attributes when object first constructed
+__ str__ - control how object is printed
+__ repr__ - object output when interactive shell
+__ eq__ - uniquely identify all created object
diff --git a/Technology/index.md b/Technology/index.md
index 5f5a2ec..9b584ea 100644
--- a/Technology/index.md
+++ b/Technology/index.md
@@ -16,6 +16,7 @@ to solve
but dist-kernel useflag must be anabled ?
+e = [[i+j for i in 'abcde'] for j in 'xyz']