workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
basically you have a string `good bits, bad bit, good bits, more bad, good`
2019-04-20T08:10:16.493600
Leida
pythondev_help_Leida_2019-04-20T08:10:16.493600
1,555,747,816.4936
19,621
pythondev
help
so cut 3 sections each of the good parts and then add the parts
2019-04-20T08:10:34.494000
Leida
pythondev_help_Leida_2019-04-20T08:10:34.494000
1,555,747,834.494
19,622
pythondev
help
``` first_good = string[:beginning] second_good = string[beginning+len(opening_tag):end] third_good = string[end+len(closing_tag):] sum = first_good + second_good + third_good```
2019-04-20T08:12:32.497300
Leida
pythondev_help_Leida_2019-04-20T08:12:32.497300
1,555,747,952.4973
19,623
pythondev
help
`find` finds the index of the place the substring begins
2019-04-20T08:13:23.498400
Leida
pythondev_help_Leida_2019-04-20T08:13:23.498400
1,555,748,003.4984
19,624
pythondev
help
and you get the end index using `len(string)`
2019-04-20T08:13:39.498800
Leida
pythondev_help_Leida_2019-04-20T08:13:39.498800
1,555,748,019.4988
19,625
pythondev
help
This is great help. thanks. can it be done by element tree. by just removing those tags and will return the desired xml. i am trying to parse it with element tree and then remove those element.
2019-04-20T08:14:16.499300
Jerrie
pythondev_help_Jerrie_2019-04-20T08:14:16.499300
1,555,748,056.4993
19,626
pythondev
help
xml with namespace making it tough to remove child tag
2019-04-20T08:15:20.000200
Jerrie
pythondev_help_Jerrie_2019-04-20T08:15:20.000200
1,555,748,120.0002
19,627
pythondev
help
idk much about xml manipulation, just you should be able to serialize it into a string, cut out the parts and then reverse serialize it to xml
2019-04-20T08:16:15.001100
Leida
pythondev_help_Leida_2019-04-20T08:16:15.001100
1,555,748,175.0011
19,628
pythondev
help
if the xml is massive or you need to do it often then some xml tool is probably the way to go
2019-04-20T08:17:23.002100
Leida
pythondev_help_Leida_2019-04-20T08:17:23.002100
1,555,748,243.0021
19,629
pythondev
help
Thanks karl. i am gonna try your way
2019-04-20T08:18:01.002600
Jerrie
pythondev_help_Jerrie_2019-04-20T08:18:01.002600
1,555,748,281.0026
19,630
pythondev
help
if you are reading from a file then you could open the .xml file and read it in as a string, do the cutting and then call `ElementTree.parse()` on the string to have it as elementtree
2019-04-20T08:19:18.003500
Leida
pythondev_help_Leida_2019-04-20T08:19:18.003500
1,555,748,358.0035
19,631
pythondev
help
i am doing Schema validation so how can i display user friendly validation messages?
2019-04-20T12:53:40.004500
Jerrie
pythondev_help_Jerrie_2019-04-20T12:53:40.004500
1,555,764,820.0045
19,632
pythondev
help
I have an existing http server and I need to add a websocket server. I'm stuck with Python 2.7, so my choices are somewhat limited. I'm using `autobahn-python` for the websocket server, but it needs to run on the main thread. Is there any issue with running my http server on a child thread?
2019-04-20T13:16:50.006700
Al
pythondev_help_Al_2019-04-20T13:16:50.006700
1,555,766,210.0067
19,633
pythondev
help
I am going to store a ledger and I'm wondering about the datastructure I should use for it. My thought was to store a list of objects which have a value (positive or negative) and a date. I want to be able to iterate through the list to display the value of the current entry as well as the running total. Any thoughts? Esp. about optimizing it or whether that's a waste of time. I think it will typically hold no more than a few hundred entries
2019-04-20T16:34:40.009500
Fredric
pythondev_help_Fredric_2019-04-20T16:34:40.009500
1,555,778,080.0095
19,634
pythondev
help
I'm thinking there should be a Ledger.as_sorted_ledger() method that returns the list with all entries having the running total as a property
2019-04-20T16:42:00.010200
Fredric
pythondev_help_Fredric_2019-04-20T16:42:00.010200
1,555,778,520.0102
19,635
pythondev
help
None
2019-04-20T16:47:06.010400
Melia
pythondev_help_Melia_2019-04-20T16:47:06.010400
1,555,778,826.0104
19,636
pythondev
help
None
2019-04-20T16:55:13.010700
Fredric
pythondev_help_Fredric_2019-04-20T16:55:13.010700
1,555,779,313.0107
19,637
pythondev
help
Not sure if It understand, you want use while loop instead of recursion ?
2019-04-20T17:47:53.011200
Vicente
pythondev_help_Vicente_2019-04-20T17:47:53.011200
1,555,782,473.0112
19,638
pythondev
help
Hello all, How would I present the patient who spent the most? I have a multidimensional list here and I am thinking to do a loop to find out who that patient is? Would this be the correct thinking? Am I missing something? I'm not sure how I would do that.
2019-04-20T18:39:48.014800
Milly
pythondev_help_Milly_2019-04-20T18:39:48.014800
1,555,785,588.0148
19,639
pythondev
help
Yep, a loop would be perfectly fine. You can also potentially use a quick list comprehension with tuples: ```amount, name = max((x[1], x[0]) for x in patients)```
2019-04-20T18:44:00.016100
Sasha
pythondev_help_Sasha_2019-04-20T18:44:00.016100
1,555,785,840.0161
19,640
pythondev
help
Ah! Thanks, <@Sasha>! Should I be changing my list to a tuple to do that?
2019-04-20T18:49:45.016300
Milly
pythondev_help_Milly_2019-04-20T18:49:45.016300
1,555,786,185.0163
19,641
pythondev
help
No, that's not necessary... anything you can iterate over will work the same way.
2019-04-20T18:50:38.016500
Sasha
pythondev_help_Sasha_2019-04-20T18:50:38.016500
1,555,786,238.0165
19,642
pythondev
help
However, you may consider changing to a dict, with the name as the key and the cost as the value. That way you wouldn't need to scan through it to look someone up, etc.
2019-04-20T18:51:34.016700
Sasha
pythondev_help_Sasha_2019-04-20T18:51:34.016700
1,555,786,294.0167
19,643
pythondev
help
Depends how you want to use the data.
2019-04-20T18:52:58.016900
Sasha
pythondev_help_Sasha_2019-04-20T18:52:58.016900
1,555,786,378.0169
19,644
pythondev
help
Okay, I have a dictionary that I already made but I wasn't sure if the integers only could called.
2019-04-20T18:53:11.017100
Milly
pythondev_help_Milly_2019-04-20T18:53:11.017100
1,555,786,391.0171
19,645
pythondev
help
patient1={"name": "NatalieGarcia", "primarycare": "Dr.Bryson", "treatment": insulin,} for x in patient1: print(patient1) break
2019-04-20T18:53:26.017300
Milly
pythondev_help_Milly_2019-04-20T18:53:26.017300
1,555,786,406.0173
19,646
pythondev
help
Gotcha. For something like that, you might also consider having a patient class, with name, treatment, etc. as attributes.
2019-04-20T18:54:50.017500
Sasha
pythondev_help_Sasha_2019-04-20T18:54:50.017500
1,555,786,490.0175
19,647
pythondev
help
Dicts tend to be better when the keys are "data" as well, like mapping states names to state capitals. If the keys are few and standardized, a class can make better sense. But either way can work.
2019-04-20T18:55:52.017700
Sasha
pythondev_help_Sasha_2019-04-20T18:55:52.017700
1,555,786,552.0177
19,648
pythondev
help
Oh I haven't learned about classes yet. okay! and that way I could find which out of all my patients received the most expensive treatments?
2019-04-20T18:56:00.017900
Milly
pythondev_help_Milly_2019-04-20T18:56:00.017900
1,555,786,560.0179
19,649
pythondev
help
Almost any data structure will let you find the maximum cost with some sort of a loop, so that'll be relatively easy no matter how you organize things.
2019-04-20T18:57:00.018100
Sasha
pythondev_help_Sasha_2019-04-20T18:57:00.018100
1,555,786,620.0181
19,650
pythondev
help
so for what you provided me before, nothing comes up. so would i put print(max(patients) afterward? because I'm only given the first name and cost as a result and thats not the most expensive.
2019-04-20T18:59:08.018300
Milly
pythondev_help_Milly_2019-04-20T18:59:08.018300
1,555,786,748.0183
19,651
pythondev
help
Sorry for all the messages. I've been having the same issue for like two days. :woman-facepalming:
2019-04-20T18:59:50.018500
Milly
pythondev_help_Milly_2019-04-20T18:59:50.018500
1,555,786,790.0185
19,652
pythondev
help
Sorry, just do `print(name, amount)` to display the result.
2019-04-20T18:59:52.018700
Sasha
pythondev_help_Sasha_2019-04-20T18:59:52.018700
1,555,786,792.0187
19,653
pythondev
help
The answer is just assigned to those variables.
2019-04-20T19:00:05.018900
Sasha
pythondev_help_Sasha_2019-04-20T19:00:05.018900
1,555,786,805.0189
19,654
pythondev
help
Ah! That worked!
2019-04-20T19:00:38.019200
Milly
pythondev_help_Milly_2019-04-20T19:00:38.019200
1,555,786,838.0192
19,655
pythondev
help
So the same for minimum I presume.
2019-04-20T19:00:45.019400
Milly
pythondev_help_Milly_2019-04-20T19:00:45.019400
1,555,786,845.0194
19,656
pythondev
help
Yep, just use `min()` instead.
2019-04-20T19:00:58.019600
Sasha
pythondev_help_Sasha_2019-04-20T19:00:58.019600
1,555,786,858.0196
19,657
pythondev
help
Oh the question was second highest. So how would I find that?
2019-04-20T19:01:50.019800
Milly
pythondev_help_Milly_2019-04-20T19:01:50.019800
1,555,786,910.0198
19,658
pythondev
help
You're seriously the best! I really appreciate this!
2019-04-20T19:02:24.020000
Milly
pythondev_help_Milly_2019-04-20T19:02:24.020000
1,555,786,944.02
19,659
pythondev
help
It's not quite the most efficient, but the easiest way is to sort the list, and then you can pick off whatever rank you want. Do you actually want me to show you the answer, or is this a problem you're supposed to solve by yourself, and you just want a hint?
2019-04-20T19:03:30.020200
Sasha
pythondev_help_Sasha_2019-04-20T19:03:30.020200
1,555,787,010.0202
19,660
pythondev
help
No, just you explaining the thought process is helping. I've done the foundation already. But yes, I know about the pop method so I'll try that.
2019-04-20T19:06:39.020400
Milly
pythondev_help_Milly_2019-04-20T19:06:39.020400
1,555,787,199.0204
19,661
pythondev
help
I've only learned to programme 4 days ago so I'm still trying to understand how to think "like a programmer".
2019-04-20T19:08:19.020600
Milly
pythondev_help_Milly_2019-04-20T19:08:19.020600
1,555,787,299.0206
19,662
pythondev
help
Sure thing, and feel free to ask if you get stuck. You shouldn't really need the `pop()` method, since if you have a sorted list, you can directly access each element by `[0]`, `[1]`, etc.
2019-04-20T19:08:27.020800
Sasha
pythondev_help_Sasha_2019-04-20T19:08:27.020800
1,555,787,307.0208
19,663
pythondev
help
4 days? That's awesome! But yeah, it does take some time to gain a problem-solving intuition, especially if you don't know what all the possibilities are yet.
2019-04-20T19:10:01.021000
Sasha
pythondev_help_Sasha_2019-04-20T19:10:01.021000
1,555,787,401.021
19,664
pythondev
help
Yes, the "possibilities"! That's exactly it.
2019-04-20T19:11:10.021200
Milly
pythondev_help_Milly_2019-04-20T19:11:10.021200
1,555,787,470.0212
19,665
pythondev
help
&amp; Thank you again! I'll keep cranking away at this code. You said "feel free to ask" so I'll be back if I get into any more trouble lol. :grinning:
2019-04-20T19:13:37.021400
Milly
pythondev_help_Milly_2019-04-20T19:13:37.021400
1,555,787,617.0214
19,666
pythondev
help
Absolutely. And if I'm not around, the folks in <#C07EW4DNE|learning_python> and <#C07EFMZ1N|help> are great resources too.
2019-04-20T19:14:30.021600
Sasha
pythondev_help_Sasha_2019-04-20T19:14:30.021600
1,555,787,670.0216
19,667
pythondev
help
I dont know how to tackle this problem. I need to take a serial number from the user, then run a number of functions and have the values from those functions append to the corresponding serial number. Does anyone have any suggestions?
2019-04-20T20:24:13.023400
Priscilla
pythondev_help_Priscilla_2019-04-20T20:24:13.023400
1,555,791,853.0234
19,668
pythondev
help
it must be soooo common
2019-04-20T20:24:56.023800
Priscilla
pythondev_help_Priscilla_2019-04-20T20:24:56.023800
1,555,791,896.0238
19,669
pythondev
help
Can you expand on "append"? Do you literally mean append to a string, or is it more like the values need to be associated with the serial number in a database?
2019-04-20T20:27:16.024800
Sasha
pythondev_help_Sasha_2019-04-20T20:27:16.024800
1,555,792,036.0248
19,670
pythondev
help
litterally append, its all going into a csv and the serial number and all asociated test values will be on the same row
2019-04-20T20:30:49.025500
Priscilla
pythondev_help_Priscilla_2019-04-20T20:30:49.025500
1,555,792,249.0255
19,671
pythondev
help
This sounds simple, but there are probably some subtleties. Maybe this: ```serial = input("Please enter your serial: ") result = serial + func1(serial) result += func2(serial) result += func3(serial)``` If you have many functions, you can loop over them with a `join()` on the results, too.
2019-04-20T20:33:46.028300
Sasha
pythondev_help_Sasha_2019-04-20T20:33:46.028300
1,555,792,426.0283
19,672
pythondev
help
Or you could do string formatting: `result = "{}-{}-{}".format(serial, func1(serial), func2(serial))`.
2019-04-20T20:35:37.029800
Sasha
pythondev_help_Sasha_2019-04-20T20:35:37.029800
1,555,792,537.0298
19,673
pythondev
help
hmmm... the latter was my first idea, but it wasnt working, hangon i got an idea
2019-04-20T20:37:44.030600
Priscilla
pythondev_help_Priscilla_2019-04-20T20:37:44.030600
1,555,792,664.0306
19,674
pythondev
help
ERROR `can only concatenate str (not "module") to str`
2019-04-20T20:51:59.032800
Priscilla
pythondev_help_Priscilla_2019-04-20T20:51:59.032800
1,555,793,519.0328
19,675
pythondev
help
expected output needs to be `serial, PASS/FAIL` as you can see on line 5 I convert it to a string but the error seems to think its not a string
2019-04-20T20:54:16.034500
Priscilla
pythondev_help_Priscilla_2019-04-20T20:54:16.034500
1,555,793,656.0345
19,676
pythondev
help
Okay, there's a decent amount wrong with this, but which line is throwing the error, to start with?
2019-04-20T20:55:39.034900
Sasha
pythondev_help_Sasha_2019-04-20T20:55:39.034900
1,555,793,739.0349
19,677
pythondev
help
It sounds like there's some confusion between the `import serial` module and your `serial` variable?
2019-04-20T20:56:11.035600
Sasha
pythondev_help_Sasha_2019-04-20T20:56:11.035600
1,555,793,771.0356
19,678
pythondev
help
oh my god i think so...
2019-04-20T20:56:31.035900
Priscilla
pythondev_help_Priscilla_2019-04-20T20:56:31.035900
1,555,793,791.0359
19,679
pythondev
help
line 18 and 20
2019-04-20T20:57:08.036200
Priscilla
pythondev_help_Priscilla_2019-04-20T20:57:08.036200
1,555,793,828.0362
19,680
pythondev
help
How are you calling `keypad_sim_display()`?
2019-04-20T20:57:56.036700
Sasha
pythondev_help_Sasha_2019-04-20T20:57:56.036700
1,555,793,876.0367
19,681
pythondev
help
in my main function I have a all the functions running in the order necessary so its like this
2019-04-20T21:00:38.037200
Priscilla
pythondev_help_Priscilla_2019-04-20T21:00:38.037200
1,555,794,038.0372
19,682
pythondev
help
im not going to like what comes next... i can feel it... in mah bones
2019-04-20T21:02:33.037800
Priscilla
pythondev_help_Priscilla_2019-04-20T21:02:33.037800
1,555,794,153.0378
19,683
pythondev
help
When you use `serial` there in the function call... where exactly is it coming from?
2019-04-20T21:05:08.038300
Sasha
pythondev_help_Sasha_2019-04-20T21:05:08.038300
1,555,794,308.0383
19,684
pythondev
help
its returned from the `ser_num()` at line 3
2019-04-20T21:05:43.038800
Priscilla
pythondev_help_Priscilla_2019-04-20T21:05:43.038800
1,555,794,343.0388
19,685
pythondev
help
If it were returned, you would have `serial = ser_num()`, right?
2019-04-20T21:06:44.040100
Sasha
pythondev_help_Sasha_2019-04-20T21:06:44.040100
1,555,794,404.0401
19,686
pythondev
help
so the first thing the user doses is assign a serial number to a device, then the functions lines 6-9 run. if all of those pass according to `keypad_sim_display()` then it will append the word PASS to the serial number
2019-04-20T21:07:17.040800
Priscilla
pythondev_help_Priscilla_2019-04-20T21:07:17.040800
1,555,794,437.0408
19,687
pythondev
help
what do you mean?
2019-04-20T21:08:11.041500
Priscilla
pythondev_help_Priscilla_2019-04-20T21:08:11.041500
1,555,794,491.0415
19,688
pythondev
help
sorry i dont understand your question
2019-04-20T21:08:21.041800
Priscilla
pythondev_help_Priscilla_2019-04-20T21:08:21.041800
1,555,794,501.0418
19,689
pythondev
help
here it is without the conflict of `serial`
2019-04-20T21:10:01.042400
Priscilla
pythondev_help_Priscilla_2019-04-20T21:10:01.042400
1,555,794,601.0424
19,690
pythondev
help
When a function returns a value, if you need to do anything with it, you need to capture it to a variable, like `result = foo()`. Otherwise it is just discarded.
2019-04-20T21:10:30.043200
Sasha
pythondev_help_Sasha_2019-04-20T21:10:30.043200
1,555,794,630.0432
19,691
pythondev
help
isnt that saving it in a variable on line 4? i thought it was
2019-04-20T21:11:43.044300
Priscilla
pythondev_help_Priscilla_2019-04-20T21:11:43.044300
1,555,794,703.0443
19,692
pythondev
help
or do you mean outside of the function?
2019-04-20T21:12:13.044600
Priscilla
pythondev_help_Priscilla_2019-04-20T21:12:13.044600
1,555,794,733.0446
19,693
pythondev
help
Outside of the function. "What happens in a function, stays in the function", for the most part.
2019-04-20T21:13:15.045100
Sasha
pythondev_help_Sasha_2019-04-20T21:13:15.045100
1,555,794,795.0451
19,694
pythondev
help
oh! i see
2019-04-20T21:13:25.045300
Priscilla
pythondev_help_Priscilla_2019-04-20T21:13:25.045300
1,555,794,805.0453
19,695
pythondev
help
omg omg omg
2019-04-20T21:18:30.045700
Priscilla
pythondev_help_Priscilla_2019-04-20T21:18:30.045700
1,555,795,110.0457
19,696
pythondev
help
im so excited!! thanks <@Sasha> again! spent hours on that, i learned a LOT whooop whoooooP!
2019-04-20T21:19:17.046500
Priscilla
pythondev_help_Priscilla_2019-04-20T21:19:17.046500
1,555,795,157.0465
19,697
pythondev
help
:tada:
2019-04-20T21:19:35.046800
Priscilla
pythondev_help_Priscilla_2019-04-20T21:19:35.046800
1,555,795,175.0468
19,698
pythondev
help
who pays for this slack room? do we know who is the owner?
2019-04-20T21:26:43.047300
Priscilla
pythondev_help_Priscilla_2019-04-20T21:26:43.047300
1,555,795,603.0473
19,699
pythondev
help
AFAIK it's just using the free Slack tier, which is why there's no extended history available.
2019-04-20T21:27:54.047800
Sasha
pythondev_help_Sasha_2019-04-20T21:27:54.047800
1,555,795,674.0478
19,700
pythondev
help
oh
2019-04-20T21:28:15.048000
Priscilla
pythondev_help_Priscilla_2019-04-20T21:28:15.048000
1,555,795,695.048
19,701
pythondev
help
there are a couple ancillary services related to the bot and the site and such that are paid for but yeah the slack itself is the free tier
2019-04-20T21:28:40.048600
Karoline
pythondev_help_Karoline_2019-04-20T21:28:40.048600
1,555,795,720.0486
19,702
pythondev
help
wubalubadubdub!!
2019-04-20T21:29:32.049000
Priscilla
pythondev_help_Priscilla_2019-04-20T21:29:32.049000
1,555,795,772.049
19,703
pythondev
help
wouldnt appending a csv be putting a new row and not adding to a row?
2019-04-20T22:45:10.049600
Priscilla
pythondev_help_Priscilla_2019-04-20T22:45:10.049600
1,555,800,310.0496
19,704
pythondev
help
Anybody use 'SpaCy' ?
2019-04-20T22:47:34.050100
Clayton
pythondev_help_Clayton_2019-04-20T22:47:34.050100
1,555,800,454.0501
19,705
pythondev
help
as a programmer, what information comment my work with? name? date? name of program? is there a standard way to do it? or should I leave any identifying information out of it?
2019-04-20T23:11:50.051300
Priscilla
pythondev_help_Priscilla_2019-04-20T23:11:50.051300
1,555,801,910.0513
19,706
pythondev
help
It varies a lot. Name and date at least is a good way to be able to assert copyright if that's ever needed. Personally I try to also include a program name and just a quick "what the heck is this thing for" description to at least jog my memory years from now.
2019-04-20T23:15:46.053400
Sasha
pythondev_help_Sasha_2019-04-20T23:15:46.053400
1,555,802,146.0534
19,707
pythondev
help
should i put my name or my LLC name?
2019-04-20T23:18:24.053900
Priscilla
pythondev_help_Priscilla_2019-04-20T23:18:24.053900
1,555,802,304.0539
19,708
pythondev
help
eh i put both
2019-04-20T23:20:16.054100
Priscilla
pythondev_help_Priscilla_2019-04-20T23:20:16.054100
1,555,802,416.0541
19,709
pythondev
help
when is a function name too long?
2019-04-20T23:33:02.054600
Priscilla
pythondev_help_Priscilla_2019-04-20T23:33:02.054600
1,555,803,182.0546
19,710
pythondev
help
Whenever :point_up::skin-tone-2: question pops into your mind
2019-04-20T23:38:35.055300
Conchita
pythondev_help_Conchita_2019-04-20T23:38:35.055300
1,555,803,515.0553
19,711
pythondev
help
It sort of varies with use. Commonly-used functions ought to be short, like `read()`. If it's specialized and only gets called from one place in one library, go ahead and call it `ReadBudgetSpreadsheetIntoDatabase()`.
2019-04-20T23:40:40.057000
Sasha
pythondev_help_Sasha_2019-04-20T23:40:40.057000
1,555,803,640.057
19,712
pythondev
help
But turn off tab completion for a while before you decide long names are fun. :wink:
2019-04-20T23:42:57.057800
Sasha
pythondev_help_Sasha_2019-04-20T23:42:57.057800
1,555,803,777.0578
19,713
pythondev
help
good point <@Conchita>
2019-04-20T23:51:00.058400
Priscilla
pythondev_help_Priscilla_2019-04-20T23:51:00.058400
1,555,804,260.0584
19,714
pythondev
help
Why the use of `_` like `_signer`?``` self._service_account_email = service_account_email self._signer = signer self._scopes = _helpers.scopes_to_string(scopes) self._private_key_id = private_key_id self.client_id = client_id self._user_agent = user_agent self._kwargs = kwargs def _to_json(self, strip, to_serialize=None):```
2019-04-21T00:15:05.059000
Conchita
pythondev_help_Conchita_2019-04-21T00:15:05.059000
1,555,805,705.059
19,715
pythondev
help
Have a feeling <@Sasha> have the answer
2019-04-21T00:16:12.059900
Conchita
pythondev_help_Conchita_2019-04-21T00:16:12.059900
1,555,805,772.0599
19,716
pythondev
help
It's a convention for a class-private variable. It's not enforced like some other languages, but it lets other coders know that they're not "supposed" to mess with those attributes, at least.
2019-04-21T00:16:52.060500
Sasha
pythondev_help_Sasha_2019-04-21T00:16:52.060500
1,555,805,812.0605
19,717
pythondev
help
Whereas `client_id` doesn't have that, so it implies that the author of the class allows you to access `foo.client_id` as a public API for the object.
2019-04-21T00:18:54.061400
Sasha
pythondev_help_Sasha_2019-04-21T00:18:54.061400
1,555,805,934.0614
19,718
pythondev
help
So there are both public and private classes, didn't know that!
2019-04-21T00:19:29.062000
Conchita
pythondev_help_Conchita_2019-04-21T00:19:29.062000
1,555,805,969.062
19,719
pythondev
help
And variables
2019-04-21T00:19:49.062400
Conchita
pythondev_help_Conchita_2019-04-21T00:19:49.062400
1,555,805,989.0624
19,720