2018-09-02 01:26:56
Might actually want that entroy :bear:
Fireduck
2018-09-02 01:27:02
Entropy
Fireduck
2018-09-02 03:49:54
@Fireduck I've been using haveged everywhere, but didn't realize how simple it was or how it worked exactly. I'm happy to use it. :D
Clueless
2018-09-02 04:22:12
```
a = 1
b = a
b += 1
print(a)
print(b)
a = [0,1]
b = a
b.append(2)
print(a)
```
```
1
2
[0, 1, 2]
```
Clueless
2018-09-02 04:23:52
shallow copy of 'a'
Fireduck
2018-09-02 04:24:17
a is a reference to a list, b gets set to a reference to the same list
Fireduck
2018-09-02 04:24:32
so then you add something to the list, a and b both point to that list
Fireduck
2018-09-02 04:24:42
python?
Fireduck
2018-09-02 04:31:19
@Fireduck yeah, python.
I was under the impression things are mostly copies of other things when you set variables. Misunderstandings like that are easy when you're self taught and may have skipped over some fundamentals.
I'm spending time playing with these fundamental concepts to make sure my understanding of the language is more concrete. :)
Clueless
2018-09-02 04:31:58
yeah, it is fun
Fireduck
2018-09-02 04:32:04
long story short.
some objects allow you to mutate the values.
some objects are immutable and return copies.
Clueless
2018-09-02 04:32:16
yep
Fireduck
2018-09-02 04:32:30
^ the above demonstrates how a list can be added to, where as integers are replaced.
Clueless
2018-09-02 04:32:59
the tricky bit, is that it works inside local scopes. ;)
Clueless
2018-09-02 04:33:37
which makes sense honestly
```
def test_append(some_list, v):
some_list.append(v)
test_append(b, 3)
print(a)
```
```
[0, 1, 2, 3]
```
Clueless
2018-09-02 04:34:23
tricky tricky
Clueless
2018-09-02 04:35:55
```b = b + [4] #<=
print(a)
print(b)```
reassigns
```
[0, 1, 2, 3]
[0, 1, 2, 3, 4]```
Clueless
2018-09-02 04:37:15
@Fireduck rereading your message, yeah, you're right.
using different words slightly change perspective. xd
Clueless
2018-09-02 04:40:34
I am full of pith
Fireduck
2018-09-02 09:21:20
https://www.jwz.org/blog/2018/08/higgins-time/ Tales of batshit political supervillainy like this are why I still subscribe to the tz mailing list. diff --git a/asia b/asia. index 7166380..5e27d85 100644 --- a/asia +++ b/asia @@ -2939,15 +2939,34 @@ Link Asia/Qatar Asia/Bahrain # Saudi Arabia # -# From Paul Eggert (2014-07-15): +# From Paul Eggert (2018-08-29): # Time in Saudi Arabia and other countries in the Arabian ...
Rotonen