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
<@Collette> can you explain how they are different? it's totally lost on me :confused:
2017-09-21T06:51:45.000311
Suellen
pythondev_help_Suellen_2017-09-21T06:51:45.000311
1,505,976,705.000311
94,403
pythondev
help
'they'?
2017-09-21T06:52:02.000015
Collette
pythondev_help_Collette_2017-09-21T06:52:02.000015
1,505,976,722.000015
94,404
pythondev
help
&gt; In my example I can actually _use_ fixture objects in the test function, while `@usefixtures` is just, well, "enabling" fixtures for that test function
2017-09-21T06:53:36.000249
Suellen
pythondev_help_Suellen_2017-09-21T06:53:36.000249
1,505,976,816.000249
94,405
pythondev
help
I think I'm missing something, but the behaviour seems identical to me
2017-09-21T06:54:06.000059
Suellen
pythondev_help_Suellen_2017-09-21T06:54:06.000059
1,505,976,846.000059
94,406
pythondev
help
I was thinking about the case when ``` @pytest.mark.usefixtures('foo') def test_foo(foo): pass ``` passes, but ``` def test_foo(foo): pass ``` fails with `TypeError` about missing arguments
2017-09-21T06:55:15.000245
Collette
pythondev_help_Collette_2017-09-21T06:55:15.000245
1,505,976,915.000245
94,407
pythondev
help
I also dislike that whole `pytest.mark` idea. It's so highly dynamic that introspection doesn't work
2017-09-21T06:56:06.000253
Collette
pythondev_help_Collette_2017-09-21T06:56:06.000253
1,505,976,966.000253
94,408
pythondev
help
&gt; fails with `TypeError` about missing arguments It was like that before they decided to make fixtures available by default, which is not really nice... I agree.
2017-09-21T06:56:39.000163
Suellen
pythondev_help_Suellen_2017-09-21T06:56:39.000163
1,505,976,999.000163
94,409
pythondev
help
Maybe given py3 annotations, we could at least do ``` def test_foo(foo: pytest.fixture) ```...
2017-09-21T06:58:08.000140
Collette
pythondev_help_Collette_2017-09-21T06:58:08.000140
1,505,977,088.00014
94,410
pythondev
help
I wish some projects, especially that can hugely benefit from annotations, dropped py2
2017-09-21T06:59:17.000247
Suellen
pythondev_help_Suellen_2017-09-21T06:59:17.000247
1,505,977,157.000247
94,411
pythondev
help
django? :slightly_smiling_face:
2017-09-21T06:59:28.000002
Collette
pythondev_help_Collette_2017-09-21T06:59:28.000002
1,505,977,168.000002
94,412
pythondev
help
I have almost zero experience with Django, but if it's anything like Flask then lack of certain py3-only features doesn't really stand in the way too much. But some flask extensions are py3-only and they use annotations to define endpoints which is really cool if you're designing an API
2017-09-21T07:00:55.000294
Suellen
pythondev_help_Suellen_2017-09-21T07:00:55.000294
1,505,977,255.000294
94,413
pythondev
help
On pycharm. Is there a way to see what method will be called when a class inherit from two classes with the same method and no super?
2017-09-21T07:04:52.000241
Mariano
pythondev_help_Mariano_2017-09-21T07:04:52.000241
1,505,977,492.000241
94,414
pythondev
help
not sure about pycharm, but in the debugger you can look at `__mro__`
2017-09-21T07:11:39.000218
Junita
pythondev_help_Junita_2017-09-21T07:11:39.000218
1,505,977,899.000218
94,415
pythondev
help
That's good enough <@Junita> :taco:
2017-09-21T07:26:37.000342
Mariano
pythondev_help_Mariano_2017-09-21T07:26:37.000342
1,505,978,797.000342
94,416
pythondev
help
om nom nom
2017-09-21T07:30:42.000159
Junita
pythondev_help_Junita_2017-09-21T07:30:42.000159
1,505,979,042.000159
94,417
pythondev
help
Anyone familiar with `async/await` ?
2017-09-21T10:07:47.000497
Gwenda
pythondev_help_Gwenda_2017-09-21T10:07:47.000497
1,505,988,467.000497
94,418
pythondev
help
I was wondering if it's relevant to use this construct in the context of DB operations
2017-09-21T10:08:37.000253
Gwenda
pythondev_help_Gwenda_2017-09-21T10:08:37.000253
1,505,988,517.000253
94,419
pythondev
help
say DB insertion for example
2017-09-21T10:08:43.000406
Gwenda
pythondev_help_Gwenda_2017-09-21T10:08:43.000406
1,505,988,523.000406
94,420
pythondev
help
It's likely to be an overcomplication unless you truly know that you need it, and even then there are other optimisations to try first
2017-09-21T10:09:10.000162
Gabriele
pythondev_help_Gabriele_2017-09-21T10:09:10.000162
1,505,988,550.000162
94,421
pythondev
help
yeah depends on how things are made.
2017-09-21T10:09:33.000318
Ciera
pythondev_help_Ciera_2017-09-21T10:09:33.000318
1,505,988,573.000318
94,422
pythondev
help
what kind of other optimisations ? (out of curiosity)
2017-09-21T10:09:42.000439
Gwenda
pythondev_help_Gwenda_2017-09-21T10:09:42.000439
1,505,988,582.000439
94,423
pythondev
help
Depends on the application
2017-09-21T10:09:58.000008
Gabriele
pythondev_help_Gabriele_2017-09-21T10:09:58.000008
1,505,988,598.000008
94,424
pythondev
help
someone wrote an article a bit ago arguing that async for db isn't useful as they are so fast.
2017-09-21T10:10:03.000159
Ciera
pythondev_help_Ciera_2017-09-21T10:10:03.000159
1,505,988,603.000159
94,425
pythondev
help
Maybe you don't need an insert, maybe you can postpone it, maybe you can write to a cache, etc
2017-09-21T10:10:12.000498
Gabriele
pythondev_help_Gabriele_2017-09-21T10:10:12.000498
1,505,988,612.000498
94,426
pythondev
help
but if all your app is async you might as well use it
2017-09-21T10:10:16.000629
Ciera
pythondev_help_Ciera_2017-09-21T10:10:16.000629
1,505,988,616.000629
94,427
pythondev
help
ah I see !
2017-09-21T10:10:30.000240
Gwenda
pythondev_help_Gwenda_2017-09-21T10:10:30.000240
1,505,988,630.00024
94,428
pythondev
help
<@Ciera> I expect you mean this one, by the author of SQLAlchemy - <http://techspot.zzzeek.org/2015/02/15/asynchronous-python-and-databases/>
2017-09-21T10:10:50.000705
Gabriele
pythondev_help_Gabriele_2017-09-21T10:10:50.000705
1,505,988,650.000705
94,429
pythondev
help
The thing is I failed to find a concrete usage example for async/await
2017-09-21T10:11:02.000370
Gwenda
pythondev_help_Gwenda_2017-09-21T10:11:02.000370
1,505,988,662.00037
94,430
pythondev
help
I don't agree with all the conclusions, but broadly speaking it's right
2017-09-21T10:11:14.000396
Gabriele
pythondev_help_Gabriele_2017-09-21T10:11:14.000396
1,505,988,674.000396
94,431
pythondev
help
even for a simple http request to an external service
2017-09-21T10:11:14.000409
Gwenda
pythondev_help_Gwenda_2017-09-21T10:11:14.000409
1,505,988,674.000409
94,432
pythondev
help
<@Gabriele> yes thanks :taco:
2017-09-21T10:11:18.000713
Ciera
pythondev_help_Ciera_2017-09-21T10:11:18.000713
1,505,988,678.000713
94,433
pythondev
help
If you have an application that needs to perform slow I/O operations as well as be responsive in some other way, then async operations may be what you need
2017-09-21T10:11:51.000459
Gabriele
pythondev_help_Gabriele_2017-09-21T10:11:51.000459
1,505,988,711.000459
94,434
pythondev
help
e.g. I write video games, and I don't want to hang the whole game while we do a Quick Save, because we need to render every 16 or 32 milliseconds. So we do the save asynchronously
2017-09-21T10:12:37.000001
Gabriele
pythondev_help_Gabriele_2017-09-21T10:12:37.000001
1,505,988,757.000001
94,435
pythondev
help
<@Gwenda> you might want to read <@Signe> article <https://hackernoon.com/async-through-the-looking-glass-d69a0a88b661>
2017-09-21T10:12:39.000697
Ciera
pythondev_help_Ciera_2017-09-21T10:12:39.000697
1,505,988,759.000697
94,436
pythondev
help
This sort of thing doesn't come up in Python that often, I'd argue
2017-09-21T10:12:49.000735
Gabriele
pythondev_help_Gabriele_2017-09-21T10:12:49.000735
1,505,988,769.000735
94,437
pythondev
help
this one might be best to start <https://hackernoon.com/asynchronous-python-45df84b82434>
2017-09-21T10:13:22.000152
Ciera
pythondev_help_Ciera_2017-09-21T10:13:22.000152
1,505,988,802.000152
94,438
pythondev
help
thanks a lot <@Ciera> :taco:
2017-09-21T10:42:58.000156
Gwenda
pythondev_help_Gwenda_2017-09-21T10:42:58.000156
1,505,990,578.000156
94,439
pythondev
help
<@Gwenda> did you read it? Did you enjoy it? Did you learn anything?
2017-09-21T10:43:20.000220
Signe
pythondev_help_Signe_2017-09-21T10:43:20.000220
1,505,990,600.00022
94,440
pythondev
help
<@Gwenda> <@Signe> ^^ is the one who wrote it :wink:
2017-09-21T10:44:25.000152
Vada
pythondev_help_Vada_2017-09-21T10:44:25.000152
1,505,990,665.000152
94,441
pythondev
help
yup the first one
2017-09-21T11:02:25.000732
Gwenda
pythondev_help_Gwenda_2017-09-21T11:02:25.000732
1,505,991,745.000732
94,442
pythondev
help
was particularly helpful in understanding how async vs sync works
2017-09-21T11:02:40.000086
Gwenda
pythondev_help_Gwenda_2017-09-21T11:02:40.000086
1,505,991,760.000086
94,443
pythondev
help
I really liked the fast food vs bank analogy
2017-09-21T11:02:48.000373
Gwenda
pythondev_help_Gwenda_2017-09-21T11:02:48.000373
1,505,991,768.000373
94,444
pythondev
help
awesome. Glad it helped
2017-09-21T11:29:46.000470
Signe
pythondev_help_Signe_2017-09-21T11:29:46.000470
1,505,993,386.00047
94,445
pythondev
help
yea that was one of my fav. parts too. :wink:
2017-09-21T11:37:16.000292
Johana
pythondev_help_Johana_2017-09-21T11:37:16.000292
1,505,993,836.000292
94,446
pythondev
help
I want to make python service for simple server monitoring ( is it available by IP or not ), so I need to make constant requests, I once in a minute. What is the best way to do it? ``` while True do some_func() time.sleep(60) ``` Or there is more sophisticated way?
2017-09-21T14:30:24.000388
Fleta
pythondev_help_Fleta_2017-09-21T14:30:24.000388
1,506,004,224.000388
94,447
pythondev
help
cronjob
2017-09-21T14:32:12.000260
Meg
pythondev_help_Meg_2017-09-21T14:32:12.000260
1,506,004,332.00026
94,448
pythondev
help
make a standalone script, if possible
2017-09-21T14:32:21.000265
Meg
pythondev_help_Meg_2017-09-21T14:32:21.000265
1,506,004,341.000265
94,449
pythondev
help
and have cron execute it once a minute
2017-09-21T14:32:28.000470
Meg
pythondev_help_Meg_2017-09-21T14:32:28.000470
1,506,004,348.00047
94,450
pythondev
help
cron or celery, yeah
2017-09-21T14:32:39.000234
Frieda
pythondev_help_Frieda_2017-09-21T14:32:39.000234
1,506,004,359.000234
94,451
pythondev
help
Not sure how to debug multi-threading code. The threads start off and abruptly print ```Killed```.
2017-09-21T14:35:37.000110
Tameika
pythondev_help_Tameika_2017-09-21T14:35:37.000110
1,506,004,537.00011
94,452
pythondev
help
How do I resolve this issue?
2017-09-21T14:35:47.000411
Tameika
pythondev_help_Tameika_2017-09-21T14:35:47.000411
1,506,004,547.000411
94,453
pythondev
help
check kernel logs
2017-09-21T14:37:55.000193
Meg
pythondev_help_Meg_2017-09-21T14:37:55.000193
1,506,004,675.000193
94,454
pythondev
help
might be a kernel out of memory issue, so your process has been killed
2017-09-21T14:38:08.000144
Meg
pythondev_help_Meg_2017-09-21T14:38:08.000144
1,506,004,688.000144
94,455
pythondev
help
eg, `tail -f /var/log/kern.log`
2017-09-21T14:38:46.000424
Meg
pythondev_help_Meg_2017-09-21T14:38:46.000424
1,506,004,726.000424
94,456
pythondev
help
Thanks!
2017-09-21T14:39:45.000071
Fleta
pythondev_help_Fleta_2017-09-21T14:39:45.000071
1,506,004,785.000071
94,457
pythondev
help
<@Meg> :taco:
2017-09-21T14:40:06.000279
Fleta
pythondev_help_Fleta_2017-09-21T14:40:06.000279
1,506,004,806.000279
94,458
pythondev
help
<@Frieda> :taco:
2017-09-21T14:40:27.000336
Fleta
pythondev_help_Fleta_2017-09-21T14:40:27.000336
1,506,004,827.000336
94,459
pythondev
help
This is probably a dumb/novice question...but if I want to refactor a specific line in a ton of different python and/or template (html) files, how would I go about doing that? For example, if I wanted to find and replace one line with another multi-line block? I'm using `atom` as my IDE at the moment.
2017-09-21T14:49:21.000017
Dominick
pythondev_help_Dominick_2017-09-21T14:49:21.000017
1,506,005,361.000017
94,460
pythondev
help
how many files are we talking about?
2017-09-21T14:52:39.000212
Meg
pythondev_help_Meg_2017-09-21T14:52:39.000212
1,506,005,559.000212
94,461
pythondev
help
sublime has something similar, IIRC
2017-09-21T14:52:47.000112
Meg
pythondev_help_Meg_2017-09-21T14:52:47.000112
1,506,005,567.000112
94,462
pythondev
help
but I always felt those can get out of hand really quick
2017-09-21T14:53:00.000051
Meg
pythondev_help_Meg_2017-09-21T14:53:00.000051
1,506,005,580.000051
94,463
pythondev
help
I'd use `sed` tbh, but your particular case my vary...
2017-09-21T14:53:29.000118
Mallie
pythondev_help_Mallie_2017-09-21T14:53:29.000118
1,506,005,609.000118
94,464
pythondev
help
under Find you can do replace in project
2017-09-21T14:53:30.000425
Junita
pythondev_help_Junita_2017-09-21T14:53:30.000425
1,506,005,610.000425
94,465
pythondev
help
or sorry, under the menu it’s called “Find in Project”
2017-09-21T14:53:54.000098
Junita
pythondev_help_Junita_2017-09-21T14:53:54.000098
1,506,005,634.000098
94,466
pythondev
help
and then it has a replace field
2017-09-21T14:53:59.000159
Junita
pythondev_help_Junita_2017-09-21T14:53:59.000159
1,506,005,639.000159
94,467
pythondev
help
Oh that's nice, I don't use Atom
2017-09-21T14:54:12.000180
Mallie
pythondev_help_Mallie_2017-09-21T14:54:12.000180
1,506,005,652.00018
94,468
pythondev
help
I do find it’s useful to “Find All” first to make sure you are actually aware of what will be changed
2017-09-21T14:54:28.000637
Junita
pythondev_help_Junita_2017-09-21T14:54:28.000637
1,506,005,668.000637
94,469
pythondev
help
Nice - i'll check that out. I can see where you could screw up a lot really fast but I figure if it's one line it'd be safe.
2017-09-21T14:55:02.000464
Dominick
pythondev_help_Dominick_2017-09-21T14:55:02.000464
1,506,005,702.000464
94,470
pythondev
help
Thanks all.
2017-09-21T14:55:05.000115
Dominick
pythondev_help_Dominick_2017-09-21T14:55:05.000115
1,506,005,705.000115
94,471
pythondev
help
and apply the change one at a time
2017-09-21T14:55:05.000440
Meg
pythondev_help_Meg_2017-09-21T14:55:05.000440
1,506,005,705.00044
94,472
pythondev
help
reviewing the section beforehand, with the filename
2017-09-21T14:55:19.000194
Meg
pythondev_help_Meg_2017-09-21T14:55:19.000194
1,506,005,719.000194
94,473
pythondev
help
I screwed up spectacularly once upon a time
2017-09-21T14:55:29.000005
Meg
pythondev_help_Meg_2017-09-21T14:55:29.000005
1,506,005,729.000005
94,474
pythondev
help
fortunately, `git revert` saved my bacon, and nobody knew
2017-09-21T14:55:58.000357
Meg
pythondev_help_Meg_2017-09-21T14:55:58.000357
1,506,005,758.000357
94,475
pythondev
help
of course in the end, just make - ha yeah that
2017-09-21T14:56:05.000360
Junita
pythondev_help_Junita_2017-09-21T14:56:05.000360
1,506,005,765.00036
94,476
pythondev
help
make sure you are doing it in git, and you have other changes committed
2017-09-21T14:56:14.000620
Junita
pythondev_help_Junita_2017-09-21T14:56:14.000620
1,506,005,774.00062
94,477
pythondev
help
the last part was the key point
2017-09-21T14:56:24.000450
Meg
pythondev_help_Meg_2017-09-21T14:56:24.000450
1,506,005,784.00045
94,478
pythondev
help
<@Junita> Find in Project is super useful! :taco:
2017-09-21T14:56:37.000584
Dominick
pythondev_help_Dominick_2017-09-21T14:56:37.000584
1,506,005,797.000584
94,479
pythondev
help
actually looking at it, it may not do multiline replace, and doing a \n doesn’t seem to work
2017-09-21T14:56:45.000701
Junita
pythondev_help_Junita_2017-09-21T14:56:45.000701
1,506,005,805.000701
94,480
pythondev
help
because mixing that kind of changeset with existing changes is not cool
2017-09-21T14:56:48.000164
Meg
pythondev_help_Meg_2017-09-21T14:56:48.000164
1,506,005,808.000164
94,481
pythondev
help
so maybe I owe you a taco back. :stuck_out_tongue:
2017-09-21T14:56:52.000191
Junita
pythondev_help_Junita_2017-09-21T14:56:52.000191
1,506,005,812.000191
94,482
pythondev
help
Haha hmmm...ya I always wondered if any IDEs out there did allow multi-line replace...cuz that seems useful.
2017-09-21T14:57:20.000319
Dominick
pythondev_help_Dominick_2017-09-21T14:57:20.000319
1,506,005,840.000319
94,483
pythondev
help
<https://github.com/atom/find-and-replace/issues/398>
2017-09-21T14:57:51.000375
Junita
pythondev_help_Junita_2017-09-21T14:57:51.000375
1,506,005,871.000375
94,484
pythondev
help
could always code it up! :stuck_out_tongue:
2017-09-21T14:57:56.000208
Junita
pythondev_help_Junita_2017-09-21T14:57:56.000208
1,506,005,876.000208
94,485
pythondev
help
<@Dominick> To some extent I'm sure they do, just depends on what you prefer. Emacs isn't an IDE persay (though you can customize it to one) but you can do multi-line replace. Visual Studio has an add-on for it I've never tested... For Atom though jkelly's issue tells you the status there.
2017-09-21T15:02:31.000596
Mallie
pythondev_help_Mallie_2017-09-21T15:02:31.000596
1,506,006,151.000596
94,486
pythondev
help
<@Mallie> Definitely. I've never used emacs or visual studio actually. Looks like it doesn't quite work in Atom, but Find in Project should suit my needs. More of an exploratory question at this point :slightly_smiling_face:
2017-09-21T15:04:18.000018
Dominick
pythondev_help_Dominick_2017-09-21T15:04:18.000018
1,506,006,258.000018
94,487
pythondev
help
If you have a need for it that you think will take too much time in Atom, could always jump to something like `sed` that I mentioned to
2017-09-21T15:04:53.000224
Mallie
pythondev_help_Mallie_2017-09-21T15:04:53.000224
1,506,006,293.000224
94,488
pythondev
help
Just depends on if learning the steps is faster at that time and such...
2017-09-21T15:05:04.000711
Mallie
pythondev_help_Mallie_2017-09-21T15:05:04.000711
1,506,006,304.000711
94,489
pythondev
help
I'll explore that option. tbh, I don't have _that_ many to replace, I'm just being a lazy (or efficient, if you're being polite) programmer haha
2017-09-21T15:06:25.000172
Dominick
pythondev_help_Dominick_2017-09-21T15:06:25.000172
1,506,006,385.000172
94,490
pythondev
help
I'm trying to use NLP or machine learning to solve a problem. I'm trying to take a legal document and a re-written version of the same document in more common speech, and be able to automate this process. Any ideas? I've thought of using decision trees with the first doc as a feature and the output doc as a label. But that doesn't seem like it work.
2017-09-21T16:49:22.000296
Enid
pythondev_help_Enid_2017-09-21T16:49:22.000296
1,506,012,562.000296
94,491
pythondev
help
Mike Bayer :rage:
2017-09-21T17:05:30.000152
Suellen
pythondev_help_Suellen_2017-09-21T17:05:30.000152
1,506,013,530.000152
94,492
pythondev
help
<@Enid>, my friend said that a good starting point may be something called “cosine similarity”
2017-09-21T17:09:44.000172
Winnifred
pythondev_help_Winnifred_2017-09-21T17:09:44.000172
1,506,013,784.000172
94,493
pythondev
help
you can also ask around in <#C0JB9ATQV|data_science>
2017-09-21T17:09:58.000153
Winnifred
pythondev_help_Winnifred_2017-09-21T17:09:58.000153
1,506,013,798.000153
94,494
pythondev
help
<@Suellen> are you of a different opinion? I would love to hear it...(spoiler: I don't ~really~ know async yet)
2017-09-21T17:21:24.000147
Vita
pythondev_help_Vita_2017-09-21T17:21:24.000147
1,506,014,484.000147
94,495
pythondev
help
<@Enid> I think you should look at document summarization using recurrent neural networks, if you have a good training set
2017-09-21T18:46:55.000205
Nadene
pythondev_help_Nadene_2017-09-21T18:46:55.000205
1,506,019,615.000205
94,496
pythondev
help
Hey guys, burnt out building this tool over the last few days... <https://github.com/jamespacileo/mr-piper>
2017-09-21T20:07:48.000158
Elroy
pythondev_help_Elroy_2017-09-21T20:07:48.000158
1,506,024,468.000158
94,497
pythondev
help
Any chance someone could give some feedback? :sweat_smile:
2017-09-21T20:08:38.000154
Elroy
pythondev_help_Elroy_2017-09-21T20:08:38.000154
1,506,024,518.000154
94,498
pythondev
help
<@Elroy> this looks really nice!
2017-09-21T20:20:14.000144
Marcie
pythondev_help_Marcie_2017-09-21T20:20:14.000144
1,506,025,214.000144
94,499
pythondev
help
i'll give it a try with a new project later today
2017-09-21T20:20:24.000174
Marcie
pythondev_help_Marcie_2017-09-21T20:20:24.000174
1,506,025,224.000174
94,500
pythondev
help
<@Marcie> thanks Sean! That's great to hear :) will look forward to read what you have to say!
2017-09-21T20:45:48.000051
Elroy
pythondev_help_Elroy_2017-09-21T20:45:48.000051
1,506,026,748.000051
94,501
pythondev
help
Hi guys, is there anybody who has experience with gitzilla and bugzilla?
2017-09-21T21:58:00.000110
Jessia
pythondev_help_Jessia_2017-09-21T21:58:00.000110
1,506,031,080.00011
94,502