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
That is why I have 5G now
2019-03-14T06:18:23.612300
Nieves
pythondev_help_Nieves_2019-03-14T06:18:23.612300
1,552,544,303.6123
13,421
pythondev
help
If you don't like programming, OOP, or Python… why are you experimenting with it?
2019-03-14T06:18:31.612800
Melynda
pythondev_help_Melynda_2019-03-14T06:18:31.612800
1,552,544,311.6128
13,422
pythondev
help
Gotta spend that hard earned cash on something useful
2019-03-14T06:18:39.613000
Nieves
pythondev_help_Nieves_2019-03-14T06:18:39.613000
1,552,544,319.613
13,423
pythondev
help
Lolol
2019-03-14T06:18:42.613200
Nieves
pythondev_help_Nieves_2019-03-14T06:18:42.613200
1,552,544,322.6132
13,424
pythondev
help
Just because I don’t like a language or concept doesn’t mean I don’t like programming... of course I use whatever language is best for the job
2019-03-14T06:19:17.614200
Nieves
pythondev_help_Nieves_2019-03-14T06:19:17.614200
1,552,544,357.6142
13,425
pythondev
help
In the workplace... it doesn’t matter what you like or use for that matter
2019-03-14T06:19:37.614800
Nieves
pythondev_help_Nieves_2019-03-14T06:19:37.614800
1,552,544,377.6148
13,426
pythondev
help
As long as it works and works efficiently, you get paid
2019-03-14T06:19:49.615200
Nieves
pythondev_help_Nieves_2019-03-14T06:19:49.615200
1,552,544,389.6152
13,427
pythondev
help
Aka I will learn any language that is needed
2019-03-14T06:20:15.616200
Nieves
pythondev_help_Nieves_2019-03-14T06:20:15.616200
1,552,544,415.6162
13,428
pythondev
help
And yet you do complain a lot.
2019-03-14T06:20:20.616400
Hiroko
pythondev_help_Hiroko_2019-03-14T06:20:20.616400
1,552,544,420.6164
13,429
pythondev
help
Yes... I do. I have opinions.
2019-03-14T06:20:35.617100
Nieves
pythondev_help_Nieves_2019-03-14T06:20:35.617100
1,552,544,435.6171
13,430
pythondev
help
Python is overhyped
2019-03-14T06:20:51.617300
Nieves
pythondev_help_Nieves_2019-03-14T06:20:51.617300
1,552,544,451.6173
13,431
pythondev
help
Most of the OGs I talk to, hate Python
2019-03-14T06:21:05.617800
Nieves
pythondev_help_Nieves_2019-03-14T06:21:05.617800
1,552,544,465.6178
13,432
pythondev
help
:eyeroll:
2019-03-14T06:21:08.617900
Hiroko
pythondev_help_Hiroko_2019-03-14T06:21:08.617900
1,552,544,468.6179
13,433
pythondev
help
Old Grumps?
2019-03-14T06:21:26.618400
Melynda
pythondev_help_Melynda_2019-03-14T06:21:26.618400
1,552,544,486.6184
13,434
pythondev
help
What _do_ you like, if nothing modern? MUMPS? FORTRAN? Assembly?
2019-03-14T06:21:44.619500
Melynda
pythondev_help_Melynda_2019-03-14T06:21:44.619500
1,552,544,504.6195
13,435
pythondev
help
The guys that have been around a very long time some even during BBS era
2019-03-14T06:21:48.619700
Nieves
pythondev_help_Nieves_2019-03-14T06:21:48.619700
1,552,544,508.6197
13,436
pythondev
help
ASM is my goal eventually for what I am going into
2019-03-14T06:22:04.620200
Nieves
pythondev_help_Nieves_2019-03-14T06:22:04.620200
1,552,544,524.6202
13,437
pythondev
help
x86 specifically
2019-03-14T06:22:24.621100
Nieves
pythondev_help_Nieves_2019-03-14T06:22:24.621100
1,552,544,544.6211
13,438
pythondev
help
Ah, making your own railroad tycoon?
2019-03-14T06:22:29.621300
Hiroko
pythondev_help_Hiroko_2019-03-14T06:22:29.621300
1,552,544,549.6213
13,439
pythondev
help
Lol
2019-03-14T06:22:36.621600
Nieves
pythondev_help_Nieves_2019-03-14T06:22:36.621600
1,552,544,556.6216
13,440
pythondev
help
Hah! :smile:
2019-03-14T06:22:36.621700
Melynda
pythondev_help_Melynda_2019-03-14T06:22:36.621700
1,552,544,556.6217
13,441
pythondev
help
No. Malware/exploit dev is best in like C or ASM... for Red Teaming of course.
2019-03-14T06:23:15.622700
Nieves
pythondev_help_Nieves_2019-03-14T06:23:15.622700
1,552,544,595.6227
13,442
pythondev
help
Of course... most of the tools I deal with use Python or a scripting language so learning the language a bit allows me to modify tools to what I want them to do.
2019-03-14T06:23:51.623900
Nieves
pythondev_help_Nieves_2019-03-14T06:23:51.623900
1,552,544,631.6239
13,443
pythondev
help
Not planning on being a malware/exploit dev for a while... I would be happy just being a pentester
2019-03-14T06:24:20.624800
Nieves
pythondev_help_Nieves_2019-03-14T06:24:20.624800
1,552,544,660.6248
13,444
pythondev
help
reminds me of when I was 14
2019-03-14T06:28:52.625000
Conrad
pythondev_help_Conrad_2019-03-14T06:28:52.625000
1,552,544,932.625
13,445
pythondev
help
not any of the programming expertise or anything
2019-03-14T06:29:04.625300
Conrad
pythondev_help_Conrad_2019-03-14T06:29:04.625300
1,552,544,944.6253
13,446
pythondev
help
just the general attitude...
2019-03-14T06:29:10.625500
Conrad
pythondev_help_Conrad_2019-03-14T06:29:10.625500
1,552,544,950.6255
13,447
pythondev
help
Heh. What attitude is that may I ask?
2019-03-14T06:59:10.627700
Nieves
pythondev_help_Nieves_2019-03-14T06:59:10.627700
1,552,546,750.6277
13,448
pythondev
help
I am here because I know I am no good with Python since I don't use it _that_ much.
2019-03-14T07:00:04.628100
Nieves
pythondev_help_Nieves_2019-03-14T07:00:04.628100
1,552,546,804.6281
13,449
pythondev
help
no offense intended. just the complaining bit lol
2019-03-14T07:00:18.628500
Conrad
pythondev_help_Conrad_2019-03-14T07:00:18.628500
1,552,546,818.6285
13,450
pythondev
help
Meh...
2019-03-14T07:00:22.628800
Nieves
pythondev_help_Nieves_2019-03-14T07:00:22.628800
1,552,546,822.6288
13,451
pythondev
help
I state my opinion
2019-03-14T07:00:27.629000
Nieves
pythondev_help_Nieves_2019-03-14T07:00:27.629000
1,552,546,827.629
13,452
pythondev
help
My apologies if it comes off as complaining
2019-03-14T07:00:33.629300
Nieves
pythondev_help_Nieves_2019-03-14T07:00:33.629300
1,552,546,833.6293
13,453
pythondev
help
I am used to C and Perl...
2019-03-14T07:00:40.629500
Nieves
pythondev_help_Nieves_2019-03-14T07:00:40.629500
1,552,546,840.6295
13,454
pythondev
help
Aka things are a lot harder to implant, but you learn a lot
2019-03-14T07:00:48.629800
Nieves
pythondev_help_Nieves_2019-03-14T07:00:48.629800
1,552,546,848.6298
13,455
pythondev
help
The best languages survived for a reason
2019-03-14T07:01:08.630300
Nieves
pythondev_help_Nieves_2019-03-14T07:01:08.630300
1,552,546,868.6303
13,456
pythondev
help
I am learning Py3 mainly because I know I will need it in my field...
2019-03-14T07:01:39.630800
Nieves
pythondev_help_Nieves_2019-03-14T07:01:39.630800
1,552,546,899.6308
13,457
pythondev
help
I also got into arguments over the correct way to implant something as simple as FizzBuzz in Py
2019-03-14T07:02:00.631400
Nieves
pythondev_help_Nieves_2019-03-14T07:02:00.631400
1,552,546,920.6314
13,458
pythondev
help
Most in my CS class and major can't comprehend the basics of C... I am noticing how Python doesn't teach the 'low level' concepts since if something breaks... the programmer has to fix it.
2019-03-14T07:03:06.632900
Nieves
pythondev_help_Nieves_2019-03-14T07:03:06.632900
1,552,546,986.6329
13,459
pythondev
help
Personally, Python is good if you understand the concepts that are needed in case something 'breaks'
2019-03-14T07:03:24.633800
Nieves
pythondev_help_Nieves_2019-03-14T07:03:24.633800
1,552,547,004.6338
13,460
pythondev
help
Hey :slightly_smiling_face: could we please move the conversation to #python_ . This is not really <#C07EFMZ1N|help> related
2019-03-14T07:03:56.635300
Jimmy
pythondev_help_Jimmy_2019-03-14T07:03:56.635300
1,552,547,036.6353
13,461
pythondev
help
I can't see that
2019-03-14T07:04:04.635600
Nieves
pythondev_help_Nieves_2019-03-14T07:04:04.635600
1,552,547,044.6356
13,462
pythondev
help
the channel
2019-03-14T07:04:07.635900
Nieves
pythondev_help_Nieves_2019-03-14T07:04:07.635900
1,552,547,047.6359
13,463
pythondev
help
yeah it's a slack bug, you can find it in the channel list
2019-03-14T07:04:26.636500
Jimmy
pythondev_help_Jimmy_2019-03-14T07:04:26.636500
1,552,547,066.6365
13,464
pythondev
help
nvm
2019-03-14T07:04:28.636700
Nieves
pythondev_help_Nieves_2019-03-14T07:04:28.636700
1,552,547,068.6367
13,465
pythondev
help
Yeah... found it just as you sent that...
2019-03-14T07:04:34.637000
Nieves
pythondev_help_Nieves_2019-03-14T07:04:34.637000
1,552,547,074.637
13,466
pythondev
help
Hi all. I'm looking for sample data to use in my application. Names, e-mails and dates of birth in particular.
2019-03-14T07:12:00.637900
Jamey
pythondev_help_Jamey_2019-03-14T07:12:00.637900
1,552,547,520.6379
13,467
pythondev
help
What would be a good place to get that?
2019-03-14T07:12:10.638200
Jamey
pythondev_help_Jamey_2019-03-14T07:12:10.638200
1,552,547,530.6382
13,468
pythondev
help
in django? you can make it up yourself with model-mommy or factory-boy
2019-03-14T07:14:19.638700
Hiroko
pythondev_help_Hiroko_2019-03-14T07:14:19.638700
1,552,547,659.6387
13,469
pythondev
help
<https://factoryboy.readthedocs.io/en/latest/>
2019-03-14T07:15:11.638900
Hiroko
pythondev_help_Hiroko_2019-03-14T07:15:11.638900
1,552,547,711.6389
13,470
pythondev
help
Yes. Like to fill out forms because I've run out of possible combinations of `Test User` that I can possibly use :joy:
2019-03-14T07:18:38.640100
Jamey
pythondev_help_Jamey_2019-03-14T07:18:38.640100
1,552,547,918.6401
13,471
pythondev
help
<@Hiroko> :taco:
2019-03-14T07:18:43.640300
Jamey
pythondev_help_Jamey_2019-03-14T07:18:43.640300
1,552,547,923.6403
13,472
pythondev
help
I am parsing a text file line by line, but some lines are empty so I use line strip; ``` with open(filename) as fp: line = fp.readline() while line: while line.strip(): print(line) ``` It prints a few lines but then freezes. Here is some example text; ``` LBT RAT:; ABCY1234 +++ ABCY1234 2019-01-28 16:04:44 A&amp;B #44890 %%/*12234084*/LBT RAT:;%% RATBODD = 0 Operation succeeded. No matching result is found --- END ```
2019-03-14T08:23:17.644700
Arturo
pythondev_help_Arturo_2019-03-14T08:23:17.644700
1,552,551,797.6447
13,473
pythondev
help
why not check if a line is empty?
2019-03-14T08:24:40.644900
Hiroko
pythondev_help_Hiroko_2019-03-14T08:24:40.644900
1,552,551,880.6449
13,474
pythondev
help
oh, oh
2019-03-14T08:25:31.645100
Hiroko
pythondev_help_Hiroko_2019-03-14T08:25:31.645100
1,552,551,931.6451
13,475
pythondev
help
`readline` reads a single line from the file
2019-03-14T08:25:39.645400
Hiroko
pythondev_help_Hiroko_2019-03-14T08:25:39.645400
1,552,551,939.6454
13,476
pythondev
help
you have to use that in a loop
2019-03-14T08:26:03.645800
Hiroko
pythondev_help_Hiroko_2019-03-14T08:26:03.645800
1,552,551,963.6458
13,477
pythondev
help
ah sorry I do, forgot to type that in
2019-03-14T08:31:10.646200
Arturo
pythondev_help_Arturo_2019-03-14T08:31:10.646200
1,552,552,270.6462
13,478
pythondev
help
I also checked if the line was empty but still printed the blanks.
2019-03-14T08:31:52.646800
Arturo
pythondev_help_Arturo_2019-03-14T08:31:52.646800
1,552,552,312.6468
13,479
pythondev
help
You don't even need readline, IIRC? ```with open('test.txt') as fp: for line in fp: line = line.strip() if line: print(line) ```
2019-03-14T08:31:55.647000
Melynda
pythondev_help_Melynda_2019-03-14T08:31:55.647000
1,552,552,315.647
13,480
pythondev
help
perfect!
2019-03-14T08:34:21.647200
Arturo
pythondev_help_Arturo_2019-03-14T08:34:21.647200
1,552,552,461.6472
13,481
pythondev
help
sorry what does IIRC mean?
2019-03-14T08:34:29.647500
Arturo
pythondev_help_Arturo_2019-03-14T08:34:29.647500
1,552,552,469.6475
13,482
pythondev
help
If I Remember/Recall Correctly. :slightly_smiling_face:
2019-03-14T08:34:44.647800
Melynda
pythondev_help_Melynda_2019-03-14T08:34:44.647800
1,552,552,484.6478
13,483
pythondev
help
thanks :slightly_smiling_face: <@Dayna> :taco:
2019-03-14T08:35:09.648300
Arturo
pythondev_help_Arturo_2019-03-14T08:35:09.648300
1,552,552,509.6483
13,484
pythondev
help
<@Melynda> :taco:
2019-03-14T08:35:30.648600
Arturo
pythondev_help_Arturo_2019-03-14T08:35:30.648600
1,552,552,530.6486
13,485
pythondev
help
whoops sent someone else called Matt a taco!
2019-03-14T08:35:44.649000
Arturo
pythondev_help_Arturo_2019-03-14T08:35:44.649000
1,552,552,544.649
13,486
pythondev
help
Hah, everyone loves a taco! :smile:
2019-03-14T08:36:01.649400
Melynda
pythondev_help_Melynda_2019-03-14T08:36:01.649400
1,552,552,561.6494
13,487
pythondev
help
can you explain why i did not need `readline`?
2019-03-14T08:36:24.649800
Arturo
pythondev_help_Arturo_2019-03-14T08:36:24.649800
1,552,552,584.6498
13,488
pythondev
help
Calling `readline()` as you did will only read one line from the file.
2019-03-14T08:39:08.650600
Melynda
pythondev_help_Melynda_2019-03-14T08:39:08.650600
1,552,552,748.6506
13,489
pythondev
help
The docs go into the usage of `for line in f` <https://docs.python.org/3/tutorial/inputoutput.html#methods-of-file-objects>
2019-03-14T08:39:42.651100
Melynda
pythondev_help_Melynda_2019-03-14T08:39:42.651100
1,552,552,782.6511
13,490
pythondev
help
cool will do, now how to figure how to parse if a table occurs before the `--- end`
2019-03-14T08:40:58.652500
Arturo
pythondev_help_Arturo_2019-03-14T08:40:58.652500
1,552,552,858.6525
13,491
pythondev
help
I've commented on your code: ```with open(filename) as fp: line = fp.readline() # read one line from the file while line: # Loop so long as line is truthy while line.strip(): # Loop so long as line.strip() returns a truthy value print(line) # Print the unstripped line```
2019-03-14T08:41:18.652800
Melynda
pythondev_help_Melynda_2019-03-14T08:41:18.652800
1,552,552,878.6528
13,492
pythondev
help
You've two nested loops without ever reading any further data from the file.
2019-03-14T08:41:50.653900
Melynda
pythondev_help_Melynda_2019-03-14T08:41:50.653900
1,552,552,910.6539
13,493
pythondev
help
sorry I forgot to write in, I did have the `line = fp.readline()` within my loop
2019-03-14T08:41:59.654300
Arturo
pythondev_help_Arturo_2019-03-14T08:41:59.654300
1,552,552,919.6543
13,494
pythondev
help
Ah :slightly_smiling_face:
2019-03-14T08:42:07.654500
Melynda
pythondev_help_Melynda_2019-03-14T08:42:07.654500
1,552,552,927.6545
13,495
pythondev
help
Probably best to copy and paste rather than re-type, to avoid errors like that.
2019-03-14T08:42:34.655000
Melynda
pythondev_help_Melynda_2019-03-14T08:42:34.655000
1,552,552,954.655
13,496
pythondev
help
yup
2019-03-14T08:42:43.655200
Arturo
pythondev_help_Arturo_2019-03-14T08:42:43.655200
1,552,552,963.6552
13,497
pythondev
help
Hey Orf, just saw these messages. Sorry about that, had to drive home cause of a mini-blizzard
2019-03-14T09:03:49.655300
Cammie
pythondev_help_Cammie_2019-03-14T09:03:49.655300
1,552,554,229.6553
13,498
pythondev
help
So you’re saying that the python 3 type hinting has essentially done awawy with function comments. Is that a fair explanation?
2019-03-14T09:04:10.655500
Cammie
pythondev_help_Cammie_2019-03-14T09:04:10.655500
1,552,554,250.6555
13,499
pythondev
help
Additionally, if I wanted to write some text describing the functions above, do I still just do something like ``` from typing import Hashable, Any class HashTable: "A horribly simple HashTable implementation." def __getitem__(self, key: Hashable) -&gt; Any: """Some text about the function """ raise NotImplementedError() def __setitem__(self, key: Hashable, value: Any): """Some text about the function """ raise NotImplementedError() ```
2019-03-14T09:04:56.655700
Cammie
pythondev_help_Cammie_2019-03-14T09:04:56.655700
1,552,554,296.6557
13,500
pythondev
help
?
2019-03-14T09:04:58.655900
Cammie
pythondev_help_Cammie_2019-03-14T09:04:58.655900
1,552,554,298.6559
13,501
pythondev
help
The type hints remove any need for comments about the types of the arguments
2019-03-14T09:26:04.656800
Jonas
pythondev_help_Jonas_2019-03-14T09:26:04.656800
1,552,555,564.6568
13,502
pythondev
help
If the names of the arguments are self descriptive, no need either
2019-03-14T09:26:19.657400
Jonas
pythondev_help_Jonas_2019-03-14T09:26:19.657400
1,552,555,579.6574
13,503
pythondev
help
Comments and docstrings are great, but overly verbose comments with redundant information hides important information
2019-03-14T09:26:47.658400
Jonas
pythondev_help_Jonas_2019-03-14T09:26:47.658400
1,552,555,607.6584
13,504
pythondev
help
Everyone knows ‘__getitem__’ gets an item, no need to explain that. You should presume some prior knowledge of python when writing comments
2019-03-14T09:27:35.659800
Jonas
pythondev_help_Jonas_2019-03-14T09:27:35.659800
1,552,555,655.6598
13,505
pythondev
help
<@Jonas> I’m with you in generally. Write verbose, easy to understand variable names and functions and bam less documentation. Like &gt; Documentation is out of date the minute you finish writing it That being said, I want to learn how to document my Python functions per the PEP standards. Do you have any advice on that?
2019-03-14T09:29:11.660000
Cammie
pythondev_help_Cammie_2019-03-14T09:29:11.660000
1,552,555,751.66
13,506
pythondev
help
I ended up writing: ``` class HashTable(): """A horribly simple HashTable implementation. """ def get(self, key): """Fetches the value of the given previous set key. Args: key (int or str or float): The key of the value of interest. Returns: any or None: The value that belongs to this key or None if not found. """ raise NotImplementedError def put(self, key, value): """Stores the given value, relating it to the given key. Args: key (int or str or float): The key of the value of interest. value (any): The value to store for this key. """ raise NotImplementedError ```
2019-03-14T09:29:26.660400
Cammie
pythondev_help_Cammie_2019-03-14T09:29:26.660400
1,552,555,766.6604
13,507
pythondev
help
Pretty much all of those comments are redundant, that’s the point
2019-03-14T09:30:09.661100
Jonas
pythondev_help_Jonas_2019-03-14T09:30:09.661100
1,552,555,809.6611
13,508
pythondev
help
It’s obvious that ‘put’ puts a value, and it’s obvious what key and value are in this context
2019-03-14T09:30:52.662100
Jonas
pythondev_help_Jonas_2019-03-14T09:30:52.662100
1,552,555,852.6621
13,509
pythondev
help
I don’t think I’m being clear here. In this example its very redudant.
2019-03-14T09:41:28.662300
Cammie
pythondev_help_Cammie_2019-03-14T09:41:28.662300
1,552,556,488.6623
13,510
pythondev
help
I’m trying to use this example to learn the correct formatting so when I actually want to write some documentation, I can do so compliantly
2019-03-14T09:41:46.662500
Cammie
pythondev_help_Cammie_2019-03-14T09:41:46.662500
1,552,556,506.6625
13,511
pythondev
help
We can just punt on the whole thing
2019-03-14T09:41:55.662700
Cammie
pythondev_help_Cammie_2019-03-14T09:41:55.662700
1,552,556,515.6627
13,512
pythondev
help
I FIXED IT!!!!! YAAAAAAAAAAAAAAAAAASSSSSSSSSSSSSSSS!!!!!!!!
2019-03-14T11:35:59.664100
Ursula
pythondev_help_Ursula_2019-03-14T11:35:59.664100
1,552,563,359.6641
13,513
pythondev
help
if you're looking for "real" looking test data, check out <https://pypi.org/project/Faker/> - and if you want to test exhaustively try <https://hypothesis.readthedocs.io/en/latest/> (although you may have to work a little harder for stuff beyond regular data types)
2019-03-14T11:40:36.664300
Joette
pythondev_help_Joette_2019-03-14T11:40:36.664300
1,552,563,636.6643
13,514
pythondev
help
I like using Hypothesis for testing forms b/c it'll throw stuff at your forms that you never thought of
2019-03-14T11:41:07.664700
Joette
pythondev_help_Joette_2019-03-14T11:41:07.664700
1,552,563,667.6647
13,515
pythondev
help
I love hypothesis. Anybody know if you could make a strategy for a marshmallow schema?
2019-03-14T11:44:33.667100
Bethany
pythondev_help_Bethany_2019-03-14T11:44:33.667100
1,552,563,873.6671
13,516
pythondev
help
Hey guys! Hope you all are doing good. I am kinda new with Python and I am trying to read about how to create a transcription software (where I can automate certain things and export the transcription to word or any kind of word processor). Any ideas on where should I start?
2019-03-14T11:45:11.667700
Jenniffer
pythondev_help_Jenniffer_2019-03-14T11:45:11.667700
1,552,563,911.6677
13,517
pythondev
help
you mean transcribe from audio to text ?
2019-03-14T11:45:39.668400
Bethany
pythondev_help_Bethany_2019-03-14T11:45:39.668400
1,552,563,939.6684
13,518
pythondev
help
When you say "strategy", could you elaborate?
2019-03-14T11:46:28.669500
Ursula
pythondev_help_Ursula_2019-03-14T11:46:28.669500
1,552,563,988.6695
13,519
pythondev
help
<https://hypothesis.readthedocs.io/en/latest/data.html>
2019-03-14T11:46:53.670000
Bethany
pythondev_help_Bethany_2019-03-14T11:46:53.670000
1,552,564,013.67
13,520